Skip to content

OKLCH Converter

Convert hex, RGB and HSL colors to OKLCH and back. Adjust lightness, chroma and hue with sliders and see when a color falls outside the sRGB gamut.

Paste hex, rgb(), hsl() or oklch(), or pick one.

54.6%

0.215

262.9°

Values

Inside sRGB

OKLCH

oklch(54.6% 0.215 262.9)

HEX

#2563eb

RGB

rgb(37 99 235)

HSL

hsl(221.2 83.1% 53.3%)

CSS

--color-brand: oklch(54.6% 0.215 262.9);

Contrast

Aa on white

5.16:1

Aa on black

4.06:1

Check this color against your own background in the contrast checker.

The same hue, 50 to 950

Make a theme from it

50

100

200

300

400

500

600

700

800

900

950

Each step sits at a fixed lightness with your hue, so text on step 700 or darker passes 4.5:1 on white whatever the hue.

L: lightness

From 0% (black) to 100% (white), and close to how light the color looks. Two colors with the same L look equally light, which HSL lightness does not promise.

C: chroma

How colorful it is, from 0 (gray) up. sRGB screens reach about 0.32 at most and only for some hues; higher values need a wide-gamut screen.

H: hue

The angle on the color wheel in degrees: about 30 is red, 110 yellow, 145 green, 265 blue and 330 pink. Changing L or C keeps the hue.

Free, runs in your browser, and nothing you enter leaves it. Read the idea behind it in OKLCH color scales for UI themes.