bgrins / TinyColor

Fast, small color manipulation and conversion for JavaScript
https://bgrins.github.io/TinyColor/
MIT License
5.05k stars 438 forks source link

Lightness of 1% returns white #200

Closed ex-tag closed 2 years ago

ex-tag commented 5 years ago

tinycolor({ h:22, s:58, l:1 }).toHexString() => Output: #ffffff

I would assume a HSL lightness of 1% would output a hex-string that is close to black. The HSL converter on W3Schools (https://www.w3schools.com/colors/colors_converter.asp) also shows the hexString is close to black (i.e. #040201)...

dackmin commented 5 years ago

If given an object, values are from 0 to 1, so 1 is 100%.