Colour contrast explained with real examples
Pale grey text and white-on-orange buttons look stylish but are hard to read. Learn what a contrast ratio is, which numbers to aim for and how to check your site.
Light grey text on a white background looks clean and modern on a designer’s large screen. On a phone, outdoors, in the afternoon sun, it can be almost invisible. The same goes for white text on a bright yellow or orange button, or a price printed over a busy photo.
This is not a rare problem. In its 2026 review of the top one million home pages, WebAIM found that low contrast text appeared on 83.9% of them, making it the most commonly detected accessibility issue. The good news: it is also one of the easiest to check and fix yourself.
This post explains what contrast is, which numbers matter, and walks through real colour pairs so you can see where the line falls.
What “contrast ratio” means
Contrast is the difference in lightness between your text and whatever is behind it. It is written as a ratio, from 1:1 (white text on white, so no contrast at all) up to 21:1 (black on white).
You don’t need to calculate it. Free tools do the maths for you, and you only need to remember a few thresholds. They come from the Web Content Accessibility Guidelines (WCAG), the international standard published by the W3C:
- Normal text needs at least 4.5:1. The W3C’s guidance on minimum contrast sets this for body text, menus, labels and prices.
- Large text needs at least 3:1. “Large” means roughly 24px and above, or about 18.5px and above when bold.
- Buttons, form borders and icons need at least 3:1 against the colours next to them, according to the W3C’s rule on non-text contrast.
One detail people miss: the numbers are not rounded. The W3C notes that a pair at 4.499:1 does not meet 4.5:1. “Almost” is a fail.
Who struggles with low contrast
It is easy to think of this as an issue for a small group of people. In practice, it affects many of your customers. The W3C explains that the 4.5:1 level accounts for the loss of contrast sensitivity that typically comes with ageing, and that people with low vision often find low contrast text hard to read.
Add everyday situations to that: a cheap phone screen, low battery mode dimming the display, sunlight on a café terrace, tired eyes in the evening. Good contrast helps everyone in those moments, not only people with a visual impairment.
Interestingly, the W3C also notes that for most people with colour blindness, the hue itself matters much less than the lightness difference. That is why the ratio is based on lightness, not on which colours you pick.
Real examples: grey text on white
Grey text is the most common culprit. Designers use it for descriptions, dates, captions and small print because it looks softer than black. Here is how a few common greys score on a white background:
- Very light grey (#CCCCCC): about 1.6:1. Fails for any text.
- Light grey (#999999): about 2.8:1. Fails for normal text and even for large text.
- Mid grey (#767676): about 4.5:1. Just passes for normal text. This is roughly the lightest grey you can safely use on white.
- Dark grey (#595959): about 7:1. Passes comfortably.
The difference between #999999 and #767676 is small to the eye on a good monitor. On a phone in daylight, it decides whether people can read your delivery terms.
Real examples: buttons and brand colours
Bright brand colours often cause trouble when white text sits on top of them.
- White text on a bright orange (#F5A623): about 2:1. Fails. The same orange with near-black text (#1A1A1A) scores about 8.6:1 and passes easily.
- White text on a coral red (#FF6B6B): about 2.8:1. Fails. A deeper red (#C62828) with white text scores about 5.6:1 and passes.
- White text on a forest green (#2E7D32): about 5.1:1. Passes.
The lesson is not “avoid bright colours”. It is: if your brand colour is light, put dark text on it; if you want white text, use a deeper shade of the same colour. Your button can stay orange. It just needs the right text colour.
And remember the button itself. If your button is a pale outline on a white page, or a form field has only a faint grey border, people may not see that it is there at all. The W3C uses a border colour of #767676 on white as an example that meets the 3:1 rule for an input field. A border of #CCCCCC, very common on contact forms, does not.
Real examples: text on photos
Text placed over a photo is harder, because the background changes from one spot to the next. A white headline can be perfectly readable over a dark sky and disappear over a white tablecloth in the same image.
Safer approaches:
- Put the text on a solid or semi-transparent dark band over the photo.
- Choose a photo with a calm, evenly dark (or evenly light) area where the text sits.
- Check the lightest part of the image behind the text, not the average.
And check again on a phone. On a narrow screen, the photo is cropped differently, and the text may end up over a completely different part of it.
What doesn’t need to pass
A few things are exempt, according to the W3C: your logo or brand name, purely decorative text, and buttons that are switched off (for example, a “Continue” button that stays inactive until the form is filled in). Everything people need to read or use should pass.
How to check your own site
You can check contrast in a few minutes without any technical knowledge.
- Use a free contrast checker. Open the WebAIM contrast checker, paste in your text colour and background colour, and it tells you the ratio and whether it passes. Your colour codes are usually in your site builder’s theme or style settings.
- Check in Chrome. Right-click a piece of text, choose “Inspect” and click the small colour square next to the text colour. WebAIM’s guide to checking contrast in Chrome DevTools shows where the ratio appears and what the ticks mean.
- Start with what matters most. Your main button, prices, body text, form labels and the small print near checkout. These are the places where unreadable text costs you enquiries or sales.
- Do the daylight test. Take your phone outside, turn the brightness down a bit, and look at your homepage and one product or service page. Anything you have to squint at needs attention.
When we run our audits, contrast is one of the first things we measure, because it is quick to find, simple to fix and affects nearly every visitor at some point.
Your colour contrast checklist
- Body text on every main background scores at least 4.5:1 in a contrast checker
- No light grey text (lighter than about #767676 on white) is used for content people need to read
- The text on your main button scores at least 4.5:1 against the button colour
- Form field borders and outline buttons score at least 3:1 against the page
- Headlines over photos sit on a solid or darkened area, checked on a phone
- Prices, delivery terms and form labels are as readable as your headings
- You have looked at your key pages on a phone outdoors with the brightness turned down