color-system

transfer colors between color systems

color-system

Convert and compute in color systems (RGB, HSV, HSL, LAB, XYZ, LCH)

npm install color-system
var colorsys = require('color-system');
 
colorsys.hsl([0, 0, 0]); // [r, g, b] => [h, s, l]
colorsys.hsv([0, 0, 0]); // [r, g, b] => [h, s, v]