How to use the rgb to cmyk converter
- Enter the Red, Green and Blue channel values, each between 0 and 255.
- The tool immediately computes the Cyan, Magenta, Yellow and Key (Black) percentages.
- Copy the resulting CMYK values into your design or print software.
How the rgb to cmyk math works
The conversion first normalizes the RGB channels to a 0 to 1 scale by dividing each by 255. The Key (black) component is derived from the highest normalized channel:
K = 1 - max(R', G', B')
If K equals 1 (meaning all channels are zero, producing pure black), then C, M and Y are all set to 0. Otherwise, the remaining ink percentages are calculated as:
C = (1 - R' - K) / (1 - K)M = (1 - G' - K) / (1 - K)Y = (1 - B' - K) / (1 - K)
For example, converting pure red where R=255, G=0, B=0 gives R'=1, G'=0, B'=0. The maximum is 1, so K = 1 - 1 = 0. Then C = (1 - 1 - 0) / 1 = 0, M = (1 - 0 - 0) / 1 = 1, and Y = (1 - 0 - 0) / 1 = 1. The result is C=0%, M=100%, Y=100%, K=0%.
Common color conversions reference
This table lists standard web colors and their corresponding CMYK percentages computed using the standard formula. Use it as a quick lookup when you need to convert rgb to cmyk without entering values manually.
| Color name | RGB | C | M | Y | K |
|---|---|---|---|---|---|
| White | 255, 255, 255 | 0% | 0% | 0% | 0% |
| Black | 0, 0, 0 | 0% | 0% | 0% | 100% |
| Red | 255, 0, 0 | 0% | 100% | 100% | 0% |
| Green | 0, 255, 0 | 100% | 0% | 100% | 0% |
| Blue | 0, 0, 255 | 100% | 100% | 0% | 0% |
| Yellow | 255, 255, 0 | 0% | 0% | 100% | 0% |
| Cyan | 0, 255, 255 | 100% | 0% | 0% | 0% |
| Magenta | 255, 0, 255 | 0% | 100% | 0% | 0% |
Why screen colors look different in print
Monitors emit light using an additive model where combining red, green and blue at full intensity produces white. Printers use a subtractive model where cyan, magenta, yellow and black inks absorb light reflected off paper. Mixing all three colored inks theoretically produces black, but real-world inks leave a muddy brown residue, which is why a dedicated black (Key) plate is added.
Because screens can display highly saturated colors that physical inks cannot reproduce, some RGB values fall outside the printable CMYK gamut. A bright neon green on a monitor will convert to a duller mix of cyan and yellow ink. Professional designers often work in CMYK mode from the start or use ICC color profiles specific to their printer to manage these shifts accurately.
Practical uses for CMYK values
Print shops require artwork in CMYK format for offset lithography, digital presses and large-format banners. If you supply an RGB file, the RIP (Raster Image Processor) software will perform its own conversion, sometimes yielding unexpected color shifts. Converting your colors beforehand lets you preview and adjust the result.
Packaging design, business cards, brochures and magazine layouts all rely on precise CMYK specifications. When sharing brand guidelines with a printer, providing both the hex or RGB code for web use and the CMYK percentages for print ensures consistency across media. You might also use a color picker to find the initial RGB values before running them through this converter.
Handling edge cases and rounding
When all RGB channels are zero, the denominator in the C, M and Y formulas becomes zero because K equals 1. Mathematically this is undefined, but the convention is to set C, M and Y to 0% since the black ink alone covers the area completely. The converter handles this automatically.
CMYK percentages are typically rounded to one decimal place for practical use. While the mathematical result might be 33.333...%, printers interpret 33.3% identically. Extremely dark colors may produce very high K values alongside small amounts of C, M or Y to create rich blacks rather than flat black ink, though the standard formula simply calculates the minimum ink needed to match the target shade.
Worked examples
Each result below was produced by the same code the tool runs, so you can check your own numbers against them.
| Example | Input | Result |
|---|---|---|
| Pure red | Red (R): 255; Green (G): 0; Blue (B): 0 | Cyan (C): 0%; Magenta (M): 100%; Yellow (Y): 100%; Key / Black (K): 0% |
| Pure white | Red (R): 255; Green (G): 255; Blue (B): 255 | Cyan (C): 0%; Magenta (M): 0%; Yellow (Y): 0%; Key / Black (K): 0% |
| Pure black | Red (R): 0; Green (G): 0; Blue (B): 0 | Cyan (C): 0%; Magenta (M): 0%; Yellow (Y): 0%; Key / Black (K): 100% |
| Medium gray | Red (R): 128; Green (G): 128; Blue (B): 128 | Cyan (C): 0%; Magenta (M): 0%; Yellow (Y): 0%; Key / Black (K): 49.8% |
| Cyan | Red (R): 0; Green (G): 255; Blue (B): 255 | Cyan (C): 100%; Magenta (M): 0%; Yellow (Y): 0%; Key / Black (K): 0% |
FAQ
What is the difference between RGB and CMYK?
RGB is an additive color model used for screens where light combines to form colors. CMYK is a subtractive model used in printing where inks absorb light. RGB starts at black and adds light; CMYK starts at white paper and adds ink.
Why does my printed color look different from my screen?
Screens emit light and can display a wider range of saturated colors than physical inks can reproduce on paper. Some RGB colors fall outside the CMYK gamut, causing them to appear duller or shifted when printed.
Can I convert CMYK back to RGB?
Yes, the reverse calculation multiplies each CMYK channel against the white point. However, because multiple RGB values can map to similar CMYK outputs due to gamut limitations, round-tripping may not always return the exact original screen color.
Do I need to convert rgb to cmyk before sending files to a printer?
Most professional print workflows require CMYK files. If you submit RGB artwork, the printer's software will convert it automatically, but doing it yourself gives you control over how out-of-gamut colors are handled.
What does the K stand for in CMYK?
K stands for Key, referring to the key plate in traditional printing that aligns the other color plates. It represents the black ink channel, avoiding confusion with Blue in the RGB acronym.
Are there different CMYK formulas?
The standard unprofiled formula used here is common for general conversions. Professional printing often relies on ICC profiles like U.S. Web Coated SWOP or FOGRA39, which apply complex curves and ink limits specific to particular paper stocks and press conditions.