- Match latest changes made in
csswg-draftsfor:gam_2020Lab_to_LCHlin_2020OKLab_to_OKLCHsRGB_to_HSLXYZ_D50_to_HWB
January 14, 2026
- Updated: Support for Node
20.19.0or later (major). - Removed:
commonjsAPI. In supported Node versionsrequire(esm)will work without needing to make code changes.
August 22, 2025
- Add
lin_P3_to_XYZ_D50 - Add
XYZ_D50_to_lin_P3
February 23, 2025
- Use
Number.isNaNinstead ofNaNfor consistency.
August 14, 2024
- fix
XYZ_D50_to_HWBto not do corrections for out of gamut colors.
August 3, 2024
- Updated: Support for Node v18+ (major).
June 29, 2024
- Optimize matrix multiplication
April 21, 2024
- Add
mapGamutRayTracefunction
March 31, 2024
- Add
contrast_ratio_wcag_2_1function
December 15, 2023
- Remove barrel files
- Fix type definitions
- Use higher precision color conversion matrices.
September 2, 2023
- Undo the changes from
3.0.1.
August 28, 2023
- Clamp negative saturation in
hslto0.
July 3, 2023
- Change license to
MIT-0(read more about this change in the blog post)
May 19, 2023
- Fix gamut mapping
- Fix
XYZ_D50_to_ProPhoto - Export
sRGB_to_HWB
March 25, 2023
- Removed certain implementation specific helpers. Keeping this package more focussed on general purpose color transformations.
- Added
xyzspecific helpers. These make it easy to transform to and fromxyz-d50and any other color space.
February 2, 2023
- Initial version