MarketExploreTry on
Pricing
Sign inStart
Field GuideType and text
Type and text

Text on gradient background: how to make it read every time

A gradient changes under every letter, so a colour that reads at one end can vanish at the other. Here is the method that keeps words readable across the whole blend.

GradientlyVerified Gradiently account·October 1, 2026·5 min read
Cover: Gale Bazaar · GR·16H4·DF

The short version

  • Text on a gradient is hard to get right because the background's lightness changes under the words, so one ink colour can have strong contrast at one end and weak contrast at the other.
  • The best place for text on a gradient is its calm zone, the stretch where the colour changes most slowly.
  • Choose ink by the lightness of the colour behind it, not its hue: white or near-white over dark stops, near-black over light ones.
  • Mid-lightness colours in a gradient are a trap, because neither white nor black type has much contrast to spare against them.
  • Check contrast at the worst point behind the text, and view the design at phone size and in greyscale before publishing.
On this page
Why text on a gradient is harder than it looksStep 1: find the calm zoneStep 2: choose ink by lightness, not hueStep 3: stay out of the mid-tone trapStep 4: use size and weightStep 5: test at phone size and in greyscale

To put text on gradient background colours so it always reads, place the words over the gradient's calmest stretch, choose light or dark ink by the lightness of the colour directly behind them, keep small text off mid-tones, and test contrast at the worst point, not the average. Size and weight do the rest: large, sturdy type survives a changing background that thin, small type can't.

Why text on a gradient is harder than it looks

On a flat colour, contrast between text and background is one number. On a gradient, it changes along the blend. White type can be crisp against the dark end and nearly invisible against the light end, sometimes within a single word. The gradient below shows how quickly that happens.

Indigo night to blushlinear-gradient(90deg, #1e1b4b 0%, #7c3aed 35%, #c026d3 55%, #ec4899 75%, #fbcfe8 100%)
One gradient, five very different backgrounds for text. White reads on the left, near-black on the right, and the magenta middle suits neither particularly well.
Indigo night #1e1b4b

White (#ffffff)

16.0:1

Near-black (#0b0b14)

1.2:1

Use

White
Violet #7c3aed

White (#ffffff)

5.7:1

Near-black (#0b0b14)

3.4:1

Use

White
Magenta #c026d3

White (#ffffff)

4.7:1

Near-black (#0b0b14)

4.2:1

Use

Neither has much to spare
Pink #ec4899

White (#ffffff)

3.5:1

Near-black (#0b0b14)

5.5:1

Use

Near-black
Blush #fbcfe8

White (#ffffff)

1.4:1

Near-black (#0b0b14)

14.2:1

Use

Near-black
Colour behind the textWhite (#ffffff)Near-black (#0b0b14)Use
Indigo night #1e1b4b16.0:11.2:1White
Violet #7c3aed5.7:13.4:1White
Magenta #c026d34.7:14.2:1Neither has much to spare
Pink #ec48993.5:15.5:1Near-black
Blush #fbcfe81.4:114.2:1Near-black
Contrast ratios for each stop of the gradient above, calculated with the WCAG formula. Body text needs at least 4.5:1; large text needs 3:1.

The thresholds come from the WCAG contrast guidance: 4.5:1 for normal text and 3:1 for large text, roughly 24 pixels and above, or about 19 pixels in bold. Colour contrast explains the rules in plain words.

Step 1: find the calm zone

Every gradient has stretches where the colour changes slowly and stretches where it changes fast. Text belongs in the slow part, because the contrast under it stays nearly constant. On a linear gradient that's usually one end; on a radial gradient it's the centre or the outer edge; on a mesh or aurora it's whichever pool of colour is largest and most even.

Two gradients built with a calm zone on purpose. The first holds one dark colour for the left 40 percent; the second keeps a wide, pale pool in the middle for dark type.

If you control the gradient, build the calm zone in: hold a colour for longer by repeating a stop, as the first example does. If the gradient is given to you, move the text rather than fighting it.

Step 2: choose ink by lightness, not hue

Contrast is about lightness. A vivid violet and a vivid orange can look equally strong, yet white reads well on the violet and poorly on the orange, because the orange is much lighter. When choosing ink, ignore the hue and ask: is the colour behind this line dark or light?

Avoid

  • Picking ink to match the hue, like pink text on a pink gradient
  • One white headline stretched across dark and light ends
  • Judging contrast by eye on a bright monitor
  • Coloured ink on a saturated background

Do

  • Light ink over dark stops, dark ink over light ones
  • Lines placed so each sits over one lightness
  • Measuring the ratio at the worst spot
  • A near-white or near-black taken from the gradient's own family

Tinted inks feel more considered than pure white and black. Take a very pale tint of the gradient's lightest colour and a very deep shade of its darkest; they carry the palette into the type and usually have enough contrast. Muddy gradients explains why mid-blends lose lightness contrast in the first place.

Step 3: stay out of the mid-tone trap

Look at the magenta row in the table: 4.7:1 with white and 4.2:1 with near-black. Neither ink has much to spare. Mid-lightness colours sit in the middle of most gradients, which is exactly where people tend to centre their text. Small text there will be marginal whichever ink you choose.

  • Move the text towards the darker or lighter end.
  • Shift the gradient so the stop behind the text is darker or lighter.
  • Make the text large and bold, so the lower 3:1 threshold for large text applies.
  • Reserve the mid-tones for decoration, shapes and space, not words.
css
.banner {
  /* The dark stop is held to 45%, so the headline on the left sits on one lightness. */
  background: linear-gradient(90deg, #1e1b4b 0%, #1e1b4b 45%, #7c3aed 70%, #ec4899 100%);
  color: #f5f3ff; /* a pale violet tint rather than pure white */
}

.banner h1 {
  max-width: 40%;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
}
Building the calm zone into a CSS gradient: the headline is limited to the left 40 percent, which sits entirely on the dark stop.

Step 4: use size and weight

Heavier, larger letters have more area and are read as shapes, so they tolerate a changing background better. Hairline and light weights break up as the colour behind them shifts. On a gradient, set body text in regular, medium or bold rather than light weights, and keep headlines generous. Fonts for social media lists sturdy faces that read on phones.

Legibility
Clear on every colour.
The ink changes with what is behind each line.
Gradiently · @gradiently

Large, sturdy type placed on the calmest part of the gradient, with the ink chosen for what sits behind it.

Step 5: test at phone size and in greyscale

  1. 1

    Measure the worst spot

    Sample the lightest colour behind light text, or the darkest behind dark text, and check the ratio.

  2. 2

    View it in greyscale

    Desaturate a copy of the design. With the hue gone, weak lightness contrast is obvious.

  3. 3

    Look at it on a phone

    At arm's length, in daylight if you can. Small text on gradients fails there first.

  4. 4

    Squint

    Half-close your eyes. The text should still stand apart from the background as a shape.

For backgrounds that are busier than a gradient, like photos and textures, see type on busy backgrounds. In Gradiently, Marks move their calmest region behind the words, and Auto ink picks light or dark type for each line from the Mark's own palette, so the method above happens as you type.

Find a gradient that’s only yours

Browse thousands of Marks, design with any of them for free, and claim the one that feels like you.

Browse the Market

Questions people ask

What colour text works on a gradient background?

It depends on the lightness behind the text: white or a pale tint over dark stops, near-black or a deep shade over light stops. Hue matters far less than lightness.

How do I check contrast on a gradient?

Measure the ratio at the worst point behind the text, not the average. Normal text needs at least 4.5:1 and large text at least 3:1.

Where should text go on a gradient?

Over its calm zone, where the colour changes most slowly, usually one end of a linear gradient or the centre of a radial one.

Why is text hard to read in the middle of my gradient?

Mid-lightness colours give weak contrast with both white and black type. Move the text towards an end, shift the gradient, or make the text large and bold.

Share this guide

Written by GradientlyVerified Gradiently account

The team behind Gradiently, a design tool built around Marks: living gradients that make everything you design look like yours.

See our profile

On this page

Why text on a gradient is harder than it looksStep 1: find the calm zoneStep 2: choose ink by lightness, not hueStep 3: stay out of the mid-tone trapStep 4: use size and weightStep 5: test at phone size and in greyscale

Share this guide

Next in Type and text

Font pairing: simple rules that work

Keep reading

All Type and text guides
Colour

Color contrast: readable text for everyone

5 min read

Contrast is the difference between words people read and words people skip. The WCAG numbers in plain English, how to check them, and what changes when the background is a gradient.

Type and text

Putting type on busy backgrounds without a box

6 min read

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.

Gradients

Why some gradients go grey in the middle, and how to stop it

5 min read

Blue and yellow should make a lovely gradient. Blend them the default way and you get a grey smudge in the middle. Here is exactly why, and four ways to keep every blend clean.

Find the look that’s only yours.

Every Mark is a living background with one owner. Try an unclaimed Mark, and claim yours when it feels right.

Start designingSee the launch offer

Marks left to claim

50of 1,000

950 claimed so farFind yours

Check a certificate

Type a certificate number or a Mark’s code to see who owns it.

Works with ChatGPT and Claude

Ask your AI for a design. It makes it in your Mark, ready to edit.

ChatGPTClaude
How to connect

Product

  • Market
  • Explore
  • Pricing
  • Launch packs
  • Certificates

Learn

  • Field Guide
  • Help centre
  • What’s new

Developers

  • Overview
  • ChatGPT and Claude
  • API reference
  • API keys

Company

  • About
  • Contact us
  • Sign in

Legal

  • Terms
  • Privacy
  • Refunds
  • Mark protection
  • Cookies
  • All policies
Move through the letters. Each one wears a real Mark.Touch a letter to see its Mark.One name. Ten Marks inside it.
© 2026 Gradiently