What counts as large text under the contrast rules
Large text can use a lower contrast ratio. Here are the exact size and weight cut-offs, in points and pixels, and what they mean for headings and buttons.
Large text gets a lower contrast requirement, because bigger letters are easier to read. The catch is that "large" is narrower than most people expect. A heading that looks big to you may not qualify.
The cut-offs
Under the guidelines, large text means text that is 18 point or larger, or 14 point or larger if it's bold.1 MDN gives the same two figures.2
Websites mostly size text in pixels, not points. WebAIM says 18 points maps to 24 pixels, and 14 points to approximately 18.67 pixels.1 WebAIM's checker puts it as typically 24 pixels, and typically 18.66 pixels for bold.3 The tiny difference is only rounding. Treat 18.67 pixels as the safe side.
What "bold" means in code
In CSS, bold text typically has a font weight of bold, or 700 or greater.1 A font used at its regular weight, or a light weight that only looks heavy, doesn't count. Check the weight your theme actually sets. A semi-bold at 600 may sit below that line.
What changes if your text is large
The minimum drops from 4.5 to 1 to 3 to 1.1 MDN words it for headings: heading, or just larger, text should reach at least 3 to 1.2 At the stricter AAA level the large-text figure is 4.5 to 1, against 7 to 1 for normal text.1
The reduction is real, but it isn't a licence to go pale. The 3 to 1 figure is a floor, not a target. If you can reach 4.5 to 1 on a heading without hurting the design, do.1
Which of your elements might qualify
Go through the page and look at the numbers, not the impression.
- Main page title (h1). Very likely large. Check it's at least 24 pixels at regular weight, or about 18.67 pixels if bold.1
- Section headings (h2, h3). Often smaller than they look. A 20 pixel bold heading qualifies. A 20 pixel regular one doesn't.1
- Buttons. A button label is text, so it's judged the same way. A small label in a button, even a bold one, needs the full ratio unless it reaches the bold cut-off.
- Body text and captions. These almost never qualify. They use the standard ratio.
- Hero banner text. Often big enough to qualify, but see the page on banner text, because a picture behind it changes the measuring.
Two traps
The first is text inside an image. The same ratios apply to it, but it can be difficult or impossible to measure text size or font weight in an image.1 If you can't prove the text is large, hold it to the higher standard.
The second is zoom and small screens. Your layout may shrink a heading on a phone. Check the size at the screen width where it's smallest, not only on your desktop.
Where to look next
Once you know which text can use the lower figure, measuring each pair is covered in the checking guide. Controls such as buttons and form fields have a separate 3 to 1 rule for their edges and icons.2 Read about it in the page on buttons and form fields.
Cited material
- Contrast and Color Accessibility, WebAIM, Utah State University
- Color contrast, MDN Web Docs, Mozilla
- Contrast Checker, WebAIM, Utah State University