LeaVerou / css-colors

Share & convert CSS colors
http://leaverou.github.io/css-colors
63 stars 19 forks source link

rgb(0, 1, 0) computes to hsl(120, Infinity%, 0%) #7

Open ghost opened 6 years ago

ghost commented 6 years ago

I was trying various tweaks for a palette and happened to hit this.

screenshot

Puddingsan commented 6 years ago

same hsl result with rgb(0, 2, 0) => hsl(120, Infinity%, 0%) but if you then try rgb(0, 3, 0) => hsl(120, 59%, 1%)

and rgb(1, 1, 1) ? => hsl(0, 0%, 0%)

hope this helps with debugging