Colors CMYK


CMYK is a suggested standard for CSS4.


CMYK Calculator


 
rgb(255, 0, 0)
#ff0000
hsl(0, 100%, 50%)


C:
M:
Y:
K:

CMYK Colors

CMYK colors is a combination of CYAN, MAGENTA, YELLOW , and BLACK.

Computer screens display colors using RGB color values. Printers often presents colors using CMYK color values.


HTML Support

CMYK is not supported in HTML, but it is suggested as a new standard in CSS4.

While waiting for CSS4, you can include W3Schools' Color library, and use CMYK as an HTML attribute like this:

Example

<div data-w3-color="cmyk(100%, 0%, 0%, 0%)">

<p>London is the capital city of England.
It is the most populous city in the United Kingdom,
with a metropolitan area of over 13 million inhabitants.</p>

</div>

<script src="/lib/w3color.js"></script>

Try It Yourself »

W3Schools Color Library

The JavaScript library used in the example above is downloaded as w3color.js