Color converter
Convert colours between HEX, RGB, HSL and OKLCH as you type, with a picker, CSS names and a note when a colour is outside sRGB.
Questions
What is OKLCH and why use it?
OKLCH describes a colour by lightness, chroma and hue in the OKLab space, where equal steps look roughly equal to the eye. It is supported in modern CSS through the oklch() function and makes palettes and contrast tweaks more predictable than HSL.
Why does my OKLCH colour say it is outside sRGB?
OKLCH can describe colours that ordinary sRGB screens and HEX codes cannot show. The tool clips those to the nearest sRGB channel values for the HEX, RGB and HSL outputs and tells you it did.
Does it support transparency?
Yes. Use 4 or 8 digit HEX, rgba(), hsla() or a "/ alpha" part, and every output keeps the alpha. The native colour picker has no alpha, so picking keeps the alpha you already had.