Performance and accessibility 4 min read Updated
Contrast ratios WCAG 2.2 requires for text and controls
In short
Normal text needs a 4.5:1 contrast ratio, large text and interface components need 3:1, and each colour pair must be checked on its own.
Light grey text on a white background looks fine, but on a grey panel it may no longer meet the requirement. WCAG 2.2 governs colour contrast for text, for images of text and for the parts of interface controls that users need to see. Check every colour pair before the page goes live, not after.
Two criteria cover most contrast work
Two Level AA success criteria cover most colour contrast work. Success Criterion 1.4.3, Contrast (Minimum), covers text and images of text. Success Criterion 1.4.11, Non-text Contrast, covers user interface components and the graphical objects a user needs in order to understand the content. Both are measured as a contrast ratio between two colours.
| Content | Criterion | Minimum ratio |
|---|---|---|
| Normal text | 1.4.3 (Level AA) | 4.5:1 |
| Large text | 1.4.3 (Level AA) | 3:1 |
| Borders, icons and states of controls | 1.4.11 (Level AA) | 3:1 against adjacent colours |
The W3C treats these values as exact thresholds. A ratio of 4.49:1 does not pass a 4.5:1 requirement, so read a result to two decimal places and compare it with the exact number, not with a rounded figure from a design tool.
What counts as large text
Large text is defined by its size, not by how it looks. The W3C definition is text at least 18 point, or 14 point when bold. Only text that reaches that size qualifies for the lower 3:1 ratio. Smaller text, even when it is heavy or decorative, needs 4.5:1.
Measure the size the browser actually renders. A size noted in a design file can differ from the computed size on the page, and the computed size is the one that decides which ratio applies.
Working on something similar in your own product? A few honest sentences are enough – we read every enquiry and reply by email. Apply with your idea
Controls must stand out from their background
Success Criterion 1.4.11 asks for at least 3:1 between a component and the colours next to it. It applies to visual information that shows that a control exists and what state it is in. A text-only button needs a border or a background that stands out from the page, and a checkbox needs a visible outline or fill against its surroundings.
The same rule covers the parts of a graphic that a user needs in order to understand the content. A chart segment that is the only way to tell two categories apart is covered. A decorative background pattern is not, because the content does not depend on it.
Exceptions that are easy to misread
Both criteria have exceptions, and they are narrower than many teams expect. Read them before relying on one.
- Inactive controls. Controls that cannot be operated, such as disabled buttons, are exempt from 1.4.11.
- Logos and brand names. Text that is part of a logo or brand name has no contrast requirement under 1.4.3.
- Pure decoration. Text that is purely decorative, or not visible to anyone, is exempt.
- Hover and state changes. A colour change on hover does not need 3:1 against the default state. A focus indicator still has to meet the requirement.
- Browser-drawn controls. Controls whose appearance the browser sets, without any change by the author, are exempt.
The exception for text inside pictures is also narrow. It applies to text in a picture that contains significant other visual content, so each case needs a judgement and cannot be assumed.
How to check a colour pair
Contrast is quick to check when it is done once for every pair in the design system, rather than page by page. A practical routine:
- List every text and background colour pair in the design, including dark mode if the product has one.
- Calculate the ratio for each pair and record it to two decimal places.
- Mark each pair as normal text, large text or non-text, and compare the result with the matching threshold.
- Check each control in its default state and its focus state. Hover and other state colour changes need no 3:1 check against the default, but the focus indicator does.
- Repeat the check after any change to a brand colour, because one new shade can affect many pairs at once.
The rules for the criteria are part of the wider WCAG 2.2 set, described in what changed in WCAG 2.2. For the full testing plan, including checks that a tool cannot make, see How to test a service for accessibility.
The criteria are quoted from the W3C Understanding documents for WCAG 2.2, for Success Criterion 1.4.3 and Success Criterion 1.4.11. The routine above is a working method, not a replacement for an audit.
Common questions
- Can a result of 4.49:1 pass the 4.5:1 requirement?
- No. The W3C treats the ratios as exact thresholds, so 4.49:1 does not meet a 4.5:1 requirement.
- Does a logo need to meet the contrast ratio?
- Under Success Criterion 1.4.3, text that is part of a logo or brand name has no contrast requirement.
- Do colour changes on hover need to meet 3:1?
- Not against the default state, but a focus indicator must still meet the 3:1 requirement.
Sources
- Understanding Success Criterion 1.4.3: Contrast (Minimum), W3C (WCAG 2.2). Accessed 14 November 2026
- Understanding Success Criterion 1.4.11: Non-text Contrast, W3C (WCAG 2.2). Accessed 14 November 2026
Further reading
-
What changed in WCAG 2.2 and what to check
The new criteria that most affect shops and sign-in are focus not obscured, target size and accessible authentication, and one pass can check them.
-
Focus indicators that stay visible and unhidden
A focus indicator must be visible, keep at least 3:1 contrast with its surroundings, and never be covered entirely by a sticky header.
-
Respecting reduced motion in CSS and interfaces
Use the prefers-reduced-motion query to replace large movement with gentler motion, and keep only the animation that carries information.
Have an idea that should exist? Or a working product that needs more customers, a new website or a complete rework? Bring us anything. Apply with your idea