
WCAG Color Contrast Ratios Explained: 4.5:1, 3:1, 7:1
Three WCAG criteria are dedicated to contrast — text (1.4.3), enhanced text (1.4.6), and non-text UI (1.4.11). The ratios, the formula, and the edge cases that fail audits.
TL;DR: Three WCAG success criteria are dedicated to contrast — SC 1.4.3 for normal text (4.5:1), SC 1.4.6 for the AAA enhanced bar (7:1), and SC 1.4.11 for non-text UI (3:1), each with exceptions covered below; WCAG 2.2 also sets a 3:1 focus-indicator requirement inside SC 2.4.13 Focus Appearance (Level AAA). Body text is the part teams check first; the other criteria are easier to miss. This guide explains what the ratios mean, how the formula works, and where the edge cases (placeholders, focus rings on white, gradient backgrounds, disabled states) hide in audits.
Why contrast is easy to get only partially right
Contrast is one of the few WCAG criteria with a single numeric pass/fail threshold. A pair of colors either passes 4.5:1 or it does not, and a contrast checker returns a definitive answer. That precision creates a false sense of completeness — a team can pass body text contrast, fix the failures a linter reports on one page, and conclude it is done.
The WebAIM Million annual report consistently flags low contrast as the most prevalent WCAG failure on homepages. In the 2024 edition, low contrast was present on more than 80 percent of the top one million homepages — and that figure counts text only. The audit surface is larger still: UI controls, focus indicators, placeholder text, icon strokes, and graphical elements that convey state all need to clear their respective thresholds, and the more components a design system ships, the more contrast pairs each release introduces.
A token-level approach beats a page-by-page approach. If your design system documents every color pair that may appear on every surface and forbids the rest, contrast becomes a design tokens question rather than a manual audit at every release. If it does not, you are auditing forever.
The three contrast success criteria you need to know
WCAG 2.1 contains three contrast success criteria. The first two cover text; the third, added in 2.1, covers the visual information needed to identify user interface components and their states, and the parts of graphics needed to understand content, each with its own exceptions.
| Criterion | Level | Threshold (exceptions below) |
|---|---|---|
| 1.4.3 Contrast (Minimum) | AA | 4.5:1 normal text, 3:1 large text |
| 1.4.6 Contrast (Enhanced) | AAA | 7:1 normal text, 4.5:1 large text |
| 1.4.11 Non-text Contrast | AA | At least 3:1 against adjacent colors for visual information required to identify UI components and states, and for parts of graphics required to understand content, each with exceptions |
SC 1.4.3 Contrast (Minimum) at Level AA requires text and images of text to have a contrast ratio of at least 4.5:1 against their background, except for large text, which needs 3:1, and for incidental text and logotypes, which have no contrast requirement (both described below). SC 1.4.6 raises the same to 7:1 and 4.5:1 at Level AAA, with the same incidental and logotype exceptions — appropriate as a design system aspiration on body type but W3C does not recommend requiring Level AAA as a general policy for entire sites.
SC 1.4.11 Non-text Contrast at Level AA, added in WCAG 2.1, requires the visual information needed to identify UI components and their states (such as a form field's border, a focus indicator, or an icon that conveys state) and the parts of graphics required to understand content (such as chart bars, diagram strokes, or important illustration details) to have a contrast ratio of at least 3:1 against adjacent colors. It exempts inactive components, components whose appearance is determined by the browser (the user agent) and not modified by the author, and graphics whose particular presentation is essential to the information being conveyed. The threshold is lower than text but the surface area is much larger.
What "large text" means is specific: 18 point or larger, or 14 point bold or larger (or a font size that yields an equivalent size for Chinese, Japanese, and Korean fonts). In CSS that is approximately 24px for normal weight or 18.5px for bold, per W3C's Understanding document. Several exceptions reduce the bar to zero. Under SC 1.4.3, incidental text — text that is part of an inactive (disabled) UI control, pure decoration, not visible to anyone, or part of a picture that contains significant other visual content — and text that is part of a logo or brand name have no contrast requirement, and SC 1.4.11 exempts inactive components. A low-contrast logo is not exempt when the low contrast is an author choice rather than a requirement of the brand guidelines.
How the contrast ratio is actually calculated
The W3C Understanding 1.4.3 page documents the formula: contrast ratio is (L1 + 0.05) / (L2 + 0.05), where L1 is the relative luminance of the lighter color and L2 of the darker. Relative luminance comes from a weighted combination of linearized sRGB channels, with the green channel weighted most heavily because human vision is most sensitive to green wavelengths.
sRGB → linearize each channel (gamma 2.4 with the WCAG-specified threshold)
relative luminance L = 0.2126·R + 0.7152·G + 0.0722·B
contrast ratio = (L_lighter + 0.05) / (L_darker + 0.05)Two practical consequences fall out of this formula. First, two colors with identical contrast ratios can look quite different, because the formula is luminance-based and ignores hue and saturation. A dark blue against light yellow can produce the same ratio as gray against gray, and the perceptual experience differs. Second, APCA's author argues the WCAG 2 formula is least reliable for dark colors — the motivation behind the APCA proposal for WCAG 3.
Tools that report contrast — Chrome DevTools, axe DevTools, WebAIM's contrast checker, Stark — all compute WCAG 2 results with the same formula (some, such as Stark, also offer APCA). Beyond the formula, tools differ in how they treat the background (a single point, multiple points, or an average across an image) and in which UI surfaces they flag automatically.
Non-text contrast — the criterion that is easy to underweight
SC 1.4.11 is where audits often find issues that teams missed. The criterion covers two categories, each with its own exceptions: the visual information needed to identify UI components and their states, and the parts of graphics required to understand content.
UI components include buttons, form fields, links that are not styled as inline text, focus indicators, and icons that convey state. Typical failures are subtle — for example: a 1-pixel gray border on a form field against a white page that measures 1.6:1, a light-gray icon-only button at 2.4:1, a focus ring that uses a brand color and disappears against the page background. None of these affect body text contrast scores; each fails SC 1.4.11 when it is the only visual cue that identifies the control or its state.
Under SC 1.4.11 (AA), an author-styled focus ring must reach 3:1 against the colors adjacent to it; a browser-default indicator that the author has not modified is excepted. WCAG 2.2 adds the AAA SC 2.4.13 Focus Appearance: when the keyboard focus indicator is visible, an area of it must be at least as large as a 2 CSS pixel thick perimeter of the unfocused component or sub-component and have a contrast ratio of at least 3:1 between the same pixels in the focused and unfocused states, except where the indicator is determined by the user agent and cannot be adjusted by the author, or where the indicator and its background color are not modified by the author. SC 2.4.11 Focus Not Obscured (Minimum, AA) separately requires that the focused component is not entirely hidden due to author-created content. Where the ring sits decides what it must contrast with: a ring drawn only inside a blue button must reach 3:1 against the button's blue, a ring on the button's border against the colors on both sides of it, and a ring drawn outside the button against the surface the button sits on (if it is partly inside and partly outside, either part can provide the contrast). Being darker than the button is not enough by itself.
Graphical objects required to understand content are the second category. A bar chart whose bars sit at 2.7:1 against the chart background fails SC 1.4.11 when the bars are the only way to read the data — not when labels and values on the chart, or another form such as an accompanying table, convey the same information. An illustration whose decorative strokes sit at 1.5:1 against the canvas does not fail — strokes that do not carry information are exempt. The line is "is this part of the graphic the reader needs to perceive in order to understand the content?" If yes, it needs 3:1, unless that particular presentation is essential to the information being conveyed.
The edge cases that fail audits
Five patterns come up repeatedly in audits. Two of them (disabled controls, logos) have exceptions in WCAG; the other three do not.
Placeholder text. When placeholder text is used as a label substitute (a widely discouraged pattern), the placeholder must meet the same contrast bar as a label. The requirement does not drop when a real label exists: W3C's Understanding document states that placeholder text must also meet SC 1.4.3. Browser default placeholder styling is often light gray, so check it rather than assume it passes.
Disabled controls. SC 1.4.3 explicitly exempts inactive UI components, so a disabled button at 2.5:1 is technically compliant. Users still need to tell disabled controls apart from active ones, so the exemption is not a reason to drop contrast entirely. The cleanest approach is to dim disabled controls to a documented token rather than removing color contrast entirely.
Gradient and image backgrounds. Contrast is measured against the actual background pixel under each character. A white headline that sits at 12:1 over the dark side of a hero photo and at 2.1:1 over the light side fails SC 1.4.3 in the second region. Some tools, such as Stark (since July 2025), check contrast across image and gradient backgrounds; a single-point check can miss this. The practical mitigation is a scrim — a semi-transparent solid layer between the text and the image — sized to keep contrast above threshold against the brightest possible background pixel.
Logos and brand marks. Logos are exempt from text contrast under SC 1.4.3 and from non-text contrast under SC 1.4.11. The exemption does not cover low contrast that the author chose rather than the brand rules required, and when a logo acts as a user interface component, W3C's Understanding documents suggest, as a best practice, considering a variant of the logo with sufficient contrast if the brand guidelines allow one, or an equivalent control that meets the contrast requirements.
Hover and active states. Text in each interactive state must independently meet SC 1.4.3 against its background. A button that goes from 4.7:1 at rest to 2.9:1 on hover fails on hover. The pattern often shows up on subtle hover effects that lighten or darken by a fixed percentage without verifying the resulting ratio.
APCA and the open contrast question in WCAG 3
APCA (Accessible Perceptual Contrast Algorithm), developed by Andrew Somers and presented by its author as a candidate for WCAG 3, uses a perceptually-based formula in place of the WCAG 2 luminance ratio. The current WCAG 3 Working Draft (September 10, 2026) does not name it: it states that the contrast algorithm used in WCAG 3 is yet to be determined. The output is a single signed number called Lc (lightness contrast), measured on a scale where larger absolute values are higher contrast and the sign indicates polarity (dark text on light background vs. light text on dark).
The motivating limitation is that the WCAG 2 formula treats dark-on-light and light-on-dark identically when in practice human perception of contrast differs between the two — particularly for thin and small text. APCA accounts for polarity, font weight, and size, producing different thresholds for body text, headlines, and small captions.
APCA outputs are not normative. WCAG 3 remains a Working Draft (latest published September 10, 2026; as of Oct 2026, W3C), and shipping sites should still target WCAG 2.1 or 2.2 ratios for legal conformance. Some tools already offer APCA alongside WCAG 2 (for example Stark and Polypane), but neither WCAG 2.1 nor WCAG 2.2, both W3C Recommendations, includes APCA.
The practical guidance for 2026 is to design and audit against WCAG 2 ratios, and treat APCA as a candidate to watch, not a target, when defining design tokens. A pair that passes WCAG 2 at 4.5:1 can still fall short of APCA's body-text guidance depending on weight and size, which is informative for design decisions but not a current legal failure.
Tools that actually catch contrast failures
Contrast tools are widely available. Tools differ in how they treat backgrounds, which surfaces they flag automatically, and how they integrate into your workflow.
<!-- Chrome DevTools shows live contrast in the color picker
when you inspect any element with text. -->Chrome DevTools includes a contrast checker in the color picker that reports the contrast ratio for the selected text color. It is the most accessible entry point for engineers — the contrast number is visible while editing CSS. The check operates against the WCAG 2 formula and flags failures against both 1.4.3 and 1.4.6.
axe DevTools (Deque) finds text contrast failures (SC 1.4.3) across an entire page in one scan. As of Oct 2026, the rule list of the open-source axe-core engine (v4.14.0) has no rule mapped to non-text contrast (SC 1.4.11); confirm with Deque whether the commercial extension's newer automated checks cover it, and plan manual review of SC 1.4.11 until they do.
Stark checks contrast across gradient and image backgrounds (as of Oct 2026, Stark), which catches the hero-text-over-photo failures that single-point checkers miss. Polypane additionally tests at multiple viewport sizes simultaneously.
The WebAIM Contrast Checker and the EightShapes Contrast Grid are suited to design system token validation in pairs. The WebAIM checker reports one foreground and background pair at a time against the AA and AAA thresholds for normal and large text, while the Contrast Grid tests many foreground and background combinations from your palette at once against WCAG minimum contrast. This is the right tool for the upfront work that prevents per-page audit findings later.
The honest limitation is that these tools return a pass/fail against a formula (WCAG 2, and in some tools APCA). None of them can tell you whether a design "looks accessible" beyond the threshold — that judgment requires manual review by people including users with low vision, color vision deficiency, and aging-eye sensitivity.
Remediation priorities for your design system
Many contrast failures are token-level problems wearing page-level disguises. A focused thirty-day effort on the design system catches the structural causes that page-level audits keep re-finding.
- Audit color tokens in pairs — every text color must have a documented pass against every background color it appears on, at the size it appears at
- Add a non-text contrast layer — UI tokens for borders, focus rings, icon strokes need 3:1 against their adjacent surface tokens; document the pairs that pass and forbid the rest
- Document the allowed pairs in the tokens layer — a Figma plugin, a Style Dictionary build step, or a CI check that fails on disallowed combinations
- Add focus ring tokens that work on every surface in the system — typically a color with sufficient contrast against both light and dark surfaces, or an automatic switch (e.g., a :focus-visible outline whose color comes from a CSS custom property you switch per color scheme)
- Run an automated contrast audit (axe or Lighthouse CI) in your build pipeline to catch regressions; the alternative is finding contrast regressions during the next user-reported issue
- For sites with image-heavy heroes — define a scrim token (semi-transparent solid layer) sized to keep text contrast above 4.5:1 against the brightest possible background pixel