liveBook · Manning

OKLCH

OKLCH is a perceptually uniform cylindrical color space representing color by lightness, chroma, and hue.

How 2 Manning books explain it

CSS in Depth, Second Edition

OKLCH is a perceptual cylindrical color model whose coordinates represent lightness, chroma, and hue.

How it is used
Uses OKLCH to inspect, refine, and extend a CSS palette translated from a page mockup.
How deep it goes
Works through DevTools conversion and palette adjustments, but does not develop color-space mathematics.
Examples
Shows converted green and gray custom properties, a derived active-link color, and DevTools color-picker adjustments.
What you can do after
Apply it via Chrome DevTools and CSS `oklch()` to convert existing colors and test additions to a palette.

Read how CSS in Depth, Second Edition explains OKLCH →

Math for Web Design

OKLCH is a perceptually uniform color space that represents color using lightness, chroma, and hue.

How it is used
Builds CSS color scales and light/dark palette variants with more consistent perceived brightness across hue changes.
How deep it goes
Defines lightness, chroma, and hue with CSS values, then applies them to scales and palette transformations without detailing color-space conversion algorithms.
Examples
Shows a colored heading, lightness and chroma scales, a vivid green value, and a JavaScript lightness-inversion function.
What you can do after
Apply it via CSS oklch() to create color variants, and evaluate dark-mode pairs for contrast and display compatibility.

Read how Math for Web Design explains OKLCH →

What to know first

Related concepts

Questions about OKLCH

What is OKLCH?

OKLCH is a perceptually uniform cylindrical color space representing color by lightness, chroma, and hue.

Which Manning books explain OKLCH?

CSS in Depth, Second Edition and Math for Web Design.

What should I know before learning OKLCH?

Manning books that teach OKLCH usually introduce alpha channel, CSS, Display P3 and HSL method first.

What is the difference between OKLCH and HSL method?

OKLCH is a perceptually uniform cylindrical color space representing color by lightness, chroma, and hue. The HSL method represents colors using hue, saturation, and lightness within a color model or notation system.

What is OKLCH a kind of?

OKLCH is a kind of cylindrical color space. A cylindrical color space represents colors with coordinates such as lightness or saturation and hue arranged around a cylindrical coordinate system.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.