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
- Maintenance status: The repository appears quiet/dormant for the last ~9 months (most recent upstream push and latest published update, 5.0.3, are from 2025-11-14). Recent 5.x updates look like metadata and dependency bumps rather than feature work.
- Update cadence: Within 2025 there were several updates (5.0.0 in 2025-02-12, 5.0.2 in 2025-09-13, 5.0.3 in 2025-11-14), but no updates after 2025-11-14, so cadence has effectively dropped to none recently.
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.