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.
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.
- npm downloads ratio: 1.94 vs the 4.1 median, the slowest growth among its peers.
- github.com/omgovich/colord/releases: Active again, with releases v2.10 to v2.14.
- registry.npmjs.org/postcss-colormin/latest: A major consumer switched to @colordx/core.
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.
- github.com/omgovich/colord/releases: Recent stable releases add OKLab and OKLCH and improve parsing and typing.
- colorjs.io/docs/gamut-mapping: Color.js preserves wider-gamut values and offers explicit gamut mapping.
- colorjs.io/docs/interpolation: Color.js offers configurable interpolation spaces and hue handling.
- javascripts.com/packages/colord: The current release cadence follows a multiyear pause.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo and medianDownloadsRatio: Absolute installs rose while relative growth trailed the catalog.
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.
- 2026.stateofcss.com/en-US/pain-points/#colors_pain_points: Respondents report difficulties with dynamic theming and gamut handling.
- recolor.page/research/colors-of-the-web-2026: Conventional color notation remains common, and 22% of sampled sites use CSS color-mix().
- raw.githubusercontent.com/omgovich/colord/v2.14.0/README.md: Documents browser and Node.js support and the core and plugin APIs.
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.
- github.com/omgovich/colord: Core is 1.8 kB; plugins add LAB, LCH, OKLab, OKLCH, CMYK and more; its own benchmark puts it several times ahead of peers.
- github.com/omgovich/colord/releases: v2.11 to v2.14 add OKLab/OKLCH and lab() strings and fix many CSS parsing bugs.
- raw.githubusercontent.com/colorjs/color-space/HEAD/docs/library-comparison.md: A comparison of modern libraries, written by a competing project, lists gamut mapping in Culori and Color.js; colord is not covered.
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.
- github.com/omgovich/colord/releases/tag/v2.14.0: Adds lab() parsing and fixes parser and conversion rounding edge cases.
- raw.githubusercontent.com/omgovich/colord/v2.14.0/README.md: Documents plugin setup, LAB and RGB mixing, and sRGB clipping.
- raw.githubusercontent.com/omgovich/colord/v2.14.0/src/colord.ts: Invalid input falls back to black.
- github.com/romgrk/color-bits#performance: A competing library's benchmark places Colord ahead of several catalog peers.
- github.com/omgovich/colord/issues/103: A user reports changed LCH values after a round trip through sRGB.
- colorjs.io/docs: Documents broader interpolation and gamut mapping.
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.
- github commitsLastYear / releasesLastYear: 59 commits and 6 releases in the last year; v2.14.0 shipped on 2026-11-17.
- registry.npmjs.org/postcss-colormin/latest: postcss-colormin 9 depends on @colordx/core, not colord.
- advisories.gitlab.com/npm/colord/CVE-2026-85062: Fixed in 2.9.4, the first release after the 2.9.3 line of 2022.
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.
- github commitsLastYear, releasesLastYear, contributors, openIssues and openPullRequests: 59 commits, six releases, 21 contributors, five open issues, and one open PR.
- peers commitsLastYear: Colord is more active than color and TinyColor, with fewer commits than Color.js.
- github.com/omgovich/colord/releases: Recent releases credit several contributors for fixes.
- javascripts.com/packages/colord: npm release history shows a gap from August 2022 to August 2026.
- github.com/omgovich/colord/issues/88: The 2022 wide-gamut request moved to an undated v3 milestone in November 2026.
- raw.githubusercontent.com/omgovich/colord/v2.14.0/.github/FUNDING.yml: Lists the lead maintainer's GitHub Sponsors account.
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.
- dependents and peers dependentRepos: 935,521 repositories and 453 npm packages in the index.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio and peers: 103.3 million versus 53.3 million, the slowest relative growth among the listed peers.
- github stars, hackerNews stories and bluesky posts: 1,901 stars and zero matched stories or posts.
- github.com/cssnano/cssnano/blob/cssnano@7.0.7/packages/postcss-colormin/package.json: Older cssnano installations pull in Colord through postcss-colormin.
- github.com/pixijs/pixijs/blob/dev/package.json: PixiJS declares Colord as a runtime dependency.
- github.com/stylelint/stylelint/blob/main/package.json: Stylelint declares Colord as a runtime dependency.
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.
- github.com/omgovich/colord: Self-reported users: Gutenberg, GitLab, Stylelint, cssnano (up to v6), Gitea, PixiJS.
- chromium.googlesource.com/devtools/devtools-frontend/+/ba76776d30e3c9ade8aa4a0ec4b5e89cf4ad22e3/node_modules/colord: Chromium DevTools vendors colord in node_modules.
- pkgpulse.com/blog/culori-vs-chroma-js-vs-tinycolor2-color-manipulation-javascript-2026: This 2026 comparison recommends Culori and does not mention colord.
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.
- github.com/pixijs/pixijs/blob/dev/package.json: Current runtime dependency in a major rendering engine.
- github.com/stylelint/stylelint/blob/main/package.json: Current runtime dependency in a major CSS linter.
- tuleap.net/plugins/tracker/?aid=47841&group_id=101: Tuleap records the patched dependency in release 17.6.
- cssnano.github.io/cssnano/blog/single-package-migration: The current cssnano package uses @colordx/core.
- github.com/romgrk/color-bits#performance: Third-party performance measurements cover a specific workload.
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.
- npm dependencies: 0 runtime dependencies.
- advisories.gitlab.com/npm/colord/CVE-2026-85062: CVSS 5.3 ReDoS, fixed in 2.9.4.
- scorecard: 5.6 overall; Token-Permissions 0, Branch-Protection 3, Code-Review 4.
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.
- npm dependencies and license: Zero runtime dependencies and a permissive MIT licence.
- advisories total and scorecard checks: One advisory, with low scores for token permissions, branch protection, and code review.
- github.com/advisories/GHSA-2wm5-q62r-hmrv: Moderate parser slowdown fixed in 2.9.4.
- raw.githubusercontent.com/omgovich/colord/v2.14.0/.github/workflows/release.yml: Automated npm publishing uses job-scoped OIDC permissions.
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.