# 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