Headings get a friendlier set of contrast numbers, and that is exactly where the trouble starts. Large text is allowed a lower ratio than body text, so there is a standing temptation to call a heading large when it is merely bigger than the paragraph under it. WCAG does not grade on a curve: large is a precise definition, and a heading that misses it is normal text wearing a heading's confidence.
This guide explains the definition, the two sets of thresholds, and the discipline of classifying a heading honestly before you check it, using the free Color Contrast Checker on Ovatly, which measures a text color against a background color with the WCAG 2.1 relative luminance formula and reports pass or fail for AA and AAA at both size classes.
Contents
- Quick answer
- The exact definition of large text
- Two size classes, two sets of numbers
- Classify first, check second
- How to check a heading, step by step
- Worked example: one pair, two verdicts
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
First decide which class your heading is really in: at least 18pt, or 14pt bold, means large text; anything smaller is normal text. Then enter the heading color and its background in the Color Contrast Checker and read only the rows for that class. Large text needs 3:1 for AA and 4.5:1 for AAA. Normal text needs 4.5:1 for AA and 7:1 for AAA. A 16pt regular heading is normal text, whatever it is called in the stylesheet.
The exact definition of large text
WCAG draws the line in points and weight. Text is large when it is at least 18pt, or when it is bold and at least 14pt. Both halves matter. A 20pt light heading qualifies on size alone. A 14pt heading qualifies only if it is bold. A 16pt regular heading qualifies on neither count: it is under the 18pt line and it is not bold, so it is normal text.
That last case is the classic self-deception. Sixteen points looks like a heading, sits above the paragraph like a heading, and is labeled like a heading in the code. None of that changes its size class. The definition cares about the rendered size and weight, not the role the text plays on the page, and the honest check starts by admitting which side of the line a given heading actually falls on.
Two size classes, two sets of numbers
The thresholds split cleanly by class. For AA, the level most laws and procurement rules reference, normal text needs 4.5:1 and large text needs 3:1. For the stricter AAA, normal text needs 7:1 and large text needs 4.5:1.
Notice the overlap: AAA for large text asks for exactly what AA asks of normal text. That is why the same color pair can look generous in one class and inadequate in the other. The checker reports all four rows for every pair, which is convenient and dangerous in equal measure: convenient because one measurement covers every case, dangerous because nothing stops you from reading the row you wish applied instead of the row that does.
Classify first, check second
The order of operations is the whole method. Classify the heading by its real size and weight before you look at any numbers. Write the classification down if the project is big enough for arguments: this heading is 24pt, large; this one is 16pt regular, normal. Then check the pair, and read only the rows belonging to the class you recorded.
Reversing the order, checking first and classifying afterwards, invites the verdict to choose the class. A pair that fails the normal rows suddenly gets described as a large heading. Keeping the classification first, and fixed, is what makes the check a measurement instead of a negotiation.
How to check a heading, step by step
- Measure the heading's rendered size and weight, and classify it: large only if it is at least 18pt, or 14pt bold.
- Open the Color Contrast Checker and enter the heading color and the background color it sits on.
- Read the ratio and the preview at the top of the results.
- Read the AA and AAA rows for the class you classified in step 1, and ignore the other class's rows.
- Use Swap colors to confirm the inverse pairing if the same colors appear reversed elsewhere, and darken a failing color one step at a time if the pair falls short.
Worked example: one pair, two verdicts
Take the blue #2563EB on white, #FFFFFF. The checker measures the pair at 5.17:1.
Read it as large text first, for a heading of 18pt or more. Against the large rows, 5.17:1 passes AA, which needs 3:1, and it also passes AAA, which needs 4.5:1. As a large heading, this blue is fully compliant at both levels.
Now read the same pair as normal text, which is what it becomes the moment the heading is set at 16pt regular. It still passes AA, since 4.5:1 is met, but it fails AAA, which demands 7:1. Nothing about the colors changed. The pair lives two different lives by size alone: an AAA pass as a genuine large heading, an AAA failure as a smaller one. Which life it leads is decided entirely by the classification you made before checking.
Limitations and honest tradeoffs
The checker measures one pair at a time with the WCAG 2.1 formula and reports the four rows; it does not know your heading's size, so the classification step is yours and cannot be delegated to the tool. Contrast is also only one part of readability: a heading in a very thin weight can be hard to read even at a passing ratio, because the formula sees color, not letterforms. Finally, a passing heading does not certify the page. Body text, captions and every other size class on the page need their own checks against their own rows.
Common mistakes
- Calling a 16pt regular heading large. It is normal text and needs 4.5:1 for AA and 7:1 for AAA.
- Reading the friendliest row. The checker shows all four rows; only the two for your text's real class apply.
- Classifying after seeing the result. Decide the class from size and weight first, then check, so the verdict cannot pick the class.
- Assuming bold anywhere counts. The bold route into large text starts at 14pt; a bold 12pt heading is still normal text.
- Darkening a brand color everywhere when only small text fails. Keep the bright original for genuine large headings, borders and graphics, and darken only for the roles that need it.
FAQs
What counts as large text for contrast? Text of at least 18pt, or bold text of at least 14pt. Everything smaller counts as normal text, including headings set below those sizes, and must meet the normal-text thresholds instead.
What contrast ratio does large text need? WCAG AA requires 3:1 for large text and AAA requires 4.5:1. Normal text is stricter: 4.5:1 for AA and 7:1 for AAA. The checker reports pass or fail for all four rows, so read the pair that matches your text's size class.
Is a 16pt heading large text? No. A 16pt regular heading falls below the 18pt cutoff and is not bold at 14pt or above in the qualifying sense, so it counts as normal text. It needs 4.5:1 for AA and 7:1 for AAA, not the large-text rows.
My heading color passes the large rows but fails for body text. What should I do? Keep the bright color for the headings, where it passes legitimately, and darken it one step at a time for body text until that pair passes too. The original bright version can stay in large headings, borders and graphics, which have lower thresholds or none.
Does it matter which of the two colors I enter first? No. The contrast ratio is symmetric, so a heading color on a background scores exactly the same as the background color on the heading color. Enter them in whichever order is convenient and read the rows for your size class.
Conclusion
Large text earns its lower thresholds only by meeting an exact definition: at least 18pt, or 14pt bold. Classify the heading honestly, then let the Color Contrast Checker judge the pair against the rows that class actually carries. The same discipline applies at reading size, where buttons and links live; our guide to contrast rules for buttons and links works through those pairs. For more guides in this series, see our Color and Design Tools guides.
References
- W3C, Web Content Accessibility Guidelines (WCAG) 2.1, on contrast minimums and the definition of large text: https://www.w3.org/TR/WCAG21/#contrast-minimum
- W3C, WCAG 2.1, on the enhanced contrast criteria for AAA: https://www.w3.org/TR/WCAG21/#contrast-enhanced