Color spaces! RGB, HSL, Cubehelix, Lab and HCL (Lch).


Keywords
d3, d3-module, color, rgb, hsl, lab, hcl, lch, cubehelix
License
ISC
Install
npm install d3-color@3.1.0

Documentation

d3-color

Even though your browser understands a lot about colors, it doesn’t offer much help in manipulating colors through JavaScript. The d3-color module therefore provides representations for various color spaces, allowing specification, conversion and manipulation. (Also see d3-interpolate for color interpolation.)

Resources