Elestia Open Source Ratings
7.0

colord

A strong pick. 2nd of 7 color libraries.

colord is a tiny, fast color library with no dependencies, a chainable API and opt-in plugins for LAB, LCH, OKLab, OKLCH, CMYK, mixing and contrast. It is a good pick for everyday UI color work and became active again in late 2026 after about four quiet years. Culori and Color.js are stronger for modern wide-gamut color, and cssnano has replaced it with its successor fork, @colordx/core.

Best for: Front-end projects that need small, fast hex/RGB/HSL parsing, lighten/darken, mixing and contrast checks, without wide-gamut color science.

WebsiteGitHubnpm

Scores

Overall7.0

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

Claude Opus 5.5: 6.5, likely 5.5 to 7.5

colord is a sound, very light choice for basic UI color manipulation, and its 2026 revival added OKLCH support. For new projects that need modern CSS color, Culori or Color.js do the job better. Its share is shrinking, and cssnano has moved to the @colordx/core fork. The long past gap in maintenance and a single main maintainer keep the range wide.

GPT-6.2 Sol: 7.5, likely 6.3 to 8.5

Colord is a strong pick for compact sRGB color work because its typed API is easy to use and maintenance has resumed with concrete parser and conversion fixes. Color.js is the stronger choice when a project needs Display P3 round trips, gamut mapping, or more interpolation spaces. The previous release gap and slower relative download growth leave uncertainty about how long the current momentum will last.

Needed by many4.9

How many developers need a tool for this job?

Claude Opus 5.5: 5.0, likely 4.0 to 6.0

Many front-end and tooling projects need to parse or adjust colors, but few projects need a dedicated color library. colord covers the common UI subset and runs on any runtime.

  • category job: Color work mostly matters in UI, theming, charts and CSS tooling.
  • github.com/omgovich/colord: General-purpose library with hex, RGB, HSL and HSV built in.

GPT-6.2 Sol: 4.8, likely 3.5 to 6.1

Programmatic color conversion and mixing matter for themes, editors, graphics, and build tools. Colord works in browsers and Node.js, while native CSS handles many styling-only jobs. The survey identifies real color-handling pain points, but the share of JavaScript and TypeScript projects that need a library is uncertain.

Helps a lot7.1

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

Claude Opus 5.5: 6.5, likely 5.5 to 7.5

colord is excellent for small, fast UI color work: good types, a clean API, plugins for many color spaces, CIEDE2000 delta and WCAG contrast. It has no gamut mapping and no wide-gamut spaces such as Display P3, where Culori and Color.js do clearly better. The November 2026 releases fixed many parsing edge cases, which also shows that correctness gaps existed for years.

GPT-6.2 Sol: 7.6, likely 6.5 to 8.6

Version 2.14.0 has clear typed examples for common tasks, and a third-party benchmark puts Colord ahead of chroma.js, TinyColor, and color on its tested workload. Plugin registration and the invalid-input fallback make it easy for callers, including coding agents, to miss a required step. Users have reported wide-gamut round-trip errors, and Color.js has broader interpolation and gamut mapping. The benchmark covers a limited workload, and coding-agent reliability is inferred from the API and documentation.

Holds up over time6.6

Will it still be a good choice in two years?

Claude Opus 5.5: 6.0, likely 4.5 to 7.0

Work resumed in 2026 after a long pause: 59 commits and 6 releases in the last year, and few open issues. It still depends mostly on one maintainer, with no visible funding. The ecosystem is partly moving away: cssnano switched to the @colordx/core successor fork.

GPT-6.2 Sol: 7.1, likely 5.8 to 8.4

Colord recorded 59 commits and six GitHub releases in the past year, with recent fixes from several contributors and more commit activity than color or TinyColor. The current burst follows a multiyear npm release gap, and some user reports stayed open for years. Wide-gamut support is planned for v3 because it can change results across the API. The project lists an individual sponsorship channel, and funding and release authority remain unclear.

Used widely7.1

How many use it, and is that growing?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

With 103M downloads per 4 weeks and about 935k dependent repos, it is one of the most installed color libraries, but most of that comes through cssnano and other tools. Its year-over-year ratio of 1.94 is well below the 4.1 median and the lowest of its peers, so it is losing ground. Its main transitive source has also moved to a fork.

  • npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 103.3M vs 53.3M, a ratio of 1.94 against a median of 4.1.
  • dependents: 935,521 repos and 453 packages, mostly transitive through CSS tooling.
  • peers: Culori (11.7x) and d3-color (6.4x) are growing far faster.
  • bluesky / hackerNews: Zero posts or stories, so it gets little direct attention.

GPT-6.2 Sol: 7.1, likely 5.8 to 8.3

Ecosyste.ms found roughly 936,000 dependent repositories, second to color among the listed peers. PixiJS, Stylelint, and older cssnano releases account for some indirect installs, so 103 million downloads over four weeks overstates how often developers choose Colord directly. Downloads rose 1.94× year over year, below the 4.1× catalog baseline and every listed peer. Direct adoption is hard to isolate, and the bundle recorded no matching Hacker News or Bluesky activity.

Vouched for6.7

Who stands behind it being good?

Claude Opus 5.5: 6.0, likely 4.5 to 7.0

Well-known projects such as WordPress Gutenberg, GitLab, Stylelint and PixiJS use it, per its README, and Chromium DevTools vendors it. cssnano dropping it in favour of a fork weakens the current endorsement. Independent comparisons in 2026 mostly do not cover it.

GPT-6.2 Sol: 7.3, likely 6.1 to 8.3

PixiJS and Stylelint currently depend on Colord, and Tuleap recorded shipping its security update. cssnano has switched to @colordx/core, so its older integration carries less weight today. The independent benchmark covers a narrow workload, and the available surveys cover color workflows rather than satisfaction with Colord.

Safe7.8

How safe is it to depend on?

Claude Opus 5.5: 7.5, likely 6.5 to 8.5

It has no dependencies, an MIT licence and only one advisory: a moderate ReDoS in color-string parsing, fixed in 2.9.4. The OpenSSF Scorecard is middling at 5.6, with weak token permissions, branch protection and code review. Releases depend on a small set of publishers.

GPT-6.2 Sol: 8.0, likely 6.8 to 9.0

Colord has an MIT licence and zero runtime dependencies. The sole recorded advisory was a moderate parsing denial of service fixed in 2.9.4 by the time GitHub's advisory database listed it. The release workflow uses npm trusted publishing through GitHub Actions. Scorecard's 5.6 reflects weak token permissions, branch protection, and review checks, and the number of people who can publish remains unclear.

Good

  • Very small: about 1.8 kB brotlied for the core, with no dependencies and plugins you add only when needed.
  • Its README benchmark shows parsing and conversion several times faster than tinycolor2, chroma-js and color.
  • A simple chainable API with built-in TypeScript types, which coding agents write correctly with ease.
  • The late-2026 releases added OKLab/OKLCH plugins, a lab() string parser and many CSS parsing fixes.

Bad

  • It was designed around CSS Color 3: it has no gamut mapping and no Display P3 or full CSS Color 4 support like Culori and Color.js.
  • It had no releases from 2022 until 2026, and one main maintainer carries the work.
  • cssnano's postcss-colormin replaced it with @colordx/core, so much of its install base is legacy and transitive.
  • A 2026 ReDoS advisory (CVE-2026-85062) showed that parsing untrusted input needed hardening.

The numbers

npm downloads, 4 weeks
103M +94% in a year
GitHub stars
1.9k
Commits, 12 months
59
npm version
2.14.0 Nov 2026
Versions, 12 months
10
Advisories, 24 months
1 of 1 ever
OpenSSF Scorecard
5.6 out of 10, Nov 2026
Licence
MIT

Read on 21 November 2026 from GitHub (omgovich/colord), npm (colord), 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