Fixing light grey text without redesigning the whole site
Faint grey text is the most common contrast failure. Here's how to measure it, darken it in small steps, and keep the quiet look you wanted.
Pale grey text is the classic quiet-looking mistake. It feels refined in the design, and it's hard to read on a real screen. The fix doesn't need a new look, only a darker grey in the right places.
Find the greys that are failing
Start with the text that's meant to be secondary: captions, dates, footer notes, menu items, form hints, small print. Those are where designers reach for light grey. Each one needs at least 4.5 to 1 against its background, unless it's large text.1
Measure, don't guess. The checker's eyedropper picks up the colour of anything on screen, so you don't have to hunt through the stylesheet.2 Write the result down next to each grey.
Be warned about how close the line is. A well-known grey, #777777, comes to 4.47 to 1 on white and fails. Its neighbour #767676 sits almost exactly at 4.5 to 1.3 WebAIM is firm that you can't round up. Greys that look identical fall on both sides.
Darken it, don't replace it
You can usually keep the same character of grey and move it a few steps darker. Changing the lightness of a colour changes its contrast ratio against another colour.3 So hold the hue steady, lower the lightness, and measure. The WebAIM checker has a lightness slider that does this live.2
Go a step at a time. Stop when the check passes, with a small margin if the page allows it. A grey that only just clears the line is fine, but a slightly darker one gives you room if the background shifts.
Keep the quiet look another way
If the page feels too heavy once the grey is darker, you can keep the hierarchy without keeping the faintness. These all signal "less important" without lowering contrast:
- A smaller size, within reason. Content that's small or low in contrast may be difficult to perceive, so don't shrink and fade together.4
- A lighter font weight, though not so thin that it vanishes.
- More space around it.
- A different style, such as italics for a caption.
Don't swing all the way to pure black either. WebAIM cautions that pure black-on-white content may be difficult to read for some people.4 A dark charcoal grey is a calmer choice that still has room to pass.
Or make it count as large text
Large text needs only 3 to 1.3 WebAIM's example is a grey, #949494, at 18 point on white, which meets that lower line.3 It suits a big pull quote or a section label. It doesn't suit a date or a caption, which are small. Sizes and weights are listed in the large text rules.
Watch the grey that isn't a grey
Some greys are really black or white with the opacity turned down. That's a problem, because reducing the alpha of an element reduces its contrast.3 The result depends on whatever is behind the text, so the same style can pass on white and fail on a tinted panel. If your theme builds greys this way, measure on each background it appears on, or swap it for a fixed colour.
Check the other states as well. Links and menu items that change colour on hover or focus must meet the same requirements in every state.3
A tidy order of work
- Write down the current colour values before you change anything.
- Measure every grey that's used for text.
- Change the shared colour setting once, if your theme has one, instead of fixing items one by one.
- Re-measure, then look at the actual pages on a phone and a desktop.
The measuring steps are in the checking guide.
Cited material
- Color contrast, MDN Web Docs, Mozilla
- Contrast Checker, WebAIM, Utah State University
- Contrast and Color Accessibility, WebAIM, Utah State University
- Visual Disabilities - Low Vision, WebAIM, Utah State University