OKLCH
OKLCH is a perceptually uniform cylindrical color space representing color by lightness, chroma, and hue.
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.
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.
What to know first
- alpha channelAn alpha channel is a color or image component that specifies the opacity or transparency of each color or pixel.
- CSSCSS (Cascading Style Sheets) is a stylesheet language for specifying the presentation and layout of structured documents.
- Display P3Display P3 is a standardized wide-gamut color space that represents a broader range of colors than sRGB.
- HSL methodThe HSL method represents colors using hue, saturation, and lightness within a color model or notation system.
Related concepts
- HSL methodalternative to · The HSL method represents colors using hue, saturation, and lightness within a color model or notation system.
- color paletteused by · A selected set of colors intended for coordinated use in visual design or representation.
- polar coordinatekind of · A polar coordinate specifies a point in two-dimensional space by its distance from an origin and its angle relative to a reference direction.
- sRGBcontrasts with · sRGB is a standardized RGB color space with defined primaries, white point, and transfer characteristics for consistent digital color representation.
- color spacekind of · A color space is a defined coordinate system for representing colors using specified components, dimensions, or numerical values.
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.

