RGB ↔ CMYK Converter
Convert three RGB values to CMYK, or four CMYK values to RGB, in either direction.
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
| Color | RGB | CMYK | C+M+Y+K sum |
|---|---|---|---|
| Black | rgb(0, 0, 0) | cmyk(0%, 0%, 0%, 100%) | 100 % |
| White | rgb(255, 255, 255) | cmyk(0%, 0%, 0%, 0%) | 0 % |
| Red | rgb(255, 0, 0) | cmyk(0%, 100%, 100%, 0%) | 200 % |
| Lime | rgb(0, 255, 0) | cmyk(100%, 0%, 100%, 0%) | 200 % |
| Blue | rgb(0, 0, 255) | cmyk(100%, 100%, 0%, 0%) | 200 % |
| Cyan | rgb(0, 255, 255) | cmyk(100%, 0%, 0%, 0%) | 100 % |
| Magenta | rgb(255, 0, 255) | cmyk(0%, 100%, 0%, 0%) | 100 % |
| Yellow | rgb(255, 255, 0) | cmyk(0%, 0%, 100%, 0%) | 100 % |
| Orange | rgb(255, 165, 0) | cmyk(0%, 35%, 100%, 0%) | 135 % |
| Pink | rgb(255, 192, 203) | cmyk(0%, 25%, 20%, 0%) | 45 % |
| Purple | rgb(128, 0, 128) | cmyk(0%, 100%, 0%, 50%) | 150 % |
| Gray | rgb(128, 128, 128) | cmyk(0%, 0%, 0%, 50%) | 50 % |
| Brown | rgb(165, 42, 42) | cmyk(0%, 75%, 75%, 35%) | 185 % |
| Navy | rgb(0, 0, 128) | cmyk(100%, 100%, 0%, 50%) | 250 % |
| Dark green | rgb(0, 100, 0) | cmyk(100%, 0%, 100%, 61%) | 261 % |