# color: 4.9 out of 10

Keep, but not for new work. 6th of 7 in [Color libraries](https://elestia.ai/opensource/colors/index.md).

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

- **Overall: 4.9** (likely 3.9 to 6.0)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (5.8): 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.
- **Needed by many: 5.4** (likely 4.3 to 6.5)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (4.8): 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.
- **Helps a lot: 5.5** (likely 4.5 to 6.5)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (6.4): 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.
- **Holds up over time: 4.0** (likely 2.9 to 5.5)
  - Claude Opus 5.5 (3.5): 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.
  - GPT-6.2 Sol (4.5): 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.
- **Used widely: 7.0** (likely 5.9 to 8.1)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (7.5): 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.
- **Vouched for: 4.8** (likely 3.7 to 6.1)
  - Claude Opus 5.5 (3.5): 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.
  - GPT-6.2 Sol (6.0): 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.
- **Safe: 5.1** (likely 3.9 to 6.5)
  - Claude Opus 5.5 (4.5): 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.
  - GPT-6.2 Sol (5.6): 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.

## 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

- Downloads, 4 weeks: 282M
- In a year: ×2.2
- GitHub stars: 4.9k
- Commits, 12 months: 1
- Last npm release: Nov 2025
- Advisories, 24 months: 2
- Licence: MIT
- GitHub: https://github.com/Qix-/color
- npm: https://www.npmjs.com/package/color

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
