Convert CMYK print colors to hex codes for the web, with RGB and HSL values alongside.
Enter a valid CMYK value, like cmyk(0%, 72%, 72%, 6%)
CMYK describes how much cyan, magenta, yellow and black ink to print. To show it on screen, each ink is turned into red, green and blue light, then written as a hex code:
R = 255 × (1 − C) × (1 − K)
G = 255 × (1 − M) × (1 − K)
B = 255 × (1 − Y) × (1 − K)For cmyk(0%, 72%, 72%, 6%) that gives red 240, green 67 and blue 67, which is #F04343. Because CMYK values are usually rounded to whole percentages, converting back and forth can shift the hex by a point or two.
| Color | CMYK | Hex |
|---|---|---|
| White | cmyk(0%, 0%, 0%, 0%) | #FFFFFF |
| Black | cmyk(0%, 0%, 0%, 100%) | #000000 |
| Red | cmyk(0%, 100%, 100%, 0%) | #FF0000 |
| Orange | cmyk(0%, 35%, 100%, 0%) | #FFA500 |
| Yellow | cmyk(0%, 0%, 100%, 0%) | #FFFF00 |
| Green | cmyk(100%, 0%, 100%, 50%) | #008000 |
| Blue | cmyk(100%, 100%, 0%, 0%) | #0000FF |
| Purple | cmyk(0%, 100%, 0%, 50%) | #800080 |
| Pink | cmyk(0%, 25%, 20%, 0%) | #FFC0CB |
| Gray | cmyk(0%, 0%, 0%, 50%) | #808080 |
Type the four CMYK percentages above, in any format like 0, 72, 72, 6 or cmyk(0%, 72%, 72%, 6%). The hex code updates as you type. By hand, multiply 255 by (1 − C) and (1 − K) to get red, do the same with M for green and Y for blue, then write each number in base 16.
Ink on paper and light on a screen can't show exactly the same range of colors. This tool uses the standard formula without a color profile, so the result is close but not exact. If a brand guide lists both, use its official hex value for the web.
Almost all of them. CMYK covers a smaller range of colors than screens can show, so going from CMYK to hex rarely loses anything. The harder direction is hex to CMYK, where bright screen colors can't always be printed.
Use percentages from 0 to 100, which is how design apps and brand guides list CMYK. The % signs are optional.