Worried your text is hard to read, or that it will fail an audit? The color contrast requirements are short: a ratio of 4.5:1 for normal text and 3:1 for large text. Here is how to check your colors and fix failures.
This guide is part of our series on web accessibility basics.
| Item | Value |
|---|---|
| Normal text, minimum contrast | 4.5:1 |
| Large text, minimum contrast | 3:1 (at least 18 point, or 14 point and bold) |
| Icons and meaningful graphics (WCAG 2.1) | 3:1 against adjacent colors |
| Possible ratio range | 1:1 (white on white) to 21:1 (black on white) |
| Rounding | A ratio of 4.499:1 does not meet 4.5:1 |
These figures come from the Access Board’s ICT Baseline contrast page and WebAIM’s contrast article. Standards and guidance can change, so check the source before you rely on them.
What the color contrast requirements say
The core rule is WCAG success criterion 1.4.3, Contrast (Minimum). The Section508.gov color contrast post states that meeting it ensures the visual presentation of text and images of text has a contrast ratio of at least 4.5:1, except for large text, which needs at least 3:1.
Contrast ratio is the brightness difference between two colors. WebAIM explains that it runs from 1:1, such as white on white, to 21:1, such as black on white. The higher the number, the easier the text is to read for people with low vision or color blindness.
The rule covers “images of text” as well as live text. If a banner or screenshot contains words, those words need the same contrast, and a text description does not excuse a weak ratio. Our guide to alt text best practices covers how to describe such images for people who cannot see them.
Large text, exceptions and rounding
The lower 3:1 ratio applies only to large-scale text. The Access Board’s baseline defines it as at least 18 point text or 14 point bold text.
The same page gives a test shortcut. If the ratio is under 4.5:1, check that it is at least 3:1 and that the font is at least 18 point (24 pixels), or at least 14 point (18.5 pixels) and bold at a font weight of at least 700.
Three exceptions exist, according to WebAIM: large text, incidental text and logotypes. Section508.gov lists them like this:
- Text that is part of an inactive interface component, pure decoration, or not visible to anyone has no contrast requirement.
- Text that is part of a logo or brand name has no contrast requirement.
- Large-scale text only needs 3:1, not 4.5:1.
Do not round. The Access Board states that a ratio of 4.499:1 would not meet the 4.5:1 threshold, and WebAIM likewise warns that you cannot round a contrast ratio up to 4.5:1.
Contrast beyond text: buttons, icons and graphics
WCAG 2.1 added criterion 1.4.11, Non-text Contrast. WebAIM notes it moves contrast requirements beyond text, asking for a ratio of at least 3:1 against adjacent colors for user interface components and graphical objects.
In practice this means the visual information needed to identify a control, such as the border of a text field or the state of a checkbox, should stand out from its surroundings. Icons that carry meaning, like a magnifying glass without a text label, need the same 3:1 treatment.
Here is a point that trips people up. The Section508.gov color accessibility page says 1.4.11 is not required by Section 508, though it still calls following it a best practice. Many organizations and contracts ask for it anyway, so check what yours requires.
Where Section 508 fits in
As that same Section508.gov page explains, when Section 508 standards apply, all software, web content, and documents must meet the color usage standards in WCAG 2.0 AA. That includes 1.4.3 for contrast and 1.4.1 for use of color.
Use of color means color is not used as the only visual means of conveying information, indicating an action, prompting a response, or distinguishing a visual element. A red error message with no icon or text cue fails this rule even when its contrast ratio is fine.
This site is independent and does not give legal advice. For the authoritative text, read the standards themselves through the links above.
How to test color contrast
Testing takes a few minutes once you have the foreground and background colors. Follow these steps:
- Pick the text or component and note its foreground and background colors, ideally from the stylesheet rather than a screenshot.
- Enter both colors into a contrast checker. Section508.gov points to the WebAIM Contrast Checker and the Colour Contrast Analyser, which has a built-in color sampler.
- Confirm the tool does not round values. The Access Board advises using contrast tools that do not round values.
- Compare the result with 4.5:1 for normal text or 3:1 for large text, and with 3:1 for icons and control boundaries.
- Repeat for each state: hover, focus, active and disabled where relevant.
The Access Board notes that a variety of color contrast tools can perform the algorithms needed to determine the contrast. Pick one your team can use consistently, so results are repeatable.

Contrast tools check what sighted users see, not how a page is announced, so pair them with a guide on how to test with a screen reader for the other half of a basic audit.
Tricky cases: gradients, images and state changes
WebAIM states that text over gradients, semi-transparent colors, and background images still needs to meet contrast requirements, but WCAG does not provide any guidance on how to measure their contrast. In that situation, test the worst spot: the point where the text sits on the lightest or darkest part of the background.
Hover and focus styles deserve the same attention. WebAIM points out that CSS can define hover, focus, or active states for interactive elements, so a link that passes at rest can still fail when it changes color.
Some design tools help. Section508.gov notes that Microsoft Word’s Accessibility Checker warns when text is hard to read, and that the color Red in many Microsoft applications fails to meet the minimum contrast standard.
Frequently asked questions
What contrast ratio do I need for body text?
Show answer
Body text needs at least 4.5:1 against its background under WCAG 1.4.3. Only large-scale text, meaning at least 18 point or 14 point bold, can drop to 3:1.
Does a logo have to meet contrast rules?
Show answer
No. Section508.gov says text that is part of a logo or brand name has no contrast requirement, though readable branding is still kind to your visitors.
Is non-text contrast required by Section 508?
Show answer
According to Section508.gov, the 1.4.11 criterion comes from WCAG 2.1 and is not required by Section 508, which it describes as a best practice. Your agency or contract may still ask for it.
Can I round a near miss up to the threshold?
Show answer
You cannot. WebAIM says a ratio cannot be rounded up to the minimum, so a result just below it needs a darker or lighter color.



