MCPcopy Index your code
hub / github.com/facelessuser/coloraide

github.com/facelessuser/coloraide @8.10

Chat with this repo
repository ↗ · DeepWiki ↗ · release 8.10 ↗ · + Follow
3,209 symbols 15,004 edges 290 files 3,086 documented · 96% updated 5d ago8.10 · 2026-06-26★ 3487 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Donate via PayPal Coverage Status PyPI Version PyPI Downloads PyPI - Python Version License

ColorAide

Overview

ColorAide is a pure Python, object oriented approach to colors.

>>> from coloraide import Color
>>> c = Color("red")
>>> c.to_string()
'rgb(255 0 0)'
>>> c.convert('hsl').to_string()
'hsl(0 100% 50%)'
>>> c.set("lch.chroma", 30).to_string()
'rgb(173.81 114.29 97.218)'
>>> Color("blue").mix("yellow", space="lch").to_string()
'rgb(255 65.751 107.47)'

ColorAide particularly has a focus on the following:

  • Accurate colors.

  • Proper round tripping (where reasonable).

  • Be generally easy to pick up for the average user.

  • Support modern CSS color spaces and syntax.

  • Make accessible many new and old non-CSS color spaces.

  • Provide a number of useful utilities such as interpolation, color distancing, blending, gamut mapping, filters, correlated color temperature, color vision deficiency simulation, etc.

  • Provide a plugin API to extend supported color spaces and approaches to various utilities.

  • Allow users to configure defaults to their liking.

With ColorAide, you can specify a color, convert it to other color spaces, mix it with other colors, output it in different CSS formats, and much more!

Documentation

https://facelessuser.github.io/coloraide

License

MIT

Core symbols most depended-on inside this repo

assertEqual
called by 1657
tests/util.py
assertColorEqual
called by 813
tests/util.py
convert
called by 461
coloraide/color.py
layer
called by 263
coloraide/color.py
to_string
called by 177
coloraide/color.py
mix
called by 131
coloraide/color.py
interpolate
called by 121
coloraide/color.py
is_nan
called by 110
coloraide/color.py

Shape

Method 1,955
Class 639
Function 615

Languages

Python98%
TypeScript2%

Modules by API surface

coloraide/algebra.py185 symbols
tests/test_interpolation.py180 symbols
tests/test_gamut.py96 symbols
tests/test_algebra.py91 symbols
tests/test_api.py88 symbols
coloraide/color.py74 symbols
coloraide/compositing/porter_duff.py56 symbols
coloraide/compositing/blend_modes.py48 symbols
tests/test_distance.py43 symbols
tests/test_plugin.py38 symbols
coloraide/spaces/__init__.py36 symbols
docs/src/py/notebook.py35 symbols

For agents

$ claude mcp add coloraide \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page