Kastavo

RGB ↔ CMYK Converter

Convert three RGB values to CMYK, or four CMYK values to RGB, in either direction.

cmyk(76%, 47%, 0%, 4%)

Not sure? Turn your internet off and try — it still works.

How it works

RGB is the model used by screens (light: red, green, blue). CMYK is the model used by printing (ink: cyan, magenta, yellow, and black). This conversion uses the standard RGB↔CMYK formula — useful as a reference before printing, but the exact printed color also depends on the printer, the paper, and the color profile used. RGB is additive (screen colors add light: more light, lighter) and CMYK is subtractive (ink absorbs light: more ink, darker). That is why pure black, rgb(0, 0, 0), is cmyk(0%, 0%, 0%, 100%); white is cmyk(0%, 0%, 0%, 0%); and rgb(255, 0, 0) becomes cmyk(0%, 100%, 100%, 0%). Screens show very vivid colors (some saturated blues and greens) that ink cannot reach, so the printed version usually looks a little duller. The formula is the one the W3C describes as the naive conversion between CMYK and RGB (CSS Color Module Level 5, a Working Draft): black is 1 minus the largest of red, green and blue, and cyan, magenta and yellow are what is left of each channel after taking out the black. The same draft says the naive conversion is approximate because it knows nothing about the inks, the dot gain or the color space of the screen, and that it is likely to be visually very far from the actual printed result. An example from that draft: the CMYK color 0%, 81%, 81%, 30% becomes about rgb(178, 34, 34) by the naive formula (this tool shows rgb(179, 34, 34), because it rounds 178.5 up), but about rgb(180, 68, 50) with an ICC profile for printing (FOGRA39): the same ink values, a clearly different screen color. In the table below, 15 CSS named colors go through the RGB to CMYK function; the RGB of each name is what the W3C CSS Color specification gives it, and the last column is the sum of the four percentages, made by the code. The standard formula applies, with no ICC profile.

Common colors from RGB to CMYK

CSS named colors converted by the tool with the standard formula. With no ICC profile it is only a reference: the print depends on the printer, the paper and the profile.
ColorRGBCMYKC+M+Y+K sum
Blackrgb(0, 0, 0)cmyk(0%, 0%, 0%, 100%)100 %
Whitergb(255, 255, 255)cmyk(0%, 0%, 0%, 0%)0 %
Redrgb(255, 0, 0)cmyk(0%, 100%, 100%, 0%)200 %
Limergb(0, 255, 0)cmyk(100%, 0%, 100%, 0%)200 %
Bluergb(0, 0, 255)cmyk(100%, 100%, 0%, 0%)200 %
Cyanrgb(0, 255, 255)cmyk(100%, 0%, 0%, 0%)100 %
Magentargb(255, 0, 255)cmyk(0%, 100%, 0%, 0%)100 %
Yellowrgb(255, 255, 0)cmyk(0%, 0%, 100%, 0%)100 %
Orangergb(255, 165, 0)cmyk(0%, 35%, 100%, 0%)135 %
Pinkrgb(255, 192, 203)cmyk(0%, 25%, 20%, 0%)45 %
Purplergb(128, 0, 128)cmyk(0%, 100%, 0%, 50%)150 %
Grayrgb(128, 128, 128)cmyk(0%, 0%, 0%, 50%)50 %
Brownrgb(165, 42, 42)cmyk(0%, 75%, 75%, 35%)185 %
Navyrgb(0, 0, 128)cmyk(100%, 100%, 0%, 50%)250 %
Dark greenrgb(0, 100, 0)cmyk(100%, 0%, 100%, 61%)261 %

Frequently asked questions

Related tools

This website uses cookies

We use cookies to improve your experience and understand how the site is used. You can change this choice anytime in Cookie Preferences. See our Privacy Policy.