color
Keep, but not for new work. 6th of 7 color libraries.
color is an old, small, immutable library for parsing, converting and adjusting colors, with a chainable API. Huge download numbers come mostly from other packages that install it. It has no OKLCH or CSS Color 4 support, and the last release was a year ago. Keep it where it already runs, but pick Culori, Color.js or colord for new work.
Best for: Existing codebases that already use its chainable RGB/HSL API and only need basic sRGB adjustments.
Scores
Overall4.9
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 4.0, likely 3.0 to 5.0
It is a dependable old API that nearly everyone gets transitively. It lacks modern color spaces, is barely maintained, and was the target of a supply-chain compromise in 2025. For new projects, Culori or Color.js (modern CSS color), colord (small and active) or chroma.js (scales) are better picks.
- github commitsLastYear: Near-idle maintenance
- peers: Active peers are growing faster
- github.com/Qix-/color/releases: No feature work since moving to ESM in 5.0
- app.semgrep.dev/blog/2025/chalk-debug-and-color-on-npm-compromised-in-new-supply-chain-attack: The 2025 compromise of the package
GPT-6.2 Sol: 5.8, likely 4.8 to 6.9
color remains a reasonable choice when a team already uses its API or needs common CSS parsing alongside CMYK or ANSI conversion. For most new projects, colord has more active maintenance and broader CSS parsing, while Color.js offers wide-gamut support and selectable interpolation spaces. The quiet release history and slower relative growth limit the recommendation, with the fit depending on which formats and conversions the project needs.
- npmjs.com/package/color: Documents the established API and supported conversions.
- github.com/omgovich/colord/releases: Shows recent releases and plugins for parsing and converting OKLab and OKLCH.
- colorjs.io/docs/interpolation: Shows configurable interpolation spaces and Display P3 support.
- github commitsLastYear and releasesLastYear, peers, medianDownloadsRatio: Low recent maintenance and download growth below the catalog median.
Needed by many5.4
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Many web and UI projects need to parse or adjust colors, but most only do so now and then. This library covers basic sRGB-family work, not modern wide-gamut CSS color. That makes it a little narrower than the whole category.
- github.com/Qix-/color: Supports RGB, HSL, HSV, CMYK, HWB, LAB, LCH and ANSI, but not OKLCH
- category job: Color handling is common in front-end and tooling work
GPT-6.2 Sol: 4.8, likely 3.6 to 6.0
Parsing and converting colors in code is useful for theming, image processing, data visualization, and developer tools. The library works across frameworks, but many projects handle colors in CSS and have little need for a JavaScript dependency. The State of CSS survey documents the problems developers face with color, while the share that needs a library remains uncertain.
- 2025.stateofcss.com/en-US/features/#colors_pain_points: Respondents report theming, contrast, and wide-gamut pain points.
- npmjs.com/package/color: Documents CSS parsing, contrast checks, and CMYK and ANSI conversions.
Helps a lot5.5
How well does it do the job for those who need it?
Claude Opus 5.5: 4.5, likely 3.5 to 5.5
The API is pleasant and correct for classic models, and recent fixes corrected WCAG and YIQ constants. It has no OKLab/OKLCH, no gamut mapping and no CSS Color 4 parsing. Culori and Color.js now handle all of these, and colord does basic work in a smaller package. It works, but peers do the job clearly better.
- github.com/Qix-/color: List of color models and manipulation methods
- github.com/Qix-/color/releases: 4.2.x fixed the WCAG luminance and contrast constants; 5.0 moved to ESM
- pkgpulse.com/blog/culori-vs-chroma-js-vs-tinycolor2-color-manipulation-javascript-2026: Modern comparisons recommend Culori and chroma.js and leave this library out
GPT-6.2 Sol: 6.4, likely 5.4 to 7.5
The examples and bundled types make common parsing, conversion, and adjustment calls straightforward. The runtime can convert numeric OKLCH values through color-convert, but the CSS parser rejects `oklch()` and Display P3, and the dedicated OKLCH methods are missing from the declarations. Mixing is limited to RGB. One external benchmark put it behind colord and Culori, though application performance and coding-agent accuracy are less well measured.
- mrkeyoor.com/libs/color: Hands-on tests of 5.0.3 cover parsing, bundling, and module loading.
- github.com/Qix-/color/blob/5.0.3/index.js: Generates conversion methods from color-convert and mixes in RGB.
- raw.githubusercontent.com/Qix-/color-convert/3.1.3/conversions.js: Defines numeric OKLab and OKLCH conversions.
- raw.githubusercontent.com/Qix-/color/5.0.3/index.d.ts: Types cover common methods and omit dedicated OKLCH methods.
- raw.githubusercontent.com/Qix-/color-string/2.1.4/index.js: Parses RGB, HSL, HWB, hex, and named colors.
- github.com/romgrk/color-bits: Another library author benchmarks color below colord and Culori.
Holds up over time4.0
Will it still be a good choice in two years?
Claude Opus 5.5: 3.5, likely 2.5 to 5.0
The repository had one commit and no releases in the last year. The latest release, 5.0.3 from November 2025, has no release notes, and the Scorecard 'Maintained' check scores 0. One volunteer maintains this package and its dependencies. The ecosystem is moving towards OKLCH-capable libraries.
- github commitsLastYear: 1 commit, 0 releases in the last year
- scorecard Maintained: Scores 0
- peers commitsLastYear: Color.js has 188 commits and colord 59, against this project's 1
GPT-6.2 Sol: 4.5, likely 3.2 to 5.9
The repository remains open, with one commit and no releases in the past year. The v5 move to ESM led Sharp to adopt a wrapper, and a request for configurable interpolation has remained open since 2017. Colord and Color.js are shipping changes more actively. Future maintenance is hard to judge because funding and backup publishing access are unclear.
- github commitsLastYear, releasesLastYear, archived: One commit, no releases, and an unarchived repository.
- peers colord and Color.js: Both had more commits and more recent releases.
- github.com/Qix-/color/releases: Lists 5.0.3 as latest and shows Qix publishing recent releases.
- github.com/lovell/sharp/issues/4450: Sharp documented the CommonJS upgrade problem and adopted a wrapper.
- github.com/Qix-/color/issues/119: Request for selectable interpolation space remains open.
Used widely7.0
How many use it, and is that growing?
Claude Opus 5.5: 6.5, likely 5.5 to 7.5
The package gets 282M downloads every 4 weeks and has about 2.4M dependent repos. Most of that is transitive: packages like colorspace (pulled in by winston/logform) and older sharp versions install it. Direct choice is much smaller: 4,088 dependent packages. Downloads grew 2.2x in a year, below the 4.1x median, so the package is losing share.
- npm downloadsLast4Weeks: 282M, against 130M a year ago (ratio 2.2, below the 4.1 median)
- dependents: 2.38M repos and 4,088 packages
- colorspace/winston dependency chain: Most installs are transitive
GPT-6.2 Sol: 7.5, likely 6.2 to 8.7
The collector found 2.38 million dependent repositories and 4,088 dependent packages, with more repositories than any peer. Four-week downloads rose from 129.6 million to 282.0 million, but the 2.18× ratio trailed the 4.1× catalog median and the ratios for Color.js, Culori, and d3-color. Sharp historically accounted for about half of downloads by its maintainer’s estimate, and npm’s version breakdown still shows heavy v4 use. The installed base is large, while the rate of direct adoption by new projects remains uncertain.
- dependents repos and packages, peers dependentRepos: Largest recorded dependent repository count in the category.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio, peers: Installs grew 2.18× against the 4.1× median.
- github stars, bluesky posts, hackerNews top, peers: 4,934 stars, zero Bluesky posts versus five for Color.js, and one incident-related HN story.
- github.com/lovell/sharp/issues/4450: Sharp estimated its historical share of color downloads at about half.
- npmjs.com/package/color?activeTab=versions: In npm’s weekly version snapshot, 4.2.3 outdownloaded 5.0.3.
Vouched for4.8
Who stands behind it being good?
Claude Opus 5.5: 3.5, likely 2.5 to 5.0
Widely used infrastructure packages depend on it, but mostly for historical reasons. Current independent comparisons and guides recommend Culori, Color.js and chroma.js and do not mention this library. It has no survey or benchmark presence.
- raw.githubusercontent.com/colorjs/color-space/HEAD/docs/library-comparison.md: The independent comparison leaves the color package out
- pkgpulse.com/blog/culori-vs-chroma-js-vs-tinycolor2-color-manipulation-javascript-2026: A 2026 guide recommends other libraries
- bluesky posts: 0 posts
GPT-6.2 Sol: 6.0, likely 4.8 to 7.2
Sharp uses a CommonJS wrapper built from color 5.0.3, and HCL BigFix lists that version in its 2026 software notices. React Native Paper still declares v3, which adds evidence of long-running use. Independent tests confirm the common workflow works on modern Node, but current satisfaction and retention are hard to gauge.
- raw.githubusercontent.com/lovell/sharp/main/package.json: Sharp declares @img/colour as a runtime dependency.
- raw.githubusercontent.com/lovell/colour/main/package.json: The wrapper bundles color 5.0.3.
- support.bigfix.com/product/documents/opensource/Notices_BigFix_Patch_V11_Jan2026.pdf: HCL lists color 5.0.3 in its January 2026 BigFix notices.
- raw.githubusercontent.com/callstack/react-native-paper/main/package.json: React Native Paper declares a dependency on v3.
- mrkeyoor.com/libs/color: External review tested v5.0.3 on Node 22.
Safe5.1
How safe is it to depend on?
Claude Opus 5.5: 4.5, likely 3.5 to 6.0
In September 2025 a phished npm account was used to publish color@5.0.1 with crypto-stealing malware. npm removed it within hours, and the maintainer published clean patch releases. The Scorecard is weak at 3.1, scoring 0 on pinned dependencies, token permissions and security policy. The package pulls in only two dependencies with an MIT licence, but they are published under the same single account.
- advisories: GHSA-qrmh-qg46-72pp and MAL-2025-46985 for the compromised 5.0.1
- stepsecurity.io/blog/20-popular-npm-packages-compromised-chalk-debug-strip-ansi-color-convert-wrap-ansi: The account takeover hit color, color-convert and color-string
- theregister.com/2025/09/08/dev_falls_for_phishing_email: The compromise came from a phishing email
- scorecard score: Scores 3.1
GPT-6.2 Sol: 5.6, likely 4.3 to 6.9
The two advisories describe one npm account takeover that affected color 5.0.1 and releases of its two direct dependencies. npm removed 5.0.1 the same day, the maintainer reported enabling a hardware security key that day, and 5.0.2 shipped five days later. Version 5.0.3 has an MIT license and requires patched versions of both dependencies. The 3.1 OpenSSF Scorecard shows weak branch protection and review, and current npm publishing controls are only partly documented.
- github.com/advisories/GHSA-qrmh-qg46-72pp: Identifies the affected release and records same-day removal and the patch.
- osv.dev/vulnerability/MAL-2025-46985: Aliases the GitHub advisory and lists the same affected version.
- github.com/github/advisory-database/issues/6103: Maintainer confirmed same-day account recovery and hardware-key setup.
- github.com/Qix-/color/blob/5.0.3/package.json: MIT license and minimum dependency versions above the compromised releases.
- osv.dev/vulnerability/CVE-2025-59142: Identifies the compromised color-string release and its fix.
- github.com/advisories/GHSA-pxx3-g568-hxr4: Identifies the compromised color-convert release and its fix.
- scorecard score and checks: 3.1 overall, with branch protection 1, code review 2, and token permissions 0.
Good
- Simple, immutable, chainable API for lighten, darken, mix, rotate and similar changes.
- Includes WCAG luminosity and contrast-ratio helpers.
- Only two dependencies, and both come from the same maintainer.
- MIT licence, a long track record and types available.
Bad
- No OKLab/OKLCH, Display P3 or CSS Color 4 `color()` support, unlike Culori and Color.js.
- Maintenance is nearly idle: one commit and no releases in the last year, and the Scorecard 'Maintained' check scores 0.
- In September 2025, after the maintainer's npm account was phished, version 5.0.1 shipped with crypto-stealing malware.
- Version 5 is ESM-only, which can break older CommonJS setups.
The numbers
- npm downloads, 4 weeks
- 282M ×2.2 in a year
- GitHub stars
- 4.9k
- Commits, 12 months
- 1
- npm version
- 5.0.3 Nov 2025
- Versions, 12 months
- 0
- Advisories, 24 months
- 2 of 2 ever
- OpenSSF Scorecard
- 3.1 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (Qix-/color), npm (color), OSV and the OpenSSF Scorecard.