bgrins / TinyColor

Fast, small color manipulation and conversion for JavaScript

Home Page:https://bgrins.github.io/TinyColor/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lightness of 1% returns white

ex-tag opened this issue · comments

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)...

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