With chroma.js, this asset supports a wide range of color operations, including color conversions between multiple color spaces, perceptual interpolation, contrast evaluation for accessibility, and the creation of responsive color scales for dashboards and UI theming.
Color Creation & Multiple Color Spaces
You can create colors directly in these spaces (e.g., chroma.lab() or chroma.lch()) and read or modify individual channels using .get() and .set().
Scales & Gradients
Generate continuous or discrete color scales using:
You can also read all the documentation: https://gka.github.io/chroma.js/