skillfed

coloraide

A color library for Python.

coloraide v8.11.1 321.6K downloads/30d#7,621 on PyPI349
Permissive license MIT Active released

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 coloraide

uv

uv add coloraide

poetry

poetry add coloraide

Installing 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

Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Internet :: WWW/HTTP :: Dynamic ContentTopic :: Software Development :: Libraries :: Python ModulesTopic :: Text Processing :: FiltersTopic :: Text Processing :: Markup :: HTML

Tags

color conversion librarycolor space manipulationCSS color parsingcolor mixing and blendingcolor interpolationcolor contrast and accessibilitycolor temperature
color-sciencecss-colorsaccessibility

More Python Modules packages