npm / colord
colord
What changed in colord 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.
1 breaking1 security1 new APIs and options1 performance3 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initcolord 27 changes
Breaking changes 1
Keeps hue within [0, 360) in every color model, changing returned numbers for a small set of colors; toHex() output is unchanged.
Security 1
Malformed color strings are rejected in linear time.
New APIs and options 1
Adds an optional rgb interpolation mode to mix, tints, tones and shades.
Performance 1
HEX parsing and serialization are more than 2x faster.
Fixes and other changes 3
HWB whiteness and blackness values totaling over 100% are normalized to gray.
Unrounded hue rotation preserves the original color in rotate and harmonies.
Uses adjusted chroma for the CIEDE2000 rotation term, changing delta() values for a small set of colors.