# Image Color Space

A color space represents colors using combinations of numbers or defines a range of color reproduction for images.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## 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

## CMYK colors in CSS: Useful or useless?

DevFeed: [CMYK colors in CSS: Useful or useless?](<https://devfeed.tech/articles/cmyk-colors-in-css-useful-or-useless-51943.md>)

Original publisher: [Read original article](<https://lea.verou.me/2009/03/cmyk-colors-in-css-useful-or-useless/>)

Author: Lea Verou

Published: 2009-03-09T00:00:00Z

Content type: opinion

Language: en

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

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

Tags: [blog](<https://devfeed.tech/tags/blog.md>), [cmyk](<https://devfeed.tech/tags/cmyk.md>), [colors](<https://devfeed.tech/tags/colors.md>), [css](<https://devfeed.tech/tags/css.md>), [css-values](<https://devfeed.tech/tags/css-values.md>), [thoughts](<https://devfeed.tech/tags/thoughts.md>), [useful](<https://devfeed.tech/tags/useful.md>)

### AI overview

The author argues that CMYK in CSS could help people choose colors intuitively and let print stylesheets specify printer colors directly. They suggest browsers convert CMYK to RGB for screen display while retaining CMYK for printing, and give example `cmyk()` values using percentages or 0-1 numbers. The author also says CMYK's smaller gamut can limit color choice, so they sometimes adjust a CMYK starting point in RGB or HSL. The claimed benefits are subjective, including easier color selection and more appealing results from simple values. The excerpt says the W3 was considering a 0-1 format for CSS3, but reports no browser support at the time described.

### Source excerpt

As someone who dealed a bit with print design in the past, I consider CMYK colors the easiest color system for humen to understand and manipulate. It's very similar to what we used as children, when mixing watercolors for our drawings. It makes perfect sense, more than HSL and definately more than RGB. I understand that most of us are so accustomed to using RGB that can't realise that, but try to think for a moment: Which color system would make more sense to you if you had no idea and no experience at all with any of them? Personally, even though I have lots more experience with RGB, given the fact that most of my work will be displayed on screen and not printed on paper, when I think of a color I want, I can instantly find out the percentages of Cyan, Magenta, Yellow and blacK needed to create it. I can't do that with HSL or RGB, I'd have to play a little bit with the color picker's sliders. I sometimes start by specifying a color in CMYK and then tweaking it via RGB or HSL to achieve the exact color I need (since the CMYK gamut is smaller than the RGB gamut) and I find that much faster than starting with RGB or HSL right away. Also, when you don't have a color picker, it's much easier to create beautiful colors with CMYK than it is with RGB. For example the CMYK magenta (0% Cyan, 100% Magenta, 0% Yellow, 0% blacK) is a much better color than the RGB Magenta (255 Red, 0 Green, 100% Blue). Given the above, I've always thought how much I wanted to be able to specify CMYK colors in my CSS. I agree that sometimes this would result in crippling myself, since as I said above the CMYK gamut is smaller, but it has other significant advantages that I think it would make it a useful option for some people. There are algorithms available for CMYK to RGB conversion, and the browser could use those to display the specified color on the screen. Then, if the user decided to print the page, The CMYK colors could be used as-is for the printer. Another advantage, as none of the cur