Elestia Open Source Ratings
7.9

Color.js

A strong pick. 1st of 7 color libraries.

Color.js (npm: colorjs.io) is a color library written by editors of the CSS Color specifications. It has the most accurate and complete support for modern CSS color spaces, gamut mapping and color difference among the peers. It is still pre-1.0 and its API changes between minor versions, but it is actively maintained and a strong pick for new work that needs correct modern color.

Best for: Projects that need correct CSS Color 4/5 handling, such as OKLCH, P3, gamut mapping and contrast, more than a tiny bundle.

WebsiteGitHubnpm

Scores

Overall7.9

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 7.5, likely 6.5 to 8.5

For new work that touches modern CSS color, Color.js is the most correct and best-maintained option in the bundle. Culori is lighter but barely maintained (4 commits last year), and the color, TinyColor and d3-color libraries lack modern color science. Its 0.x API churn, larger size for simple tasks and thin independent validation keep it out of the 9 range. colord remains the simpler pick for basic hex/RGB work.

GPT-6.2 Sol: 8.3, likely 7.2 to 9.2

Color.js is a strong first choice for modern CSS color tooling that needs wide-gamut conversion and configurable mixing. Its maintenance activity and downstream integrations make it a credible choice for new work. Culori is the stronger candidate when the measured parsing and conversion workloads dominate, and Color.js's bundling trade-offs limit a broader recommendation.

Needed by many4.5

How many developers need a tool for this job?

Claude Opus 5.5: 4.0, likely 3.0 to 5.0

Many web apps need color parsing or mixing now and then, but a dedicated library is a niche need. Color.js's take, accurate color science across modern spaces, is narrower still. Design-system, theming, data-viz and accessibility tools are its main users.

GPT-6.2 Sol: 5.0, likely 3.6 to 6.3

Color.js serves design systems, visualization, accessibility tools, and other projects that compute colors in JavaScript. Native CSS covers many routine browser-side uses. Developer surveys identify pain points around wide-gamut colors and dynamic theming, but give little indication of how many teams need a JavaScript library.

Helps a lot8.6

How well does it do the job for those who need it?

Claude Opus 5.5: 8.5, likely 7.5 to 9.0

It is the most complete and spec-faithful library in the category. It has many color spaces, gamut mapping (now including raytrace), multiple deltaE methods, interpolation and CSS serialization. Points come off for the pre-1.0 API churn, a larger footprint than Culori for basic OKLCH use, and limited third-party benchmarks.

GPT-6.2 Sol: 8.6, likely 7.4 to 9.4

Version 0.7.1 combines broad color-space coverage with configurable interpolation and gamut mapping. The typed API and worked examples give developers and coding agents a clear path for common tasks. Culori is faster in the measured class-API workloads, and users report limits to tree-shaking on the procedural path. Performance depends on the API and workload.

Holds up over time7.8

Will it still be a good choice in two years?

Claude Opus 5.5: 7.5, likely 6.5 to 8.5

Maintenance is active: 188 commits and 6 releases last year, with a push five days before the read date and 53 contributors. A named core team of about eight people backs it. That is far healthier than color, TinyColor or Culori. It remains 0.x with breaking changes in each minor release, and the funding is volunteer work plus a new Open Collective.

GPT-6.2 Sol: 8.0, likely 6.8 to 8.9

Color.js had more commits than any listed peer over the last year and has a small core team. The maintainers released a fix on the day a user reported the 0.7.0 bundler regression. Modest public funding, longer-lived open issues, and changes to package entry points make the two-year outlook less certain.

Used widely4.7

How many use it, and is that growing?

Claude Opus 5.5: 5.0, likely 4.0 to 6.0

It has 57M downloads in 4 weeks, up 4.5x on a year ago, which is just above the 4.1 median. Much of that likely comes through tools such as Sass and axe, not direct choices. Its 582 dependent repos are far below chroma.js (19.7k) and colord (935k), so direct choices are likely in the tens of thousands.

  • npm downloadsLast4Weeks: 57.0M now vs 12.8M a year ago; ratio about 4.46.
  • dependents: 582 repos and 72 packages, modest next to peers.
  • bluesky posts: 5 posts, mostly from the maintainer, though peers have about none.

GPT-6.2 Sol: 4.4, likely 2.8 to 6.0

Four-week downloads rose from 12.8 million to 57.0 million, or 4.46×, just ahead of the 4.1× catalog baseline. Tracked dependent repositories exceed Culori's count and trail chroma.js by a wide margin. Sass Embedded and Style Dictionary generate downstream installs, so the growth in projects choosing Color.js directly remains uncertain.

Vouched for7.6

Who stands behind it being good?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

Sass, the axe accessibility engine and Open Props use it. Browsers have used it to test CSS Color 4/5, and W3C spec demos rely on it. Independent reviews and benchmarks are scarce, and some third-party guides recommend Culori instead, so the score stays below 8.

GPT-6.2 Sol: 8.1, likely 7.0 to 9.1

Sass Embedded and Style Dictionary ship Color.js as a dependency, and Deque uses its conversions in axe-core. Those integrations cover build tooling, design tokens, and accessibility testing. The strongest evidence comes from downstream code and manifests. Library-specific survey evidence on satisfaction and retention is sparse.

Safe8.5

How safe is it to depend on?

Claude Opus 5.5: 8.5, likely 7.5 to 9.0

It has zero dependencies, no known advisories and an MIT licence. Several maintainers can publish. No OpenSSF Scorecard is available, so the release process cannot be checked directly, and that widens the range.

  • npm dependencies: 0 dependencies.
  • advisories total: No advisories on record.
  • scorecard: No Scorecard data.
  • github license: MIT.

GPT-6.2 Sol: 8.5, likely 7.2 to 9.5

Color.js uses the permissive MIT license, has zero runtime dependencies, and has no listed OSV or GitHub advisories. The tagged manifest identifies the release tooling, and npm identifies the publisher of 0.7.1. The missing OpenSSF Scorecard and limited evidence on publisher access and release provenance widen the range.

Good

  • It has the widest coverage of color spaces, including OKLCH, Display P3, Rec2020, OKHSL, CAM16, HCT and gamut-relative LCH.
  • It does real CSS-style gamut mapping and offers several deltaE and contrast methods instead of naive clipping.
  • It has zero dependencies, ships types, and offers a tree-shakeable procedural API next to the object API.
  • It is co-maintained by spec editors and a team of about eight people, and Sass, axe and Open Props use it.

Bad

  • It is still at 0.x, and v0.6 and v0.7 changed how `none` values work, coordinate types and the dist/ layout.
  • It is heavier than colord or TinyColor for simple hex/RGB tweaks.
  • Volunteers do the work, and the Open Collective funding is new and small.
  • Few third-party guides or benchmarks cover it, so AI agents may know older API shapes.

The numbers

npm downloads, 4 weeks
57M ×4.5 in a year
GitHub stars
2.3k
Commits, 12 months
188
npm version
0.7.1 Jul 2026
Versions, 12 months
4
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
None
Licence
MIT

Read on 21 November 2026 from GitHub (color-js/color.js), npm (colorjs.io), OSV and the OpenSSF Scorecard.

Color libraries

  1. 7.9Color.js
  2. 7.0colord
  3. 6.8Culori
  4. 6.6chroma.js
  5. 5.7d3-color
  6. 4.9color
  7. 3.9TinyColor
Compare all 7 on six scores