# Color libraries

Parse, convert and mix colors. Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.

| Rank | Project | Overall | Needed by many | Helps a lot | Holds up over time | Used widely | Vouched for | Safe | Best for |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | [Color.js](https://elestia.ai/opensource/colors/colorjs/index.md) | 7.9 | 4.5 | 8.6 | 7.8 | 4.7 | 7.6 | 8.5 | Projects that need correct CSS Color 4/5 handling, such as OKLCH, P3, gamut mapping and contrast, more than a tiny bundle. |
| 2 | [colord](https://elestia.ai/opensource/colors/colord/index.md) | 7.0 | 4.9 | 7.1 | 6.6 | 7.1 | 6.7 | 7.8 | Front-end projects that need small, fast hex/RGB/HSL parsing, lighten/darken, mixing and contrast checks, without wide-gamut color science. |
| 3 | [Culori](https://elestia.ai/opensource/colors/culori/index.md) | 6.8 | 4.4 | 8.1 | 5.1 | 5.2 | 6.2 | 7.2 | Developers who build design-system palettes or CSS Color 4 tooling and want a fast, tree-shakeable, function-based API with no dependencies. |
| 4 | [chroma.js](https://elestia.ai/opensource/colors/chroma-js/index.md) | 6.6 | 4.8 | 7.1 | 6.3 | 5.5 | 6.0 | 7.3 | Data-visualization projects that need color scales, ColorBrewer palettes and perceptual interpolation with a simple chainable API. |
| 5 | [d3-color](https://elestia.ai/opensource/colors/d3-color/index.md) | 5.7 | 4.2 | 5.7 | 5.4 | 6.3 | 6.6 | 7.1 | D3 and data-visualization projects that need simple, reliable conversion between RGB, HSL, Lab and HCL, and nothing more. |
| 6 | [color](https://elestia.ai/opensource/colors/color/index.md) | 4.9 | 5.4 | 5.5 | 4.0 | 7.0 | 4.8 | 5.1 | Existing codebases that already use its chainable RGB/HSL API and only need basic sRGB adjustments. |
| 7 | [TinyColor](https://elestia.ai/opensource/colors/tinycolor/index.md) | 3.9 | 4.7 | 5.1 | 2.6 | 6.2 | 4.7 | 6.0 | Existing codebases that already use tinycolor2 for simple sRGB parsing, lighten/darken, or readability checks, and have no reason to migrate yet. |

## The numbers

| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
| --- | --- | --- | --- | --- | --- | --- |
| Color.js | 57M | ×4.5 | 2.3k | 188 | Jul 2026 | 0 |
| colord | 103M | +94% | 1.9k | 59 | Nov 2026 | 1 |
| Culori | 25M | ×12 | 1.3k | 4 | Jun 2025 | 0 |
| chroma.js | 17M | ×3.0 | 11k | 35 | Nov 2026 | 0 |
| d3-color | 421M | ×6.4 | 428 | 1 | Nov 2026 | 0 |
| color | 282M | ×2.2 | 4.9k | 1 | Nov 2025 | 2 |
| TinyColor | 75M | ×2.7 | 5.3k | 0 | Feb 2023 | 0 |

All categories: https://elestia.ai/opensource/index.md
