Sub topic 8
Pick a palette and check contrast
This chapter assumes you can create and edit shapes and text in a design tool, and that you know the difference between RGB and CMYK output from the earlier chapters. You will choose a small palette for the community film night poster, assign each color a job, and test text against its background with a number instead of a guess.
Why palette and contrast come together
A palette is the set of colors you allow yourself in one design. Contrast is the difference in lightness between two colors, usually text and the background behind it. The two are linked because a palette that looks good in a swatch panel can still fail on a street noticeboard. Viewers read the poster from a few meters away, in changing light, and often only for a few seconds.
The brief from chapter one says the tone is "warm, friendly, high contrast". That gives you three constraints before you open a color picker:
- Warm and friendly points to colors on the red, orange, and yellow side of the wheel.
- High contrast means the headline must separate strongly from its background.
- Print output means you must pick colors that CMYK can reproduce.
Build a palette with roles
Most posters work well with three to five colors. Give each color a role so you don't invent a new one every time something needs emphasis.
| Role | Purpose | Share of the poster |
|---|---|---|
| Background | Sets the mood, holds everything else | About 60% |
| Primary text | Headline and key details | About 20% |
| Accent | Draws the eye to one or two items, such as the date | About 10% |
| Support | Secondary shapes, rules, fine print | About 10% |
These shares are a starting point, not a rule. The useful idea is that one color dominates, one color carries the text, and the accent stays rare. An accent used everywhere stops being an accent.
Start from a single base color
Pick the color that carries the mood first. For a warm film night, a deep burgundy background works well. Then derive the rest:
- Choose a very light neutral for primary text, such as a warm off-white.
- Choose one saturated accent that sits apart from the background on the color wheel, such as amber.
- Choose a support color by shifting the background lighter or darker, not by adding a new hue.
Here is the result for the film night poster:
| Role | Name | Hex | RGB |
|---|---|---|---|
| Background | Burgundy | #5A1A2B | 90, 26, 43 |
| Primary text | Warm white | #FFF6E8 | 255, 246, 232 |
| Accent | Amber | #FFB400 | 255, 180, 0 |
| Support | Dark plum | #3A0F1B | 58, 15, 27 |
Common color relationships
You can use a color wheel relationship as a shortcut for choosing the accent.
- Analogous colors sit next to each other on the wheel. They feel calm and unified, but they offer little contrast, so you must create contrast with lightness.
- Complementary colors sit opposite each other. They create strong separation, but pairing two saturated complements at similar lightness makes edges appear to vibrate and strains the eye.
- Monochromatic palettes use one hue in several lightness steps. They are safe and cohesive, and they depend entirely on lightness steps for hierarchy.
A useful check is to convert the poster to grayscale. If the hierarchy still reads, your palette depends on lightness, which is what keeps it readable. If the headline and background turn into the same gray, hue alone was carrying the separation and the design will fail for many viewers.
Hue is not enough: lightness does the work
Contrast comes mostly from lightness difference, not from hue difference. Red text on a green background of equal lightness is hard to read for everyone and nearly unreadable for viewers with red-green color blindness, which affects roughly 1 in 12 men. Dark text on a light background, or the reverse, works for nearly all viewers.
So when you choose text and background, ask first whether one is clearly lighter than the other. Only then think about hue.
Measure contrast with the WCAG ratio
The Web Content Accessibility Guidelines (WCAG) define a contrast ratio from 1:1 (identical colors) to 21:1 (black on white). It compares the relative luminance of two colors. Relative luminance is a number from 0 to 1 that estimates how bright a color looks to the eye, with green weighted most heavily and blue least.
WCAG is written for screens, but the formula is a reasonable test for a poster too. It gives you a repeatable number to discuss in a critique. The usual thresholds are:
| Text type | Minimum ratio (AA) | Stricter target (AAA) |
|---|---|---|
| Normal text | 4.5:1 | 7:1 |
| Large text (about 24 px regular or 19 px bold and up on screen) | 3:1 | 4.5:1 |
Poster headlines are very large, so 3:1 is the floor. For a poster viewed at a distance, aim much higher than the floor. A target of 7:1 or more for the headline and details gives you margin for poor lighting, faded print, and a tired viewer.
Calculate it in code
This script implements the formula so you can check any pair of colors. It converts each 8-bit channel to a linear value, weights the channels, and compares the two luminances.
def relative_luminance(rgb):
def channel(c):
c = c / 255
return c / 12.92 if c <= 0.03928 else ((c + 0.055) / 1.055) ** 2.4
r, g, b = (channel(v) for v in rgb)
return 0.2126 * r + 0.7152 * g + 0.0722 * b
def contrast_ratio(fg, bg):
l1, l2 = relative_luminance(fg), relative_luminance(bg)
lighter, darker = max(l1, l2), min(l1, l2)
return (lighter + 0.05) / (darker + 0.05)
print(round(contrast_ratio((255, 255, 255), (0, 0, 0)), 1)) # 21.0
print(round(contrast_ratio((119, 119, 119), (255, 255, 255)), 1)) # about 4.5The second line shows the well-known boundary: mid-gray #777777 on white is just at the 4.5:1 level for normal text. The 0.05 added to each luminance prevents division by zero for pure black and models a small amount of stray light.
Test the film night palette
Now run your own palette through the same function. This version adds a small table-printing loop and uses the real colors.
def relative_luminance(rgb):
def channel(c):
c = c / 255
return c / 12.92 if c <= 0.03928 else ((c + 0.055) / 1.055) ** 2.4
r, g, b = (channel(v) for v in rgb)
return 0.2126 * r + 0.7152 * g + 0.0722 * b
def contrast_ratio(fg, bg):
l1, l2 = relative_luminance(fg), relative_luminance(bg)
lighter, darker = max(l1, l2), min(l1, l2)
return (lighter + 0.05) / (darker + 0.05)
def hex_to_rgb(value):
value = value.lstrip("#")
return tuple(int(value[i:i + 2], 16) for i in (0, 2, 4))
background = hex_to_rgb("#5A1A2B")
pairs = {
"Warm white on burgundy": hex_to_rgb("#FFF6E8"),
"Amber on burgundy": hex_to_rgb("#FFB400"),
"Dark plum on burgundy": hex_to_rgb("#3A0F1B"),
}
for name, color in pairs.items():
ratio = contrast_ratio(color, background)
print(f"{name}: {ratio:.1f}:1")Run it and read the output rather than trusting the colors by eye. You should see warm white and amber both well above 7:1, and dark plum close to 1:1 against burgundy. That tells you plum is fine for a subtle shape or a rule, but it must never carry text. This is the practical value of the check: it assigns each color a safe job.
Where contrast fails in practice
The ratio assumes a flat solid background. Real posters break that assumption in several ways.
- Text over a photograph. The background lightness changes across the text, so the ratio changes along the line. Add a solid or semi-transparent overlay behind the text, or place the text over a calm area of the image, then test the worst spot, not the average.
- Gradients. Check the ratio at both ends and at the point where the text sits. A headline that passes at the dark end can fail at the light end.
- Thin strokes and small text. A light weight at 12 pt loses contrast because the thin strokes blend with the background. For fine print, use a regular weight and a higher ratio.
- Accent on accent. Amber text on a yellow photo may pass on paper in the swatch but disappear in the full layout.
- Screen preview versus print. A screen glows and paper reflects. Pale colors on paper can look duller than on your monitor, and dark colors can print muddier, so the on-screen ratio is optimistic.
Make the palette print safely
Your palette started as RGB hex values, but the brief says the poster goes to a commercial printer in CMYK. Many bright screen colors fall outside the CMYK range, known as the gamut. A vivid RGB amber or electric blue may print duller.
- Build the document in CMYK from the start, as set in the color mode chapter, so the picker shows you reachable colors.
- If you started in RGB, convert the palette and look at what shifted. Then recheck the contrast ratios with the converted values.
- Order or request a proof if color matters. Pale tints and deep darks vary most between printers.
- Avoid very light tints of the background for text. Tints below about 20% can vanish in print.
- For large dark areas, avoid pure 100% black built from all four inks. Use the rich black value your printer recommends, and keep small text in a single ink where possible to avoid registration errors.
Save the palette as swatches
Do not pick colors with the eyedropper each time. Create named swatches in your tool for each role, and apply them by swatch. Then a single edit updates every use, and you can't drift to a "nearly the same" burgundy by accident. Name them by role, such as "Background", "Text", and "Accent", so the intent survives when someone else opens the file.
Check list for this stage
- The palette has three to five colors, each with a role.
- One color dominates, and the accent is used sparingly.
- The grayscale version of the poster still shows the hierarchy.
- Headline and key details meet at least 7:1 against their background, and no text falls below 4.5:1.
- Text over images has been tested at its worst spot.
- Swatches are saved and named, and the colors have been checked in CMYK.
Exercise
A poster uses mid-gray #777777 text at 14 pt regular on a white background. The ratio is about 4.5:1. Name two reasons this is still a weak choice for a street noticeboard, and give one change that fixes it.
Show answer
First, 4.5:1 is only the minimum for normal text on a screen, and a poster is read from a distance in uneven light, so it needs a much larger margin, ideally 7:1 or more. Second, 14 pt is small for a poster and thin strokes at that size blend with the background, and print usually looks duller than the screen preview. The simplest fix is to darken the text, for example to #333333, which gives a ratio near 12:1, and to enlarge the text to at least the 18 pt body size from the type scale.
Exercise
In the film night palette, the dark plum #3A0F1B sits on the burgundy #5A1A2B background. Can you use it for the venue details? Explain using what the contrast check shows.
Show answer
No. The two colors have nearly the same lightness, so the ratio is close to 1:1 and text in plum would be almost invisible. Plum is suitable only for subtle decoration, such as a border or shadow shape, where low contrast is intended. The venue details should use warm white or amber, which both exceed 7:1 against burgundy.
Exercise
You place the amber headline over a photograph that is dark on the left and bright on the right, and the headline spans both sides. How do you decide whether it passes, and what are two ways to fix it if it does not?
Show answer
Test the ratio at the brightest part of the photo under the text, because that is the worst case, not the average. If it fails, either add a solid or semi-transparent dark overlay behind the headline so the background is evenly dark, or move or resize the headline so it sits only over the calm, dark area of the image. Retest after the change.