How CMYK to RGB conversion works
CMYK to RGB predicts the screen colour that matches an ink recipe. In the simple model each ink removes its opposite light (cyan removes red, magenta green, yellow blue) and black dims all three. Multiplying those factors gives each RGB channel.
- C, M, Y, K as 0–1.
- R = 255 × (1 − C) × (1 − K).
- G = 255 × (1 − M) × (1 − K).
- B = 255 × (1 − Y) × (1 − K).
- Round to whole numbers.
Worked example: cmyk(20%, 0%, 60%, 10%) to RGB
Here is the converter's own calculation for cmyk(20%, 0%, 60%, 10%), step by step. The result, rgb(184, 230, 92), is exactly what the tool above shows for this input.
- As fractions: C = 0.2, M = 0, Y = 0.6, K = 0.1.
- R = 255 × (1 − 0.2) × (1 − 0.1) = 183.6 → 184.
- G = 255 × (1 − 0) × (1 − 0.1) = 229.5 → 230.
- B = 255 × (1 − 0.6) × (1 − 0.1) = 91.8 → 92.
- Written as
rgb(184, 230, 92).
A cyan tint ramp in CMYK and RGB
Common ink recipes and what they become on screen.
| Colour | CMYK | RGB |
|---|---|---|
| Cyan 10% | cmyk(10%, 0%, 0%, 0%) | rgb(230, 255, 255) |
| Cyan 20% | cmyk(20%, 0%, 0%, 0%) | rgb(204, 255, 255) |
| Cyan 30% | cmyk(30%, 0%, 0%, 0%) | rgb(179, 255, 255) |
| Cyan 40% | cmyk(40%, 0%, 0%, 0%) | rgb(153, 255, 255) |
| Cyan 50% | cmyk(50%, 0%, 0%, 0%) | rgb(128, 255, 255) |
| Cyan 60% | cmyk(60%, 0%, 0%, 0%) | rgb(102, 255, 255) |
| Cyan 70% | cmyk(70%, 0%, 0%, 0%) | rgb(77, 255, 255) |
| Cyan 80% | cmyk(80%, 0%, 0%, 0%) | rgb(51, 255, 255) |
| Cyan 90% | cmyk(90%, 0%, 0%, 0%) | rgb(25, 255, 255) |
| Cyan 100% | cmyk(100%, 0%, 0%, 0%) | rgb(0, 255, 255) |
Precision test: every CMYK value through the converter
Whole-number CMYK has 104,060,401 combinations; the formula maps them onto 11,641,458 distinct RGB colours, each of which converts back to the same colour (100%).
Method: every whole-number CMYK value, through the converter's own code and back, compared on the 0–255 scale (how we test).
| Measure | Result |
|---|---|
| CMYK values tested | 104,060,401 |
| Distinct RGB results | 11,641,458 |
| Came back exactly | 100% |
| Largest change (0–255 levels) | 0 |
| Average change | 0 |
Last updated · Source: Pixohub exhaustive test of lib/color-math.ts
Formula vs a real print profile
A cyan tint ramp shows how far apart formula and profile drift as ink increases. At 10% cyan they are close (#E6FFFF vs #E0F3F8); at 100% the formula gives a pure screen cyan while the profile gives a deeper blue-cyan. The biggest difference on one channel was 92 levels.
The converter above uses the standard formula. To show what a colour-managed conversion does, we converted the same colours with LittleCMS 2.19 through the Generic CMYK profile that ships with macOS (relative colorimetric intent with black point compensation, the default in Photoshop). Your printer's profile will give different numbers again, but in the same direction.
| Recipe | C/M/Y/K | Formula | Profile |
|---|---|---|---|
| Cyan 10% | 10/0/0/0 | #E6FFFF | #E0F3F8 |
| Cyan 20% | 20/0/0/0 | #CCFFFF | #C5E7F2 |
| Cyan 30% | 30/0/0/0 | #B2FFFF | #AADCED |
| Cyan 40% | 40/0/0/0 | #99FFFF | #8CD2EA |
| Cyan 50% | 50/0/0/0 | #80FFFF | #6CC8E7 |
| Cyan 60% | 60/0/0/0 | #66FFFF | #47C0E3 |
| Cyan 70% | 70/0/0/0 | #4DFFFF | #00B8E1 |
| Cyan 80% | 80/0/0/0 | #33FFFF | #00B0DF |
| Cyan 90% | 90/0/0/0 | #19FFFF | #00A8DC |
| Cyan 100% | 100/0/0/0 | #00FFFF | #00A3DB |
Last updated · Source: Pixohub test, macOS Generic CMYK Profile via LittleCMS
Where you'll use CMYK to RGB
Displaying print colours in an app
Print-on-demand and packaging tools need to show CMYK artwork on screen. Without a profile, the formula gives brighter-than-real previews, as the ramp below shows.
Matching a printed sample
If you have a CMYK value from a printed brochure, converting it gives a starting point for the website. Adjust by eye against the printed sample.
Spreadsheets and data
Some product databases store CMYK only. Converting lets you use those colours in charts and dashboards.
Common mistakes
- Expecting CMYK 0/0/0/0 to look white on screen and on paper alike: on paper it's the paper colour, which is often slightly warm or cool.
- Assuming linear tints: 50% cyan on press looks darker than half of 100% because of dot gain.
- Using formula RGB as the "true" colour of a printed product photo.
- Forgetting that K multiplies all channels, so even 20% K noticeably darkens every colour.