CMYK to RGB Converter
CU-20Type CMYK percentages such as cmyk(0%, 50%, 100%, 0%) or 0 50 100 0 and get the matching RGB values, or a hex code. One color per line.
Runs in your browser. Nothing is uploaded.
CMYK colors, one per line (cmyk(0%, 50%, 100%, 0%) or 0 50 100 0)
RGB
How to use it
- Type or paste one CMYK color per line, as cmyk(0%, 50%, 100%, 0%) or four numbers.
- Choose the RGB style: rgb(255, 128, 0), rgb(255 128 0) or plain 255, 128, 0.
- Press CMYK to RGB, or CMYK to hex for a hex code.
- Copy the result or download it as a text file.
The formula used
The tool uses the plain screen formula: red = 255 x (1 - cyan) x (1 - black), and the same for green with magenta and blue with yellow, where each value is a fraction from 0 to 1. So cmyk(0%, 50%, 100%, 0%) gives red 255, green 127.5 and blue 0, which rounds to 255, 128, 0. Results are rounded to whole numbers from 0 to 255.
Why it will not match a print proof
Real CMYK depends on the inks, the paper and an ICC color profile, so the same four percentages look different on different presses. This conversion uses no profile. Use it for quick estimates, web mockups and code that needs the plain formula. For print work, convert inside your design software with the printer profile.
Input details
Values are percentages from 0 to 100, so 0.5 means half a percent, not 50 percent. Values outside that range are clamped to it. Four bare numbers separated by spaces or commas also work. Pure black, cmyk(0%, 0%, 0%, 100%), gives rgb(0, 0, 0) and no ink at all gives white.
Error messages and what to do
| Message | What it means | Fix |
|---|---|---|
Line 1: "1 2 3" has 3 values; CMYK needs 4 | The line has the wrong number of values for this color model. | Give exactly 4 values per line, for example in cmyk(...) form or as bare numbers. |
Line 1: "nope" is not a color. Use hex (#rgb, #rrggbb, #rrggbbaa), rgb(), hsl(), hsv(), cmyk() or a CSS color name. | The line could not be read as a color. | Write the color as hex, rgb(), hsl(), hsv(), cmyk() or a CSS color name. |
Questions people ask
How do I convert CMYK to RGB?
Multiply 255 by one minus the ink fraction, then by one minus the black fraction, for each of cyan, magenta and yellow. The tool does this for you: type 0 50 100 0 and it returns rgb(255, 128, 0).
Is the conversion exact?
The formula is exact, but real CMYK is tied to inks and a color profile, which this tool does not use. Printers and apps such as Photoshop apply profiles, so they usually show duller colors for bright RGB values. Treat the result as an estimate for print.
Can I get a hex code from CMYK?
Yes. Press CMYK to hex and each line becomes a hex code such as #ff8000. It converts to RGB first, then writes each channel as two hex digits.
Do I write the percentages with a percent sign?
Either way works. cmyk(0%, 50%, 100%, 0%) and 0 50 100 0 mean the same thing. Values are always read as percentages from 0 to 100, so write 50 for half, not 0.5.
What RGB does pure black CMYK give?
cmyk(0%, 0%, 0%, 100%) gives rgb(0, 0, 0), and cmyk(0%, 0%, 0%, 0%) gives rgb(255, 255, 255). Note that print shops often use a rich black with other inks added, which is not the same as plain K 100.
Can I convert many colors at once?
Yes. Put one color per line, up to the size of your input, and each line gets its own result on the same line number. A bad line stops the run and the message names the line number.
About this tool
Each line holds four values for cyan, magenta, yellow and black, written as percentages from 0 to 100, either as cmyk(...) or as four bare numbers. The conversion is the simple screen formula: red = 255 x (1 - cyan) x (1 - black), and the same for green and blue. It does not use an ICC color profile, so it will not match what a printer, Photoshop or a color-managed app shows for the same ink values. Results are rounded to whole 0 to 255 numbers. Values outside 0 to 100 are clamped to that range, and a number like 0.5 is read as half a percent, not 50 percent.