How to convert CMYK to HEX
- Convert each CMYK percentage to a fraction from 0 to 1.
- R = 255 × (1 − C) × (1 − K), G = 255 × (1 − M) × (1 − K), B = 255 × (1 − Y) × (1 − K).
- Round each value to a whole number from 0 to 255.
- Write each as two hex digits after a #: cmyk(0, 60, 100, 0) is #ff6600.
Using print colors online
Older brand guides and print templates often define colors only as CMYK percentages. Websites, email templates and social media graphics need HEX codes instead. This converter gives the screen equivalent using the standard formula, ready to copy into CSS or a design tool.
The result is a good approximation, but print and screen colors are produced in different ways, so a color matched by eye to a printed sample may need small adjustments. If your organisation has official RGB or HEX values, those should take priority.
Checking the result
After converting, look at the preview and the contrast checker. A brand color that worked well as a print background might not give enough contrast with white text on screen. If it fails the WCAG check, use one of the darker shades shown below the converter for text and buttons.
Remember that CMYK values in some software use 0 to 1 instead of 0 to 100. Multiply those by 100 before entering them here, or the converter will read them as very light colors.
From print templates to web pages
Print templates, such as business cards or brochures, often define a color palette in CMYK. Converting each color to HEX lets you build a matching website, email signature or social media template quickly. Note the HEX values next to the CMYK ones in your brand guide, so designers and developers always use the same pair.
After converting, compare the colors on a few different screens; phones and laptops can show the same HEX code slightly differently.
CMYK to HEX chart of common colors
CMYK to HEX values for common colors| Color | CMYK | HEX |
|---|
| Black | cmyk(0%, 0%, 0%, 100%) | #000000 |
| White | cmyk(0%, 0%, 0%, 0%) | #ffffff |
| Red | cmyk(0%, 100%, 100%, 0%) | #ff0000 |
| Lime | cmyk(100%, 0%, 100%, 0%) | #00ff00 |
| Blue | cmyk(100%, 100%, 0%, 0%) | #0000ff |
| Yellow | cmyk(0%, 0%, 100%, 0%) | #ffff00 |
| Cyan | cmyk(100%, 0%, 0%, 0%) | #00ffff |
| Magenta | cmyk(0%, 100%, 0%, 0%) | #ff00ff |
| Silver | cmyk(0%, 0%, 0%, 25%) | #c0c0c0 |
| Gray | cmyk(0%, 0%, 0%, 50%) | #808080 |
| Maroon | cmyk(0%, 100%, 100%, 50%) | #800000 |
| Olive | cmyk(0%, 0%, 100%, 50%) | #808000 |
| Green | cmyk(100%, 0%, 100%, 50%) | #008000 |
| Purple | cmyk(0%, 100%, 0%, 50%) | #800080 |
| Teal | cmyk(100%, 0%, 0%, 50%) | #008080 |
| Navy | cmyk(100%, 100%, 0%, 50%) | #000080 |
| Orange | cmyk(0%, 35%, 100%, 0%) | #ffa500 |
| Tomato | cmyk(0%, 61%, 72%, 0%) | #ff6347 |
Other colors: use the converter above or the Color Converter.