color-js/color.js
Color conversion & manipulation library by the editors of the CSS Color specifications observed · 2026-08-28
Health v2 · maintenance only
97/100
- Activity 99
- Release rhythm 94
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 22
- age_days: 2328
- days_rel: 40
- days_push: 8
- n_releases_24m: 4
Adoption not part of the score
2292 stars · 96 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Color.js is a JavaScript library for color conversion, manipulation, and color science, created by editors of the CSS Color specifications. It supports a wide range of color spaces (sRGB, Display P3, Lab/LCh, OKLab/OKLCh, REC.2020, and more) with proper gamut mapping, DeltaE color difference methods, chromatic adaptation, interpolation, and contrast calculations.
Use cases
- convert colors between color spaces like srgb, p3, oklch, and lab
- generate color palettes by interpolating between colors
- check WCAG and APCA contrast ratios for accessibility
- compute perceptual color difference with DeltaE 2000
- map out-of-gamut colors to a smaller gamut like sRGB
- parse and output CSS Color 4 color strings
- manipulate color lightness, chroma, and hue programmatically
When to choose
- you need accurate, standards-based color science rather than naive RGB math
- you work with wide-gamut color spaces like Display P3 or REC.2020
- you need CSS Color 4/5 compatible color parsing and output regardless of browser support
- you want a dependency-free, tree-shakeable library usable in browser or Node
When to avoid
- you only need simple hex/rgb string parsing and tweaking with minimal bundle size
- you need image-level pixel processing rather than individual color values
- you require a tiny zero-config utility and don't care about color space correctness
Facets
library · maturity active
image-processing ui-components developer-tools web-development frontend graphics accessibility browser cross-platform color-science color-spaces css-color-4 oklch gamut-mapping color-conversion delta-e interpolation esm dependency-free javascript nodejs
10 sources
- readme: https://github.com/color-js/color.js · fetched 2026-08-28 · 953bad6c4612
- homepage: https://colorjs.io · fetched 2026-08-29 · c1627eb4af86
- site_page: https://colorjs.io/docs · fetched 2026-08-29 · b6e03df61cc1
- site_page: https://colorjs.io/docs/the-color-object · fetched 2026-08-29 · a81fc2b743c4
- site_page: https://colorjs.io/docs/spaces · fetched 2026-08-29 · 6049e80c984e
- site_page: https://colorjs.io/docs/color-difference · fetched 2026-08-29 · 8d9839e95a3f
- site_page: https://colorjs.io/docs/manipulation · fetched 2026-08-29 · d3cb1cf634fb
- site_page: https://colorjs.io/docs/contrast · fetched 2026-08-29 · 65e821a5d0b6
- site_page: https://colorjs.io/docs/gamut-mapping · fetched 2026-08-29 · 6d6edd1ecbc1
- site_page: https://colorjs.io/docs/interpolation · fetched 2026-08-29 · 539d5fb55c52
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| color-js/color.js | main | 97 |
For agents
markdown · JSON · MCP: product_card(name="color-js/color.js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem