Sub topic 11
Color Mode for Print: CMYK and RGB
This chapter assumes you can set up a document with trim and bleed, and that you know what a raster image and a vector graphic are. It covers the two color models you will meet in print work, why they differ, and how to handle the conversion between them.
Two ways of making color
RGB and CMYK build color in opposite ways.
- RGB is additive. Screens start black and add red, green, and blue light. Equal full amounts of all three make white.
- CMYK is subtractive. Printing starts with white paper, and cyan, magenta, yellow, and black inks absorb part of the light that lands on the page. The K stands for "key", the black plate. More ink means a darker result.
Each model has a gamut, the range of colors it can reproduce. A typical commercial press on coated paper cannot match the brightest, most saturated colors a monitor can show. This is why a vivid RGB blue or green often looks duller once it is printed.
| Property | RGB | CMYK |
|---|---|---|
| Type | Additive (light) | Subtractive (ink) |
| Channels | 3 | 4 |
| Typical use | Screens, web, video | Offset and digital press |
| Gamut | Larger, saturated colors | Smaller, especially bright blues, greens, and oranges |
| Value range | 0–255 per channel | 0–100% per ink |
Where conversion happens
Your files can be converted from RGB to CMYK at several points. Each point gives you a different amount of control.
Converting yourself means you see the result and can correct it. If the printer converts for you, the conversion uses their default settings and you find out how it looks only when the job is printed. For work where color matters, convert on your side and check the result on screen before you send the file.
ICC profiles
A color profile (an ICC profile) describes how the numbers in a file map to real colors on a particular device or print condition. The same CMYK values look different on glossy and uncoated paper. This is why a profile is needed, and a bare conversion formula is not enough.
Common examples:
- sRGB, the standard profile for web images and most cameras.
- Adobe RGB, a wider-gamut profile used in photography workflows.
- Coated FOGRA39 or FOGRA51, common in Europe.
- U.S. Web Coated SWOP v2 or GRACoL, common in North America.
- Uncoated variants of each, for paper that absorbs more ink.
Ask your printer which output condition they use. When they name one, use it as the destination profile for conversion and export. When they don't, use the standard for your region and say so in your job notes.
Converting in a layout application
Most design applications offer two options when you change color mode.
- Assign a profile. The numbers stay the same and the profile changes how they are interpreted. The color will look different.
- Convert to a profile. The numbers are recalculated so that the color looks as close as possible in the new space. This is almost always what you want when moving from RGB to CMYK.
Why a simple formula is not enough
You can write a formula that turns RGB numbers into CMYK numbers. It is useful for seeing the structure of the problem, but it is not what a design application does.
def naive_rgb_to_cmyk(r, g, b):
"""Naive RGB (0-255) to CMYK (0-1). Ignores ICC profiles and gamut."""
if (r, g, b) == (0, 0, 0):
return 0.0, 0.0, 0.0, 1.0
rn, gn, bn = r / 255, g / 255, b / 255
k = 1 - max(rn, gn, bn)
c = (1 - rn - k) / (1 - k)
m = (1 - gn - k) / (1 - k)
y = (1 - bn - k) / (1 - k)
return tuple(round(v, 2) for v in (c, m, y, k))
print(naive_rgb_to_cmyk(0, 0, 255)) # (1.0, 1.0, 0.0, 0.0)
print(naive_rgb_to_cmyk(255, 128, 0)) # (0.0, 0.5, 1.0, 0.0)The formula says that RGB blue becomes 100% cyan and 100% magenta. On a real press that mix prints as a deep violet-blue, noticeably duller than the screen. A profile-based conversion accounts for the actual inks and paper, and the formula does not. Treat the code as an illustration and never as a replacement for a proper conversion.
Black in CMYK
Black needs more care than the other colors. There are three common cases.
- Text black: 0/0/0/100. A single ink keeps small type sharp, because several inks printed on top of each other can misalign slightly (misregistration) and produce colored fringes.
- Rich black: a large black area, such as a dark background, can use K plus some CMY. A common mix is 60/40/40/100. It prints deeper than K alone.
- Registration black: 100% of all four inks. This is for marks like crop marks, so that they appear on every plate. Never use it for artwork.
Rich black has a cost: total ink coverage, also called total area coverage (TAC) or total ink limit. It is the sum of the four percentages. If it is too high, ink may not dry properly, smudge, or set off onto the next sheet.
def total_ink(c, m, y, k):
"""Total area coverage as a percentage (inputs are percentages)."""
return c + m + y + k
print(total_ink(60, 40, 40, 100)) # 240
print(total_ink(100, 100, 100, 100)) # 400Typical limits are around 240% to 300%, depending on paper and press. Uncoated stock usually takes less ink. Ask your printer for the number, and do not guess.
Common mistakes
- Designing in RGB and converting at the last second. Colors shift and you have little time to fix them. Decide on the output mode when you create the document, or convert early.
- Converting twice. Going from RGB to CMYK and back to RGB loses color information. Keep your RGB originals and convert copies.
- Using spot colors by accident. Some swatches are spot colors (named inks such as Pantone). If you only need CMYK, convert them to process colors, or the printer may add an extra plate that you did not plan for.
- Leaving RGB images in a CMYK document. Many applications convert at export, but only if your settings say so. Check the output.
- Using 100% K for a large dark area. Pure K over a large area can look gray or slightly washed out next to rich black.
- Judging color on an uncalibrated screen. Without calibration and a soft proof set to the printer's profile, the screen is not a reliable indicator of what will print.
Soft proofing
A soft proof is a simulation on your monitor of how the file will look with a particular print profile. In most design applications it lives in the View menu. It shows you the colors that fall outside the CMYK gamut before you convert. For critical color, such as brand colors, ask the printer for a hard proof, a physical sample printed on the real device.
Checking the color mode of a finished PDF
After export, check what is actually inside the file. The poppler-utils tool pdfimages lists each image and its color space.
pdfimages -list flyer.pdfIn the output, look at the color column. Values such as rgb, cmyk, gray, or icc tell you the color space of each image. An rgb entry in a job that should be fully CMYK is a warning sign. Note that this command lists images only. Vector text and shapes carry their own color settings, which your preflight tool will report.
Putting it together
For a typical job, a workable sequence is:
- Ask the printer for their output condition and ink limit.
- Create the document in CMYK, or convert early in the process.
- Keep original RGB photos and convert copies using the printer's profile.
- Use pure K for text and a controlled rich black for large areas.
- Soft proof, then export a PDF with the correct output intent.
- Run preflight and check images with
pdfimages -list.
Exercise
A client sends you a bright RGB green logo and a dark background that you want to print as a rich black. Your printer's ink limit is 260%. Is 70/60/60/100 acceptable for the background, and what should you expect the green to look like in print?
Show answer
No. 70 + 60 + 60 + 100 = 290%, which is over the 260% limit, so you should lower the mix, for example to 60/40/40/100, which totals 240%. The bright RGB green is probably outside the CMYK gamut, so after a profile-based conversion it will look duller than on screen. Soft proof it to see the change, and ask for a hard proof if the brand color matters.
Exercise
You run pdfimages -list on an exported PDF and see one photo listed as rgb in a job that should be fully CMYK. What are two possible causes, and what do you do?
Show answer
The export settings may not have converted images to the destination CMYK profile, or the image was placed with an "include/preserve RGB" option. Open the export settings, set the color conversion to convert to the printer's CMYK destination profile, re-export, and run pdfimages -list again to confirm that the image is now cmyk.