W3Schools.com

发布时间:2025-08-07 15:42

Colors CMYK

CMYK is a suggested standard for CSS4.

CMYK Calculator


rgb(0, 255, 255)

#00ffff

hsl(180, 100%, 50%)


C:

100

M:

0

Y:

0

K:

0

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:

Try it Yourself

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 can be downloaded from:

https://www.w3schools.com/lib/w3color.js


★ +1

Track your progress - it's free!

网址:W3Schools.com https://klqsh.com/news/view/119784

随便看看