# OKLCH Color

> A way to write a color with three numbers that match how the eye sees.

**Field:** Design  
**Category:** Visual Communication  
**Also known as:** OKLCH, oklch(), Oklab

## Think of it like

It is like a ruler where each step looks the same size.

## Definition

OKLCH is a way of writing a color with three numbers: lightness, chroma and hue. Lightness is how light it looks, chroma is how strong the color is, and hue is the angle on the color wheel. It is built so that equal steps in the numbers look like equal steps to the eye. CSS can use it with the oklch() function. Designers use it to make even color scales.

## Example

Ana makes ten shades of blue for a design system. In OKLCH she changes only the lightness, and each step looks evenly lighter.

## Example code

```css
.button {
  background: oklch(65% 0.15 270);
}
```

This sets a blue button: 65 percent lightness, a medium chroma and a hue of 270 degrees.

## Why it matters

With HSL, two colors at the same lightness can look very different. OKLCH keeps lightness steady, which helps with contrast.

## Common mistake

Pushing chroma too high. Some strong colors cannot be shown on most screens, and the browser pulls them back.

## Three principles

- **Three numbers.** Lightness, chroma, hue.
- **Even to the eye.** Equal steps look equal.
- **Built into CSS.** The oklch() function.

## Related terms

- [HSL Color Model](https://learn.benibix.com/term/design/hsl-color-model)
- [Lightness](https://learn.benibix.com/term/design/lightness)
- [Hue](https://learn.benibix.com/term/design/hue)
- [Saturation](https://learn.benibix.com/term/design/saturation)
- [Color Gamut](https://learn.benibix.com/term/design/color-gamut)
- [Cascading Style Sheets (CSS)](https://learn.benibix.com/term/development/css)

## Taught in

- [Hue, Saturation and Lightness](https://learn.benibix.com/learn/design-visual-communication/hue-saturation-lightness): Color and Images, 2/13

![Four panels. Additive: three overlapping circles of light marked red, green and blue, with the center marked white. Subtractive: three overlapping ink circles marked cyan, magenta and yellow, with the center marked near black. Color management: a camera, a screen and a printer in a row, each with a profile tag, joined by arrows through a shared color space in the middle. OKLCH: three sliders for lightness, chroma and hue, and a row of swatches that step evenly from dark to light.](https://learn.benibix.com/diagrams/des7-color-mixing.svg)

---

Source: https://learn.benibix.com/term/design/oklch
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
