colormath
Color math and conversion library.
What it is and what it does
Colormath is a Python library for performing mathematical operations on colors. It handles color space conversions (e.g., RGB to LAB, XYZ to sRGB), calculates perceptual color differences using Delta E metrics, and can convert between color representations and spectral data. The library depends on numpy for numerical computation and NetworkX 2.0+ for graph operations.
The package is in production-stable status but abandoned—the last release was in December 2017 and the repository is archived. It remains functional for color math tasks but receives no active maintenance, security updates, or compatibility fixes. Use it only if your color conversion needs are stable and you can tolerate lack of ongoing support.
Use it for:
- Convert RGB colors to perceptually uniform spaces like LAB for image processing or color analysis
- Calculate Delta E (color difference) to determine if two colors are perceptually similar
- Transform between different color spaces (sRGB, XYZ, HSV, etc.) for graphics or design workflows
- Convert spectral data to standard color representations for scientific or photometric applications
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Colormath performs color space conversions, calculates color differences (Delta E), and converts between color representations and spectral data.
Yes, if your color math needs are stable and you can tolerate an abandoned package. Colormath remains functional for standard color conversions and Delta E calculations, with no known vulnerabilities. However, do not adopt it for new projects requiring active maintenance, Python version updates, or modern color science standards—the lack of updates since 2017 and repository archival mean no fixes or enhancements are coming.
Install
colormath on PyPI
pip
pip install colormathuv
uv add colormathpoetry
poetry add colormathInstalling colormath
Before you install
Installation requires numpy and NetworkX 2.0+. The package is abandoned—last release was 2017-12-27 and the repository was archived. No active maintenance or security updates should be expected.
License in practice
BSD license is permissive; you can use, modify, and distribute colormath with minimal restrictions, provided you retain the copyright notice and license text.
Quickstart
pip install colormath
from colormath.color_objects import sRGBColor
from colormath.color_conversions import convert_color
color = sRGBColor(0.5, 0.5, 0.5)
lab_color = convert_color(color, LabColor)
Requires numpy and NetworkX 2.0+ as runtime dependencies; no Python version guarantee beyond the stated support for 2.7 and 3.5+
Verify before relying
- Whether numpy and NetworkX 2.0+ are available in your target environment without additional friction
- Whether the package's color algorithms remain accurate for modern color science standards
- Whether abandonment affects compatibility with current Python versions beyond the stated 2.7 and 3.5+ support
Package facts
| License | BSD (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 3,152 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 131,721/month — #11,577 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: colormath-3.0.0.tar.gz
Keywords: color, math, conversions
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
colour-scienceColour provides algorithms and datasets for…
permissive · top 15,000 on PyPI
colorzerocolorzero provides a simple, immutable color…
permissive · top 15,000 on PyPI
colorspaciousConverts colors between standard and…
permissive · top 15,000 on PyPI
pyobjc-framework-ColorSyncProvides Python bindings to macOS's ColorSync…
permissive · top 15,000 on PyPI
coloraideColorAide is a pure Python library for…
permissive · top 15,000 on PyPI
romaRoMa provides differentiable conversions…
permissive · top 15,000 on PyPI
colourConverts between and manipulates color…
permissive · top 5,000 on PyPI
pymap3dConverts between geographic and 3-D coordinate…
permissive · top 15,000 on PyPI
qt-materialApplies a Material Design stylesheet to PySide6…
permissive · top 15,000 on PyPI