Free guideThe newsletter. Real UI fixes by email, and a free 35-page guide to AI design skills.
Ship Better UI

, 1 minute 10 seconds

How much contrast does grey text need?

The rule

Give grey body text 4.5:1 against its background, and large text from 24 px up and the edges of controls 3:1.

Try it

Apply the fix

Prompt for your AI coding tool

Paste it into Claude Code, Cursor or any AI coding tool, then share the page you want fixed.

Review the grey text and the control edges in the interface I share. Measure each grey against the background it sits on, fix what fails, and change nothing else.

1. Body text: 4.5:1 or more (WCAG 1.4.3).
2. Large text, 24 px and up: 3:1 is enough.
3. Edges of controls, like an input border: 3:1 (WCAG 1.4.11).

Where a grey fails, move it one shade further from its background until it clears its floor. On a #15181F card, for example, body text in #71717A (3.7:1) becomes #A1A1AA (6.9:1), and an input border in #2B303A (1.3:1) becomes #71717A (3.7:1).

Keep the layout, the sizes and the words. When you are done, list each grey you changed: where it is, its old and new hex, and its ratio before and after.

More prompts like this in the free guide 

The problem

The plan-usage card in the video has three greys: a two-line note, the large "of £400" and the border of the Monthly limit field. They look calm on a monitor. On a phone, in daylight, the grey text disappears. Measured against the card, the note is 3.7:1, the large figure 2.3:1 and the border 1.3:1, so the field barely shows. All three fail.

The fix

Same card, same layout. Measure each grey against its background and make it one shade lighter until it clears its floor.

  1. Body text. 4.5:1 or more (WCAG 1.4.3). The note goes from #71717A at 3.7:1 to #A1A1AA at 6.9:1.
  2. Large text. From 24 px up, 3:1 is enough. "of £400" goes from #52525B at 2.3:1 to #71717A at 3.7:1.
  3. Edges. The edge of a control needs 3:1 as well (WCAG 1.4.11). The input border goes from #2B303A at 1.3:1 to #71717A at 3.7:1.

Why it works

Contrast is something you can measure, so you do not have to trust how a grey looks on your own screen. Each kind of grey has its own floor. Large text has a lower one, so the grey that failed as body text passes as the 28 px figure. A border is measured against the card it sits on, and at 3.7:1 the field shows again. Only the greys changed.

How to apply it

Before you ship, list the greys in your interface: body text, large text and the edges of controls. Measure each one against the surface it sits on. Move anything under its floor one shade further from its background, and measure again. The floor is 4.5:1 for body text and 3:1 for large text and edges.

Free guide · 35 pages

Get fixes like this by email

Join the newsletter and get the 35-page guide to AI design skills: the skills, the order to use them in, and prompts to copy.

Watch it on

More on colour

All 5 lessons on colour