d3 / d3-color

Color spaces! RGB, HSL, Cubehelix, CIELAB, and more.
https://d3js.org/d3-color
ISC License
400 stars 91 forks source link

Allow conversion to hexadecimal format #40

Closed hugolpz closed 6 years ago

hugolpz commented 6 years ago

I may have missed it, but It seems there is no native way to convert from rgb or others to hexadecimal. This can however be quite handy. See : https://jsfiddle.net/Mottie/xcqpF/1/light/

mbostock commented 6 years ago

Duplicate of #38.