chromajs
Chroma.js, often written chroma.js or chroma-js, is a JavaScript library that provides color manipulation and color scale utilities for web development and data visualization. It offers color parsing, conversion between color spaces, and interpolation to generate smooth gradients.
Input formats include hex, RGB(A), HSL(A), and named colors; outputs can be requested in several representations.
Usage is lightweight and cross-environment: it runs in browsers and in Node.js. The API centers on a
Chroma.js is maintained as an open-source project with contributions from a community of developers. It is widely