Tools / Color Converter / RGB → CMYK
RGB to CMYK Converter.
To convert RGB to CMYK, divide R, G and B by 255, set K to 1 minus the largest of the three, then C = (1 − R − K) / (1 − K), and M and Y the same way from G and B: rgb(27, 42, 78) becomes cmyk(65%, 46%, 0%, 69%). That is the standard screen approximation most tools display; true print color depends on paper, ink and an ICC profile, so confirm with a proof.
Not a recognizable RGB color.
All formats
The RGB → CMYK formula
Normalize to 0-1. K = 1 − max(R,G,B). C = (1−R−K)/(1−K), M = (1−G−K)/(1−K), Y = (1−B−K)/(1−K). If K = 1 (pure black), C=M=Y=0.
Worked example
Convert rgb(27, 42, 78):
- Normalize → (0.106, 0.165, 0.306)
- K = 1 − 0.306 = 0.694 → 69%
- C = (1−0.106−0.694)/0.306 ≈ 65%
- M ≈ 46%, Y = 0%
- Result: cmyk(65%, 46%, 0%, 69%)
JavaScript
function rgbToCmyk(r,g,b){
r/=255;g/=255;b/=255;
const k=1-Math.max(r,g,b);
if(k===1) return [0,0,0,100];
return [(1-r-k)/(1-k),(1-g-k)/(1-k),(1-b-k)/(1-k),k].map(v=>Math.round(v*100));
} FAQ
Will print match my screen?
Not exactly. RGB has a wider gamut than CMYK, so vivid blues and greens shift. This formula is a preview; for production, soft-proof with the printer's ICC profile.
Why is there a K (black) channel?
Mixing C+M+Y to make black wastes ink and looks muddy, so printers add a dedicated key (black) plate. K absorbs the common darkness first.
Paid links below. As an Amazon Associate we earn from qualifying purchases.
Library
Colour references for your next project
Compare the original references behind this archive. Check the contents, edition and format before choosing a book.
Book links are Amazon Associates affiliate links. Your price is unchanged; a small commission supports the archive. As an Amazon Associate we earn from qualifying purchases.
Torn between the two Wada dictionaries? Vol 1 vs Vol 2, compared plate by plate →
Book links are Amazon Associates affiliate links. Your price is unchanged; a small commission supports the archive. As an Amazon Associate we earn from qualifying purchases.
Last updated

