coloraide
A color library for Python.
What it is and what it does
ColorAide is a pure Python object-oriented color library that lets you create colors from CSS syntax, convert them between color spaces (RGB, HSL, LCH, and many others), and perform operations like mixing, interpolation, and gamut mapping. It emphasizes accuracy and proper round-tripping of color values, supporting both modern CSS color spaces and legacy formats. The library includes utilities for color vision deficiency simulation, correlated color temperature, color distancing, and blending, plus a plugin API to extend its capabilities.
You'd use ColorAide when you need programmatic color manipulation in Python—whether building design tools, generating color palettes, ensuring color accessibility, or working with web-based color specifications. It handles the mathematical complexity of color space conversions so you can work with colors at a higher level of abstraction.
Use it for:
- Convert colors between CSS and non-CSS color spaces for design or data visualization applications.
- Generate accessible color palettes by mixing colors in perceptually uniform spaces and checking contrast ratios.
- Simulate color vision deficiency to test design accessibility for users with color blindness.
- Interpolate between colors in perceptually meaningful spaces for smooth gradients or animations.
- Parse and manipulate CSS color syntax programmatically in web scraping or template generation tools.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
ColorAide is a pure Python library for creating, converting, and manipulating colors across many color spaces with support for modern CSS color syntax and utilities like mixing, interpolation, and gamut mapping.
Yes. ColorAide is actively maintained, has low install friction, carries a permissive MIT license, and solves a real problem—accurate, standards-compliant color manipulation in Python. It's well-suited for design tools, accessibility testing, data visualization, and any project needing robust color handling. No known vulnerabilities.
Install
coloraide on PyPI
pip
pip install coloraideuv
uv add coloraidepoetry
poetry add coloraideInstalling coloraide
Before you install
Low install friction with a single lightweight runtime dependency (typing-extensions). The package is actively maintained with a recent release (4 days old) and steady repository activity.
License in practice
MIT license is permissive, allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install coloraide
from coloraide import Color
c = Color("red")
print(c.convert('hsl').to_string())
Requires Python 3.10 or later.
Verify before relying
- Whether the library's color accuracy and round-tripping claims have been validated against standard test suites or color science benchmarks.
- Performance characteristics when working with large batches of color conversions or complex gamut mapping operations.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — typing-extensions |
| Maintenance | actively maintained — 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 321,621/month — #7,621 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: coloraide-8.11.1-py3-none-any.whl
Keywords: color, color-contrast, color-conversion, color-difference, color-filters, color-harmonies, color-interpolation, color-manipulation, color-spaces, color-temperature, color-vision-deficiency, colour, css
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
colourConverts between and manipulates color…
permissive · top 5,000 on PyPI
colorloverProvides a library of human-friendly color…
unclear · top 15,000 on PyPI
colorspaciousConverts colors between standard and…
permissive · top 15,000 on PyPI
materialyoucolorGenerates Material Design 3 color schemes and…
unclear · top 15,000 on PyPI
colorzerocolorzero provides a simple, immutable color…
permissive · top 15,000 on PyPI
webcolorsConverts and normalizes HTML and CSS color…
permissive · top 1,000 on PyPI
colorthiefExtracts dominant colors and color palettes…
permissive · top 15,000 on PyPI
colorhashGenerates deterministic colors from any object…
permissive · top 15,000 on PyPI
colour-scienceColour provides algorithms and datasets for…
permissive · top 15,000 on PyPI
colormathColormath performs color space conversions,…
permissive · top 15,000 on PyPI