A graphics editor at The New York Times.

Chroma.js

Chroma.js is a JavaScript library for working with colors in visualizations. In contrast to many similar libraries it supports advanced color models like CIE Lab and Hue-Chroma-Lightness which are helpful to overcome the traps of equidis­tant HSV col­ors. Also it includes support for color scales and the beautiful palettes by Cynthia Brewer.

To analyze the different color models you also build an interactive color selector around Chroma.js. There's a nice fork of this picker that let's you easily export the colors: hcl-picker.


December 2011