OKLCH Color Converter

One color, four Output Formats.

Enter a color in hex, rgb(), hsl() or oklch(). Oklchemy writes it in all four.

The four Output Formats

oklch()
Lightness, chroma and hue. Equal changes in lightness look equal to the eye. It can describe colors outside sRGB.
hex
Red, green and blue as six hexadecimal digits. Always inside sRGB.
rgb()
Red, green and blue as whole numbers from 0 to 255. Always inside sRGB.
hsl()
Hue, saturation and lightness. Always inside sRGB. Its lightness does not match what the eye sees.

Colors outside sRGB

oklch() can describe colors that hex, rgb() and hsl() cannot.

When your color is outside sRGB, those three show the nearest color inside it. The chroma is reduced until the color fits. Its hue and lightness are held. The oklch() value is left as you entered it.

What is not converted

Colors with alpha are not supported. Enter the color without its alpha value.