css-colors icon indicating copy to clipboard operation
css-colors copied to clipboard

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

Open ghost opened this issue 7 years ago • 1 comments

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

screenshot

ghost avatar Sep 27 '17 10:09 ghost

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

Puddingsan avatar Mar 04 '18 16:03 Puddingsan