# LCH colors in CSS: what, why, and how?

DevFeed: [LCH colors in CSS: what, why, and how?](<https://devfeed.tech/articles/lch-colors-in-css-what-why-and-how-52112.md>)

Original publisher: [Read original article](<https://lea.verou.me/2020/04/lch-colors-in-css-what-why-and-how/>)

Author: Lea Verou

Published: 2020-04-04T00:00:00Z

Content type: article

Language: en

Sources: [Lea Verou's blog](<https://devfeed.tech/sources/lea-verou-s-blog.md>)

Topics: [Image Color Space](<https://devfeed.tech/topics/image-color-space.md>), [CSS](<https://devfeed.tech/topics/css.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>)

Tags: [articles](<https://devfeed.tech/tags/articles.md>), [blog](<https://devfeed.tech/tags/blog.md>), [cmyk](<https://devfeed.tech/tags/cmyk.md>), [color](<https://devfeed.tech/tags/color.md>), [color-science](<https://devfeed.tech/tags/color-science.md>), [colors](<https://devfeed.tech/tags/colors.md>), [css](<https://devfeed.tech/tags/css.md>), [css-color-4](<https://devfeed.tech/tags/css-color-4.md>), [css-color-5](<https://devfeed.tech/tags/css-color-5.md>), [css-wg](<https://devfeed.tech/tags/css-wg.md>), [firefox](<https://devfeed.tech/tags/firefox.md>), [java](<https://devfeed.tech/tags/java.md>), [lch](<https://devfeed.tech/tags/lch.md>), [original](<https://devfeed.tech/tags/original.md>), [releases](<https://devfeed.tech/tags/releases.md>), [rgb](<https://devfeed.tech/tags/rgb.md>), [safari](<https://devfeed.tech/tags/safari.md>), [science](<https://devfeed.tech/tags/science.md>), [space](<https://devfeed.tech/tags/space.md>), [web-standards](<https://devfeed.tech/tags/web-standards.md>)

## AI overview

LCH provides perceptually uniform lightness and chroma, making color differences and lighter or darker variants more meaningful than in RGB/HSL; its lightness is comparable across hues, unlike HSL lightness. The article also says LCH can represent colors beyond sRGB, including vivid colors in wider-gamut displays, while noting that colors outside a display's gamut must be reduced to fit. Chroma has no fixed 0-100 bound: its displayable maximum varies with lightness, hue, and screen gamut. CSS `color(display-p3 ...)` can access P3 colors where supported, but remains RGB-based and lacks LCH's perceptual uniformity. The described picker supports arbitrary CSS color import, decimal values, saved colors and interpolation, alpha, and gamut checks for sRGB, P3, and Rec.2020. The excerpt does not establish current browser support beyond its time-specific account.

## Source excerpt

I was always interested in color science. In 2014, I gave a talk about CSS Color 4 at various conferences around the world called "The Chroma Zone". Even before that, in 2009, I wrote a color picker that used a hidden Java applet to support ICC color profiles to do CMYK properly, a first on the Web at the time (to my knowledge). I never released it, but it sparked this angry rant. Color is also how I originally met my now husband, Chris Lilley: In my first CSS WG meeting in 2012, he approached me to ask a question about CSS and Greek, and once he introduced himself I said "You're Chris Lilley, the color expert?!? I have questions for you!". I later discovered that he had done even more cool things (he was a co-author of PNG and started SVG 🤯), but at the time, I only knew of him as "the W3C color expert", that's how much into color I was (I got my color questions answered much later, in 2015 that we actually got together). My interest in color science was renewed in 2019, after I became co-editor of CSS Color 5, with the goal of fleshing out my color modification proposal, which aims to allow arbitrary tweaking of color channels to create color variations, and combine it with Una's color modification proposal. LCH colors in CSS is something I'm very excited about, and I strongly believe designers would be outraged we don't have them yet if they knew more about them. What is LCH? CSS Color 4 defines lch() colors, among other things, and as of recently, all major browsers have started implementing them or are seriously considering it: Safari is already implementing, Chrome is about to, and Firefox is discussing it. LCH is a color space that has several advantages over the RGB/HSL colors we're familiar with in CSS. In fact, I'd go as far as to call it a game-changer, and here's why. 1. We actually get access to about 50% more colors. This is huge. Currently, every CSS color we can specify, is defined to be in the sRGB color space. This was more than sufficient a few ye