Hex to OKLCH Colour Converter – Free Online

What OKLCH colour values mean

Hex codes like #FF5733 tell a computer what colour to show, but they tell a person almost nothing. OKLCH is different. It describes a colour the way people see it: L is lightness from 0 for black to 1 for white, C is chroma, how strong or grey the colour is, and H is hue, the angle around the colour wheel. The converter above turns any hex code into these three plain numbers.

Designers use OKLCH because it is perceptually uniform: a step of 0.1 in lightness looks like the same change whether the colour is dark or light, red or blue. Older formats do not behave this way. In them, the same number change can look huge in one colour and tiny in another, which makes palettes hard to balance. In OKLCH, colours with the same lightness look equally bright, and colours with the same chroma look equally strong.

Modern browsers support OKLCH in CSS directly. You can write oklch(0.628 0.258 29.23) in a stylesheet and the browser will show the same red as #FF0000. That makes OKLCH useful for real work, not just for theory, and it is the colour space behind many new design tools.

How to use the converter

Type a hex colour into the box, with the hash sign, like #FF5733 or the short form #F53. Press the button, or just type, and the result appears at once. The tool shows the OKLCH value, a swatch of the colour, and a plain sentence about whether the colour is vivid, soft, or in the middle.

The lightness bar under the swatch runs from dark on the left to light on the right. Use it to judge at a glance whether a colour will work as text on a white page or as a background. The next-step line reminds you to copy the values into your CSS or to try a lighter shade of the same hue, which is the most common next move in design work.

Worked example: pure red #FF0000

Type #FF0000 and the converter returns oklch(0.628 0.258 29.2). The lightness is 0.628, a little above the middle, so the red is neither dark nor pale. The chroma is 0.258, high, which means the red is strong and vivid. The hue is 29.2 degrees, which sits in the red-orange part of the wheel.

Compare that with pure green #00FF00, which converts to oklch(0.866 0.295 142.5). The green is much lighter at 0.866, even stronger at 0.295 chroma, and its hue sits at 142.5 degrees. And pure blue #0000FF gives oklch(0.452 0.313 264.1): darker, very strong, hue 264.1 degrees. Three colours that look equally strong in hex are not equal at all in OKLCH, and that is exactly why designers prefer it.

Who uses this converter

Web designers use it to build colour palettes where every shade has the same lightness, so buttons, links and headings look balanced. Front-end developers use it to translate a brand hex code into OKLCH for a stylesheet. Accessibility testers use the lightness number to check whether text will have enough contrast against its background.

Design system teams use it too, because OKLCH makes it easy to generate a whole scale of shades from one brand colour: keep the hue and chroma, change only the lightness, and every shade matches. Students learning CSS use it to see what their favourite hex colours really are, in numbers they can understand.

Honest limitations

OKLCH values depend on the math, and the math uses the D65 white point, the standard daylight reference. A screen that is not calibrated will still show the colour a little differently, so the numbers are exact but your eyes are not. The converter also rounds to three decimals, which is fine for design work but not for laboratory colour science.

Very bright colours can fall outside what a normal screen can show. OKLCH can describe colours that no monitor can display, and the converter will still give you the numbers. If you paste those numbers into CSS, the browser will show the closest colour it can, which may look different from the swatch. And the tool converts one colour at a time: it does not build a full palette for you.

Frequently asked questions

What is chroma in plain words? Chroma is how strong a colour is. A chroma near zero means grey. A chroma above 0.2 means a vivid, saturated colour that jumps off the page.

What is the hue number? Hue is the angle around the colour wheel, from 0 to 360 degrees. Red sits near 29, yellow near 110, green near 142, blue near 264, and pink near 350.

Why use OKLCH instead of HSL? HSL looks simple, but its lightness is not true lightness: a pure blue and a pure yellow with the same HSL lightness look very different in brightness. OKLCH lightness matches what your eyes actually see, and its steps feel even.

Does every browser support OKLCH in CSS? All modern browsers do, including current Chrome, Firefox, Safari and Edge. Older browsers will ignore the value, so keep a hex fallback above it in the stylesheet for safety.

También disponible en español: Convertidor de Hex a OKLCH – Gratis en Línea

1 thought on “Hex to OKLCH Colour Converter – Free Online”

  1. Pingback: Convertidor de Hex a OKLCH – Gratis en Línea - Ilmhunt

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top