Typografi og tekst

Putting type on busy backgrounds without a box

The usual fixes are a dark panel, a drop shadow or a blur. Each one works, and each one announces itself. There is a quieter way to make words read.

GradientlyVerificeret Gradiently-konto··6 min. læsning
Forside: Verona Orchard · GR·Z5R9·QX

Denne guide findes ikke på dit sprog endnu, så her er den på engelsk.

Kort fortalt

  • Text on a busy background is hard to read because the contrast changes from letter to letter and the background's edges compete with the shapes of the letters.
  • Boxes, scrims, shadows and blurs all make text readable, but each covers part of the background and changes how the design feels.
  • Placing words over the calmest, most even region of a background is the fix that costs the design least.
  • Choosing light or dark ink for each line, based on what is actually behind it, keeps every line readable on a background that changes from light to dark.
  • A background that rearranges itself around the words, calming and deepening behind them, can make text readable without any visible patch.
På denne side

Making text on busy background images readable comes down to two things: what is directly behind the letters, and what colour the letters are. The common fixes, a box, a shadow or a blur, change what's behind the letters by covering it. The better fixes put the words where the background is already calm, choose the ink for each line, and, where the tool allows, let the background make room instead of being patched over.

Left alone: the texture runs straight through the words.

Making room: the calm part of the texture sits behind them.

Why busy backgrounds and text fight

Reading depends on contrast between each letter and what surrounds it. On a flat colour, that contrast is the same everywhere. On a photo, a pattern or a lively gradient, it changes constantly: one letter sits on a highlight, the next on a shadow, and the word breaks into pieces. Detail makes it worse, because the background's own edges and shapes look a little like strokes of letters, and the eye has to separate the two.

That's why contrast guidelines, such as the ratios in colour contrast, are hard to apply on busy backgrounds: there is no single background colour to measure against. The honest test is the worst spot, the lightest area behind light text or the darkest behind dark text.

The usual fixes, and what each one costs

Every standard fix works by changing what's directly behind the letters. They are all legitimate, and all of them take something away from the background you chose.

FixHow it worksWhat it costs
Solid boxA panel of flat colour behind the textCovers the background; looks like a label
Translucent panelA see-through box that darkens or lightensMuddies the colours under it; the edge shows
ScrimA soft gradient fading to dark behind the textDarkens a whole side of the image
Drop shadowA dark halo around each letterLooks dated when heavy; muddy on colour
Blurred patchBlurs the background behind the wordsLooks unfinished; says where text goes
Outline strokeA contrasting line around each letterChanges the typeface's character
Six common fixes. Each one works; each one is visible.

If you do use one, use it gently. A scrim that fades over a large area is less noticeable than a box, and a soft, wide shadow is less dated than a hard one. This is a restrained version for the web:

css
.hero {
  position: relative;
}

/* A soft scrim: dark at the bottom, where the text sits, gone by the middle. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.55) 0%, rgb(0 0 0 / 0.2) 35%, rgb(0 0 0 / 0) 60%);
  pointer-events: none;
}

.hero h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  /* A wide, faint shadow reads as depth, not as an outline. */
  text-shadow: 0 1px 24px rgb(0 0 0 / 0.35);
}
A gentle scrim and shadow. Check the result with a contrast checker such as WebAIM's at the lightest point behind the text.

Better: put the words where the background is calm

Most busy backgrounds have a quieter region: a stretch of sky, a soft pool of colour, an area out of focus. Moving the text there, or cropping so that region lands where the text goes, solves the problem without covering anything. When you choose or make a background, look for one with a calm area where your words usually sit.

The same three colours, two very different grounds for words. Stripes give every letter a different background; a radial field gives the centre an even, light pool where dark type reads cleanly.

The same idea applies to photos, where cropping, blur and duotone can all create calm; text over image goes through seven techniques. On gradients, the calm zone is usually where the colour changes most slowly; text on a gradient shows how to find it.

Choose the ink for each line

A background that runs from light to dark can't be served by one ink colour. White type reads on the dark half and vanishes on the light half. Instead of forcing a panel behind it, choose the ink per line: light ink where the background behind that line is dark, dark ink where it's light. Take both inks from the background's own palette, a deep tone and a pale one, so they feel part of the design rather than pasted on.

One ink for everything

  • White headline across a light and dark field
  • Half the letters lose contrast
  • A box added to rescue it
  • The background disappears under the box

Ink chosen per line

  • Each line checked against what's behind it
  • Light ink over dark areas, dark ink over light
  • Both inks taken from the background's palette
  • No patch needed

Let the background move, not the words

The quietest fix of all is a background that knows where the words are. This is how a Gradiently Mark behaves: instead of being covered, it rearranges itself. The whole material slides so its calmest, best-contrasting region sits behind the text; near the letters, colours deepen under light type and lift under dark type; busy ridges relax. None of it is a shape you can point at. It reads as the design, because it is the design.

The other half is ink. Set text to Auto ink and each line picks the light or dark ink that reads best against what's actually behind it, from a pair drawn from the Mark's own palette. Move a headline from a bright area to a dark one and it quietly flips. You decide how strongly the background responds: barely there, balanced, or a clear stage for a headline that has to land.

The best legibility fix is the one nobody notices.

A checklist for text on busy backgrounds

  1. 1

    Find the calm area first

    Place or crop so the words sit over the most even part of the background.

  2. 2

    Check the worst spot

    Test contrast at the lightest point behind light text or the darkest behind dark text, not the average.

  3. 3

    Choose ink per line

    Light over dark, dark over light, both taken from the background's palette.

  4. 4

    Use weight and size

    Heavier, larger type survives busier backgrounds. Hairline weights don't. Fonts for social media has faces that hold up.

  5. 5

    Patch only as a last resort

    If you must, use the gentlest fix: a soft scrim over a box, a wide faint shadow over a hard one.

Spørgsmål, folk stiller

How do I make text readable on a busy background?

Put the words over the calmest part of the background, choose light or dark ink for each line based on what's behind it, and use a heavier, larger weight. Use a soft scrim only if that isn't enough.

Is a drop shadow a good way to make text readable?

A soft, wide, faint shadow can help. A hard, heavy shadow makes text look dated and muddies colour, so use it sparingly.

How do I check contrast on a busy background?

Measure at the worst spot, such as the lightest area behind light text, rather than the average colour. A contrast checker gives the ratio for that pair.

What is Auto ink in Gradiently?

Auto ink picks light or dark type for each line from the Mark's own palette, based on what is actually behind that line, and flips if the text moves.

Del denne guide

Skrevet af GradientlyVerificeret Gradiently-konto

Holdet bag Gradiently, et designværktøj bygget om Marks: levende gradienter, der får alt, du designer, til at ligne dig.

Se vores profil