Convert a hex colour to OKLCH, the perceptual colour space where equal changes in lightness actually look equal.
OKLCH answers the complaint people have about HSL: that its lightness lies. In HSL a yellow and a blue can both claim 50 percent lightness while one visibly glows and the other sinks. OKLCH is built on OKLab, a space tuned so that a given change in the lightness number corresponds to roughly the same perceived change whatever the hue — which is why palettes built in it stay even.
sRGB → linear-light sRGB → CIE XYZ (D65) → OKLab → L, C = √(a² + b²), H = atan2(b, a)
The hex value is first undone from its gamma encoding, then carried through XYZ into OKLab by two fixed matrices with a cube root between them. The last step is only a change of coordinates: chroma is the distance from the neutral axis and hue is the angle around it.
A number that disagrees with its source is a defect, not a rounding preference.
What did you enter, what did the tool show, and what did you expect instead? If you have a source that disagrees with ours, a link to it is the most useful thing you can send.
Opens your mail app with the page and tool already filled in.
Turn an OKLCH colour into a hex code for tools that do not speak modern colour syntax yet.
Convert a hex colour into hue, saturation and lightness — the form that makes a colour easy to lighten, darken or desaturate by hand.
Convert a hex colour to its red, green and blue channels, including the shorthand and alpha forms defined by the CSS specification.