JavaScript library for immutable color conversion and manipulation with support for CSS color strings. It converts between multiple color spaces (for example, RGB, HSL, CMYK, ANSI) and provides helpers like alpha adjustment, lightening/darkening, contrast and luminosity checks, and string/hex output.
Project status
- The repository is not clearly actively maintained as of today (2026-08-12), with the last observed upstream push and latest shown update occurring on 2025-11-14, suggesting a quiet period since then.
- Apparent update cadence around the v5 line: updates were released on 2025-02-12 (v5.0.0), 2025-09-13 (v5.0.2, with a “compromised” note for v5.0.1), and 2025-11-14 (v5.0.3). After 2025-11-14, no further updates are evidenced in the provided history.
AI summary generated
Recent updates
5.0.3
Release 5.0.3 does not include any explicit release note entries beyond a link to the GitHub compare view. The code diff shows only a package metadata update and dependency version bumps in package.json.
5.0.2
Release 5.0.2 is described as functionally identical to 5.0.0, with an explicit note that version 5.0.1 was compromised. The provided code diff shows only a package version metadata update.
5.0.0
v5.0.0 primarily migrates the package to ESM and modernizes the toolchain/docs. The diff also adds first-party TypeScript declaration files and bumps major versions of runtime dependencies (color-convert, color-string), plus updates CI and test setup.
BreakingFeatures4.2.3
Release 4.2.3 updates color conversion math constants and channel limits, including XYZ model boundary corrections and luminance and YIQ formula fixes. It also updates documentation around alpha handling for `.hex()`, and performs a cleanup to remove numeric separators. Packaging metadata is adjusted to declare `sideEffects: false`.
Breaking4.2.2
Release 4.2.2 is a patch update with small internal refactors and two behavioral fixes: a WCAG contrast AAA threshold adjustment and a correction to how alpha (valpha) is handled when converting between color models. It also includes linting-related cleanup and minor test/package metadata updates.
4.2.1
Release 4.2.1 is a packaging metadata update. The only code change is adding an engines field to restrict supported Node.js versions.
Breaking4.2.0
Release 4.2.0 adds a new Color.prototype.hexa() API for producing an 8-digit hex string (RGB plus alpha) and extends test coverage for alpha handling. The package version is bumped from 4.1.0 to 4.2.0. No other functional changes are visible in the provided diff.
Features4.1.0
Release 4.1.0 is a dependency-only update. The only code change in this diff is bumping the `color-string` dependency version and updating the package version metadata.
4.0.2
Release 4.0.2 is presented as a patch update. The release notes mention only a dependency bump of color-string to around version 1.7.4.
4.0.1
Release 4.0.1 is described as a small patch: it removes a no-op in the integer (number) constructor and updates README examples to use const. The code diff shows those changes plus a broader ES6 refactor (var to const/let, method shorthand syntax) and some packaging/tooling changes that are not mentioned in the release notes.