English

colorspace: A Python Toolbox for Manipulating and Assessing Colors and Palettes

Graphics 2025-10-07 v2

Abstract

The Python colorspace package provides a toolbox for mapping between different color spaces which can then be used to generate a wide range of perceptually-based color palettes for qualitative or quantitative (sequential or diverging) information. These palettes (as well as any other sets of colors) can be visualized, assessed, and manipulated in various ways, e.g., by color swatches, emulating the effects of color vision deficiencies, or depicting the perceptual properties. Finally, the color palettes generated by the package can be easily integrated into standard visualization workflows in Python, e.g., using matplotlib, seaborn, or plotly.

Keywords

Cite

@article{arxiv.2407.19921,
  title  = {colorspace: A Python Toolbox for Manipulating and Assessing Colors and Palettes},
  author = {Reto Stauffer and Achim Zeileis},
  journal= {arXiv preprint arXiv:2407.19921},
  year   = {2025}
}

Comments

Revised version published October 29, 2024: Stauffer, R. and Zeileis, A. (2024). colorspace: A Python Toolbox for Manipulating and Assessing Colors and Palettes. Journal of Open Source Software, 9(102), 7120, https://doi.org/10.21105/joss.07120

R2 v1 2026-06-28T17:56:44.996Z