Sub topic 7
The CMYK model and why black ink (K) exists
This chapter covers how print builds colour from four inks, what each letter in CMYK stands for, and why a fourth, black ink is needed when three inks should be enough in theory. It assumes you know the previous chapters' ideas: subtractive mixing (inks absorb light) and the RGB model (screens add light). You don't need to have printed anything yourself. The code examples use Python 3.
What CMYK is
CMYK is the colour model used by most commercial printing. Each letter names one ink:
- C is cyan, a greenish blue.
- M is magenta, a purplish pink.
- Y is yellow.
- K is black, called the "key" ink.
A CMYK colour is written as four numbers, one per ink. Print software usually shows them as percentages from 0 to 100. A value of C0 M47 Y100 K0 means no cyan, 47% magenta, full yellow, and no black. That is roughly the orange #ff8800 from the earlier chapters.
The percentage is not the thickness of the ink layer. A press prints each ink as a pattern of tiny dots, called a halftone. A 50% value means the dots cover about half of the paper in that area. At normal reading distance your eye blends the dots and the paper into one tone.
How the three coloured inks make colour
Paper starts white. White paper reflects nearly all the light that hits it. Each ink is a filter that removes (absorbs) one third of the visible spectrum and lets the rest pass through to the paper and back to your eye.
| Ink | Absorbs | Reflects | Where it sits among the RGB primaries |
|---|---|---|---|
| Cyan | Red | Green and blue | Opposite red |
| Magenta | Green | Red and blue | Opposite green |
| Yellow | Blue | Red and green | Opposite blue |
Overprinting two inks removes two thirds of the light, so only one third is left:
- Cyan and yellow absorb red and blue, so you see green.
- Magenta and yellow absorb green and blue, so you see red.
- Cyan and magenta absorb red and green, so you see blue.
This is why cyan, magenta and yellow are called the subtractive primaries. They are the mirror image of the additive primaries red, green and blue. Each ink is the complement of one RGB channel.
Why three inks are not enough
In a perfect world, 100% of all three inks would absorb all light and give black. Real inks fall short in several ways, and these are the reasons K exists.
- The inks are impure. Real pigments do not absorb exactly one band and reflect the others perfectly. Cyan ink, for example, also absorbs a little green. Mixing equal amounts of C, M and Y gives a muddy dark brown or grey, not a neutral black.
- Too much ink causes problems. Stacking 300% of ink on paper makes it wet. It dries slowly, may smear, and can make the paper cockle (ripple) or let ink show through to the other side.
- Cost. Coloured inks are usually more expensive than black. Replacing a heavy CMY stack with one layer of black saves money.
- Sharp small text. Each ink goes down in a separate pass, and the plates never line up perfectly. A tiny misalignment is called a registration error. If 9 pt black text is made from C, M and Y, you see coloured fringes. Text made from one ink, K, has no fringe because there is nothing to misalign.
- Deeper shadows. Adding K lets the printer reach a darker tone than the CMY stack can reach alone.
Black ink fixes all five. It gives a neutral dark, uses less total ink, prints crisp text, and costs less.
Why the letter is K
The name comes from the printing process. In four-colour printing, the cyan, magenta and yellow plates are lined up (registered) to the black plate. That plate carries the detail and the line work, so it is the "key" plate. This is the usual explanation. Using B for black would also risk confusion with blue, which is another reason K is a common choice.
Reading and writing CMYK values
A few values are worth recognising:
| Value | Name | Use |
|---|---|---|
| C0 M0 Y0 K0 | Paper white | No ink at all |
| C0 M0 Y0 K100 | Pure black (K only) | Body text, thin lines, barcodes |
| C60 M40 Y40 K100 | Rich black | Large black areas, such as a background |
| C100 M100 Y100 K100 | Registration black | Never use for artwork. Used only for alignment marks |
Rich black adds some coloured ink under the black to make it look deeper. Use it only for large areas. For text or thin lines, use K only, so that registration errors cannot show.
Total ink coverage
The sum of the four percentages is the total ink coverage, or total area coverage (TAC). Rich black above is 60 + 40 + 40 + 100 = 240%. Printers set a limit for each paper and press. Typical limits are about 300% for coated paper and about 240% to 260% for uncoated newsprint, which absorbs more ink. Your printer or the profile they supply gives the real number. C100 M100 Y100 K100 is 400%, which is far over any limit.
Calculating CMYK from RGB, and where K comes from
The following formula is the usual simple conversion. It treats the black channel as whatever darkness all three channels have in common.
def rgb_to_cmyk_naive(r, g, b):
r, g, b = r / 255, g / 255, b / 255
k = 1 - max(r, g, b)
if k == 1:
return 0.0, 0.0, 0.0, 1.0
c = (1 - r - k) / (1 - k)
m = (1 - g - k) / (1 - k)
y = (1 - b - k) / (1 - k)
return c, m, y, k
def to_percent(values):
return tuple(round(v * 100) for v in values)
samples = {
"orange": (255, 136, 0),
"dark brown": (100, 50, 20),
"dark grey": (30, 30, 30),
"black": (0, 0, 0),
}
for name, (r, g, b) in samples.items():
c, m, y, k = to_percent(rgb_to_cmyk_naive(r, g, b))
print(f"{name}: C{c} M{m} Y{y} K{k} total={c + m + y + k}%")Running it prints:
orange: C0 M47 Y100 K0 total=147%
dark brown: C0 M50 Y80 K61 total=191%
dark grey: C0 M0 Y0 K88 total=88%
black: C0 M0 Y0 K100 total=100%Read the steps in order:
k = 1 - max(r, g, b)finds how dark the colour is. The brightest channel limits how much light you can remove from the colour as a whole, so the leftover darkness is moved into K.- The
(1 - r - k) / (1 - k)lines remove that shared darkness from each channel and rescale what is left to the range 0 to 1. This gives C, M and Y. - For a pure grey such as (30, 30, 30), all three channels are equal. All the darkness goes to K, and C, M and Y are zero.
- For black,
1 - kwould be zero, so the function returns K = 1 directly instead of dividing by zero.
The dark brown shows the main idea. It would need about 100% of colour ink in an RGB-like view, but the formula moves 61 points of that darkness into K, so the coloured inks only need 50% and 80%.
What this formula is doing in print terms
Moving shared darkness from C, M and Y into K is called gray component replacement (GCR). The same idea in a weaker form is called under-colour removal (UCR), which removes the coloured inks only in the neutral shadows. The naive formula applies the strongest possible GCR. Real print profiles choose how much of the replacement to apply. They usually keep some coloured ink in the shadows for depth, and they limit total ink for the paper.
Common mistakes
- Setting small text in rich black. The four plates will not line up exactly, and the text gets coloured edges and looks blurry. Use C0 M0 Y0 K100 for body text.
- Using registration black for a large black area. The 400% ink load can ruin the print. Use rich black with a total below the printer's limit.
- Treating K as "blue" or "brightness". K is a separate ink. Its value 100 means full black, and 0 means none. This is the opposite direction from the RGB brightness channels, where 255 is the brightest.
- Assuming an RGB-to-CMYK conversion can be reversed. Converting
#ff8800to CMYK and back does not always return#ff8800. Bright, saturated screen colours may fall outside what the inks can print, and the converter has to approximate them. The next chapters explain this as gamut. - Comparing 0 to 100 percentages with 0 to 255 channel values. They are different scales. Convert before you compare or write code that mixes them.
What to remember
- CMYK is subtractive. Each coloured ink removes one third of the light, and white paper supplies the light.
- C, M and Y are the complements of R, G and B.
- K exists because real CMY inks give a muddy dark, cost more, put too much liquid on the paper, and blur small text through registration errors.
- K is the "key" plate in a four-colour press, not the letter B.
- Total ink coverage is the sum of all four values. It has a limit that depends on the paper.
- The simple RGB-to-CMYK formula shows how K is derived, but real print work needs a profile.
Exercise
A designer sets a 9 pt paragraph of body text in "rich black" using C60 M40 Y40 K100. The printed proof shows slightly coloured edges on the letters. Explain why this happened and give the value they should use instead. Also work out the total ink coverage of the original value.
Show answer
The four inks are printed from separate plates, and the plates are never aligned perfectly. With thin letters, a small registration error shifts the cyan, magenta and yellow layers a little away from the black layer, which shows as coloured fringes. The designer should use K-only black, C0 M0 Y0 K100, for small text, because a single ink has nothing to misalign. The total ink coverage of the original value is 60 + 40 + 40 + 100 = 240%.
Exercise
Use the naive formula by hand for the colour (0, 0, 255), pure blue. What are C, M, Y and K as percentages, and what does that tell you about how the formula uses K?
Show answer
r = 0, g = 0, b = 1. k = 1 - max(0, 0, 1) = 0. Because k is 0, c = (1 - 0 - 0) / 1 = 1, m = (1 - 0 - 0) / 1 = 1, and y = (1 - 1 - 0) / 1 = 0. The result is C100 M100 Y0 K0. K is zero because the colour contains a full-strength channel, so there is no darkness shared by all three channels to move into K. The formula only uses K when all three RGB channels are below full brightness.
Exercise
A printer says the limit for total ink coverage on their uncoated paper is 260%. Is C70 M60 Y50 K90 acceptable? If not, name one change that keeps the colour dark and respects the limit.
Show answer
The total is 70 + 60 + 50 + 90 = 270%, which is over the 260% limit, so it is not acceptable. One fix is to apply more gray component replacement: lower C, M and Y a little and keep or raise K, so the colour stays dark but uses less coloured ink. For example, C60 M50 Y40 K90 totals 240%. The exact numbers should come from the printer's ICC profile, because the right trade-off depends on the press and the paper.