Closed mcfly10 closed 2 years ago
https://github.com/Qix-/color-convert#api
Please read about rounding. Use .raw()
if you need to preserve accuracy. Also, keep in mind hex
will always truncate, which means you're losing data. Conversion between HSL and RGB is not perfect.
> console.log(convert.hsl.hex(convert.hex.hsl('A38E8E')))
A38F8F
> console.log(convert.hsl.hex(convert.hex.hsl.raw('A38E8E')))
A38E8E
Hi,
I getting different values converting from RGB to HSL and then back
Converting A38E8E I get [0, 10, 60] Converting [0, 10, 60] I get A38F8F. Not A38E8E!