colorcet
Collection of perceptually uniform colormaps
What it is and what it does
Colorcet is a curated library of perceptually uniform colormaps built on research by Peter Kovesi at the Center for Exploration Targeting. It provides over 100 named colormaps optimized for scientific visualization, where color perception remains consistent across the full range of values—avoiding the perceptual distortions that can mislead viewers in standard colormaps.
The package integrates directly with popular Python plotting libraries (matplotlib, bokeh, holoviews, datashader) and requires no external dependencies beyond Python itself. It's actively maintained, supports modern Python versions, and is designed as a drop-in replacement for standard colormap collections when perceptual uniformity matters for your visualization.
Use it for:
- Create scientific plots where color gradients must represent data magnitude accurately without perceptual bias.
- Build interactive dashboards with bokeh or holoviews using consistent, research-backed color schemes.
- Visualize large datasets with datashader using colormaps optimized for high-density point rendering.
- Generate publication-quality figures in matplotlib where colormap choice affects reader interpretation.
- Ensure accessibility in visualizations by selecting colormaps designed for perceptual uniformity across viewers.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Colorcet provides a collection of perceptually uniform colormaps designed for scientific visualization with Python plotting libraries like matplotlib, bokeh, holoviews, and datashader.
Yes. Colorcet is actively maintained, has zero known vulnerabilities, installs with no dependencies, and supports current Python versions. The only caveat is verifying CC-BY-4.0 licensing terms for your specific use case—if you're using it for visualization in research, education, or open-source work, it's a straightforward choice.
Install
colorcet on PyPI
pip
pip install colorcetuv
uv add colorcetpoetry
poetry add colorcetInstalling colorcet
Before you install
Low install friction with no runtime dependencies. Active maintenance with a recent release 108 days ago and ongoing commits; supports current Python versions 3.10 through 3.14.
License in practice
Licensed under CC-BY-4.0 (Creative Commons Attribution 4.0). The license treatment is marked unclear in the metadata, so you should verify the specific terms for your use case, particularly if redistributing or modifying the colormaps.
Quickstart
pip install colorcet
import colorcet as cc
# Access a colormap by name
colormap = cc.cm.viridis
Requires Python 3.10 or greater.
Verify before relying
- Whether CC-BY-4.0 licensing applies to the colormap data itself or only to documentation/code, and what attribution is required for use in applications
Package facts
| License | CC-BY-4.0 (unclear) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 108 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,592,884/month — #2,978 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: colorcet-3.2.1-py3-none-any.whl
Tags
More Graphics packages
Pillow adds image processing capabilities to…
permissive · top 100 on PyPI
fonttoolsfonttools manipulates font files in multiple…
permissive · top 1,000 on PyPI
matplotlib-inlineEnables matplotlib figures to display inline…
permissive · top 1,000 on PyPI
pymupdfPyMuPDF extracts, renders, converts, and…
agpl · top 1,000 on PyPI
pypdfium2pypdfium2 is a Python binding to PDFium that…
permissive · top 1,000 on PyPI
altairAltair is a declarative Python library for…
permissive · top 1,000 on PyPI
cmcrameriProvides perceptually uniform colormaps by…
permissive · top 15,000 on PyPI
cmoceanProvides perceptually uniform colormaps…
unclear · top 15,000 on PyPI
datashaderDatashader converts large datasets into…
permissive · top 15,000 on PyPI
cyclerCycler provides composable style cycles for…
permissive · top 1,000 on PyPI
cmapcmap provides a collection of scientific…
permissive · top 15,000 on PyPI
cmweathercmweather provides a collection of colormaps…
permissive · top 15,000 on PyPI
distinctipyGenerates lists of visually distinct colors of…
permissive · top 15,000 on PyPI
colourmapGenerates unique RGB and HEX colors from input…
permissive · top 15,000 on PyPI
scikit-miscscikit-misc provides miscellaneous tools for…
permissive · top 15,000 on PyPI
holoviewsHoloViews lets you declare data structure and…
permissive · top 5,000 on PyPI