Home

Culori is a color library for JavaScript that supports most color spaces and formats defined in the CSS Colors Level 4 spec (named colors, hex colors with 3 to 8 digits, RGB, HSL, HWB, Lab and LCh), plus additional color spaces.

It handles color differences, interpolation, gradients, blend modes and more.

Get started

Another JS color library?

Mike Bostock's d3-color, and Gregor Aisch's chroma.js are two excellent, robust libraries that provide most of what you need for working with colors on the web. The Resources section for even more libraries you can try.

Culori does a few things differently: