What are CMYK and RGB?
CMYK gives the share of cyan, magenta, yellow and black ink. The values here come from the simple formula over sRGB; a print shop converts with an ICC profile of its press and paper (FOGRA39, GRACoL, SWOP), so its numbers may differ. RGB gives the same three sRGB channels as decimal numbers from 0 to 255, plus an optional alpha.
Used to show on screen a color that a print brand guide only gives in CMYK; screens cannot show every printable color and vice versa, so treat it as an approximation.
The color converter below starts from CMYK and highlights RGB, next to HWB, LAB, LCH and CSS names.
CMYK vs RGB
| CMYK | RGB | |
|---|---|---|
| Notation | cmyk(0%, 30%, 86%, 0%) | rgb(255 178 36), rgb(255, 178, 36) |
| In CSS | not in browsers (print only) | all browsers |
| Typical use | print briefs, packaging, quotes from print shops | code that computes colors, canvas, image libraries |
Formula
With channels scaled to 0–1: K = 1 − max(R, G, B); C = (1 − R − K) / (1 − K), and the same for M with G and Y with B. Back to RGB: R = 255 × (1 − C) × (1 − K). This is the device-independent formula; print shops use ICC profiles.
What changes in the conversion
- The conversion is not perfectly reversible: CMYK values are rounded to whole percents, and the simple formula ignores paper and ink.
- Transparency (alpha) is kept:
#RRGGBBAA,rgb(… / 0.5),hsl(… / 50%)andoklch(… / 0.5)all carry it.
How to convert CMYK to RGB
- Type or paste the CMYK value in its line, or pick a color with the color picker.
- Read the RGB line, which updates as you type, and check the preview swatch.
Common colors from CMYK to RGB
Converted with the same code as the tool:
| Color | CMYK | RGB |
|---|---|---|
| amber (stdlib.tools accent) | cmyk(0%, 30%, 86%, 0%) | rgb(255, 179, 36) |
| teal | cmyk(92%, 14%, 0%, 48%) | rgb(11, 114, 133) |
| blue | cmyk(76%, 47%, 0%, 4%) | rgb(59, 130, 245) |
| green | cmyk(87%, 0%, 55%, 36%) | rgb(21, 163, 73) |
| red | cmyk(0%, 83%, 83%, 14%) | rgb(219, 37, 37) |
| mid gray | cmyk(0%, 0%, 0%, 50%) | rgb(128, 128, 128) |
| black | cmyk(0%, 0%, 0%, 100%) | rgb(0, 0, 0) |
| white | cmyk(0%, 0%, 0%, 0%) | rgb(255, 255, 255) |
Frequently asked questions
Is CMYK to RGB exact?
Close, not exact: rounding and gamut limits apply, as explained above. For brand colors, keep the official value of each format instead of converting back and forth.
Why does the printed color look different from the screen?
A screen emits light in RGB and paper reflects it through ink, so very bright blues, greens and oranges of a screen cannot be printed. Ask the print shop for a proof or a Pantone reference when the color matters.
How do I write RGB with transparency?
Use a slash: rgb(255 178 36 / 50%), or the older rgba(255, 178, 36, 0.5); both mean 50% opacity.