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.
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.
- peers commitsLastYear: Color.js has 188 commits vs Culori 4, color 1, TinyColor 0.
- github.com/color-js/color.js/releases: Steady releases, but breaking 0.x changes.
- unpkg.com/colorjs.io@0.7.1/README.md: Used by Sass, axe and Open Props.
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.
- github.com/color-js/color.js/releases/tag/v0.7.1: Current release fixes a reported bundler regression.
- github commitsLastYear, peers commitsLastYear: Highest recent commit activity among the listed peers.
- github.com/sass/embedded-host-node/blob/main/package.json: Established downstream use in Sass Embedded.
- saturon.js.org/docs/benchmarks: Culori leads Color.js on the measured parsing and conversion tasks.
- github.com/color-js/color.js/issues/757: Open report documents a limit to tree-shaking.
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.
- category.job: Parse, convert and mix colors is a focused job.
- unpkg.com/colorjs.io@0.7.1/README.md: Aimed at CSS Color 4 spaces and color science.
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.
- 2026.stateofcss.com/en-US/pain-points: Respondents report gamut and dynamic-theming problems.
- developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/color-mix: Native CSS handles common color mixing.
- colorjs.io: Documents browser and Node.js usage.
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.
- github.com/color-js/color.js/releases: v0.7.0 adds gamut-relative spaces and raytrace gamut mapping. v0.6 adds Color.try and OKHSL.
- raw.githubusercontent.com/colorjs/color-space/HEAD/docs/library-comparison.md: A comparison notes Color.js covers advanced spaces like CAM16 that others lack.
- npm hasTypes: Ships TypeScript types.
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.
- colorjs.io/api: Versioned API reference covers both interfaces.
- colorjs.io/docs/interpolation: Examples cover color space, hue direction, and mixing.
- saturon.js.org/docs/benchmarks: October 2026 benchmarks compare 0.7.1 with Culori and chroma.js.
- github.com/color-js/color.js/issues/757: A user reports extra color spaces in procedural bundles.
- github.com/color-js/color.js/discussions/718: A user reports inconsistent procedural return shapes.
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.
- github commitsLastYear: 188 commits, the most among peers.
- github releasesLastYear: 6 releases; latest v0.7.1 in July 2026.
- github.com/color-js/color.js/releases: Breaking changes in v0.6 and v0.7; v1 planned next.
- unpkg.com/colorjs.io@0.7.1/README.md: Volunteer core team and 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.
- github commitsLastYear, github releasesLastYear, peers commitsLastYear: 188 commits and six GitHub releases. Every listed peer had fewer commits.
- github.com/color-js/color.js: Lists the core maintainers.
- github.com/color-js/color.js/issues/759: Bundler regression reported and fixed on July 24.
- github.com/color-js/color.js/releases/tag/v0.7.0: Documents removal of prebuilt ESM and minified files.
- github.com/color-js/color.js/issues: Some older issues remain open.
- opencollective.com/color: Public donation budget is modest.
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.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio: Download growth slightly exceeds the catalog baseline.
- dependents, peers dependentRepos, github stars, bluesky posts: 582 tracked repositories, 72 packages, 2,328 stars, and five Bluesky posts.
- github.com/sass/embedded-host-node/blob/main/package.json: Sass Embedded installs Color.js as a runtime dependency.
- npmjs.com/package/style-dictionary?activeTab=dependencies: Style Dictionary installs Color.js as a runtime dependency.
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.
- unpkg.com/colorjs.io@0.7.1/README.md: Lists Sass, axe and Open Props as users, plus browser testing.
- pkgpulse.com/blog/culori-vs-chroma-js-vs-tinycolor2-color-manipulation-javascript-2026: A third-party guide favors Culori for OKLCH and does not cover Color.js.
- svgees.us/blog/colorjs-release.html: Co-creator Chris Lilley, a CSS Color spec editor, announced it.
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.
- github.com/sass/embedded-host-node/blob/main/package.json: Sass Embedded declares a Color.js 0.7 dependency.
- npmjs.com/package/style-dictionary?activeTab=dependencies: Published Style Dictionary package depends on Color.js.
- github.com/dequelabs/axe-core: Deque documents its use for color conversion.
- github.com/dequelabs/axe-core/blob/develop/package.json: Axe-core pins Color.js 0.7.1 in its build dependencies.
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.
- npm dependencies, npm license, advisories total, scorecard: Zero runtime dependencies, MIT, zero OSV advisories, and no Scorecard result.
- github.com/color-js/color.js/security: GitHub lists no published security advisories.
- github.com/color-js/color.js/blob/v0.7.1/package.json: Tagged manifest identifies the build and release commands.
- npmjs.com/~leaverou: npm attributes the 0.7.1 publication to a core maintainer.
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.