In short: Colour contrast is the difference in brightness between text and its background. We measure it as a ratio from 1:1 (no difference) to 21:1 (black on white). According to WCAG, the web accessibility standard, normal text needs a contrast of at least 4.5:1. For large text (24 pixels and above, or 18.66 pixels and above in bold), at least 3:1 is enough. WCAG also recommends 3:1 for interface elements such as button borders and icons. Finally, do not guess contrast; measure it with a free tool such as WebAIM Contrast Checker.
Colour contrast: the short version…
A colour looking good does not mean you can comfortably read the text on it. For example, light grey text, white text on a yellow background or red on green can look stylish in a design file. But many users cannot read these combinations. In this post, I explain how to measure colour contrast and which values are enough. Then I show you how to build a colour palette everyone can read.
What is colour contrast?
The contrast ratio is a measure of the difference between the relative brightness (luminance) of two colours. In other words, lightness and darkness decide it, not hue (red, blue). That is why two vivid colours that look very different can have low colour contrast if their brightness is the same. The red and green in the examples below are a good illustration. They are opposite hues, but their contrast ratio is 1.03:1, which means there is almost no difference.

WCAG colour contrast rules
WCAG (Web Content Accessibility Guidelines) is the W3C’s web accessibility standard. These are the basic rules for colour contrast (W3C):
| Element | AA (minimum) | AAA (enhanced) |
|---|---|---|
| Normal text | 4.5:1 | 7:1 |
| Large text (18 pt / about 24 pixels and above, or 14 pt / about 18.66 pixels and above in bold) | 3:1 | 4.5:1 |
| Interface elements and graphics (button border, form field, icon) | 3:1 | – |
| Logos and decorative text | No requirement | No requirement |
For most projects, the target is level AA. The 4.5:1 ratio has a reason behind it. The W3C chose this value to make up for the contrast lost by someone with 20/40 visual acuity. So this ratio is for everyone: people looking at a screen without their glasses, people whose eyesight is changing with age, or anyone using a phone in the sun.
4 steps to measure colour contrast
- Get the HEX codes of the text colour and the background colour (for example #444C57 and #FFFFFF).
- Enter them into a tool such as WebAIM Contrast Checker.
- Then look at the AA and AAA results for normal and large text.
- If it fails, change the lightness of the colour, not its hue: make the text darker or the background lighter.
There are also Figma plugins that measure contrast. Browser developer tools show the colour contrast ratio too when you inspect a text element. If you have placed text over an image, measure the lightest point behind the text, not the average colour of the image.
The colour contrast mistakes I see most often
- Light grey body text: It gives a modern, minimal feel. But a grey like #949494 on a white background, at 3.03:1, is not enough for normal text. By contrast, #767676 is one of the lightest greys that passes 4.5:1 on white.
- White text on bright backgrounds: On yellow, light orange and light green backgrounds, white text is almost unreadable. So use dark text on these colours.
- Text over photos: The light areas of a photo swallow the text. So add a semi-transparent dark layer or a solid colour area behind the text.
- Using placeholder text as a form label: The faint hint text in form fields is usually low contrast and disappears once you start typing. So write the real label outside the field, with enough contrast.
- Active buttons that look disabled: Users assume very light buttons cannot be clicked.
Colour blindness: do not rely on colour alone
Colour blindness is more common than most of us think. Worldwide, about 1 in 12 men and about 1 in 200 women have a colour vision deficiency (Colour Blind Awareness). The most common type makes it hard to tell red from green.
That is why WCAG asks you not to convey information through colour alone. In practice, this means:
- Show an invalid form field not only with a red border, but also with a warning message or an icon.
- In the same way, mark links in body text not only with colour, but with an underline too.
- In charts, add labels, patterns or different line styles next to the colours.
- Do not write instructions that rely only on colour, such as “Click the green button”.
Converting your design to greyscale is a quick check. If the design still makes sense in black and white, you are not leaning too heavily on colour. I also recommend this test in the post on visual hierarchy.
How do you build a colour palette everyone can read?
1. Define the roles
First, think of the palette in terms of jobs, not colour names: background, body text, headings, accent (buttons and links), borders, success, error. Then choose a colour for each role. After that, measure the colour contrast between each text role and the background, one by one.
2. Create light and dark shades of each colour
Sometimes a brand colour does not work directly as a text colour. In that case, use a darker shade of the same colour for text and a lighter shade for backgrounds. In short, keeping the hue while changing the lightness is the easiest way to fix contrast without losing the brand feel.
3. Think in proportions: 60-30-10
The 60-30-10 rule, borrowed from interior design, is a good starting point for distributing colour. Under this rule, about 60% of the surface is the dominant colour (usually the background), 30% is the secondary colour and 10% is the accent colour. When you use the accent colour sparingly, it really stands out.

4. Do not forget interaction states
The colours a button takes when you hover over it, focus on it and press it must also meet the colour contrast rules. The focus outline in particular must be clearly visible for people who navigate with a keyboard.
5. Repeat the colour contrast test in dark mode
Colours that pass in a light theme do not always pass in a dark theme. So if you offer dark mode, redo all the measurements. Also, pure white text on a pure black background tires some readers’ eyes. A very dark grey background with off-white text is a more comfortable option.
Frequently asked questions
What does a 4.5:1 contrast ratio mean?
First, you add 0.05 to the relative luminance of each colour. Then you divide the lighter colour’s value by the darker colour’s value; if the result is 4.5, the ratio is 4.5:1. In practice, this is the minimum difference at which most users can comfortably read normal-sized text. But you do not need to do the maths by hand; contrast checking tools do it for you.
Do logos have to follow the colour contrast rule too?
WCAG exempts logos from the contrast rule. But your logo will appear on different backgrounds. That is why preparing versions for light and dark backgrounds is always a good idea. I explain this in detail in the post on logo file formats.
Is accessibility mandatory in Turkey?
There are accessibility regulations for public sector websites. In the European Union, the European Accessibility Act has applied to many private sector products and services since June 2025. To find out exactly which rules cover your project, consult a lawyer. But regardless of legal requirements, a site that is easy to read is a better site for everyone.
This post is based on information valid as of November 2026. The contrast values are the same as in WCAG 2.2; the measurement method may change in future versions of WCAG.


