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

Color picker: hexa value does not take account of alpha channel

Open nboisteault opened this issue 3 years ago • 2 comments

Hi, Here https://mdn.github.io/css-examples/tools/color-picker/

image

Thanks for this nice tool.

nboisteault avatar Jan 13 '23 16:01 nboisteault

Since alpha values cannot be guaranteed to be represented by hex accurately anyway, I think it's better to add a warning there that the hex value doesn't account for the alpha value.

Btw, color picker's panel has been updated so that RGBA, HSLA and HEXA now become RGB, HSL and HEX.

yarusome avatar Apr 24 '23 02:04 yarusome

I did not think about number => hexa conversion. Thanks for clarification.

nboisteault avatar Apr 24 '23 08:04 nboisteault