WCAG 2.2 Brand Color Contrast Rules: AA vs. AAA With Real Ratios
Accessibility · Updated 2026-11-24
W3C WCAG 2.2 requires at least 4.5:1 contrast for normal body text (Level AA), 3.0:1 for large text and UI component borders, and 7.0:1 for enhanced readability (Level AAA). Testing every brand color pair before launch catches unreadable buttons and muted metadata early.
Exact WCAG 2.2 contrast thresholds explained
WCAG 2.2 defines four numeric contrast floors depending on text size and element type. Meeting Level AA is the global baseline for legal accessibility compliance and readable everyday interfaces.
Large text under W3C WCAG 2.2 SC 1.4.3 means at least 18 pt (24 px) regular weight, or at least 14 pt (18.66 px) bold weight. Everything smaller than those thresholds counts as normal text and must hit 4.5:1.
| Element type | WCAG criterion | Minimum ratio | Recommended target |
|---|---|---|---|
| Normal body text and links | SC 1.4.3 (AA) | 4.5:1 | 7.0:1+ on long prose |
| Large headings (>= 24px or 18.66px bold) | SC 1.4.3 (AA) | 3.0:1 | 4.5:1+ |
| Enhanced normal text | SC 1.4.6 (AAA) | 7.0:1 | 10:1+ for dark ink on paper |
| Input borders, icons, focus rings | SC 1.4.11 (AA) | 3.0:1 | 3.5:1+ on resting inputs |
How relative luminance math produces a contrast ratio
WCAG contrast does not measure raw RGB distance. Instead, each 8-bit sRGB channel is divided by 255 and linearized: values at or below 0.04045 divide by 12.92, and higher values compute ((c + 0.055) / 1.055) raised to the 2.4 power.
Relative luminance L then weights green heavily because human eyes perceive green as far brighter than blue: L = 0.2126 * R + 0.7152 * G + 0.0722 * B. Pure black has L = 0 and pure white has L = 1.
The final contrast ratio equals (L_lighter + 0.05) / (L_darker + 0.05). Black on white yields 1.05 / 0.05 = 21.00:1, while mid-gray #767676 on white sits right above the AA floor at 4.54:1.
Real brand colors that silently fail AA contrast
Pure bright orange, yellow, lime green, and pale sky blue almost always fail WCAG AA when paired with white text. For example, #f59e0b amber with white text scores only 2.15:1, leaving mobile users squinting in outdoor sunlight.
Fixing a failing primary color rarely requires abandoning your brand hue. Darkening amber to #9a5b13 reaches 5.41:1 against white (passing WCAG AA cleanly), or swapping button text on #f59e0b from white to #0a1317 dark ink lifts contrast to 8.74:1 immediately.
Muted gray captions are the second most common failure. Light gray #94a3b8 on white scores just 2.56:1. Switching muted metadata to #445564 lifts contrast above 7.1:1 on both white and light off-white backgrounds.
Non-text contrast for inputs, buttons, and status badges
WCAG 2.2 SC 1.4.11 requires at least 3.0:1 contrast for user interface boundaries such as text input outlines, select boxes, and active toggle indicators against their surrounding canvas.
Putting pure white inputs with pale #e2e8f0 borders on a pure white background leaves borders at barely 1.23:1, making form fields disappear for low-vision visitors. Setting a calm #f6f8fb page canvas with #ffffff inputs and a #7c8da3 control border passes 3.0:1 cleanly without looking heavy.
Never rely on green or red color alone to signal pass or fail states. Pair every status color with explicit words such as Pass AA, Fail, Added, or Required.
How to fix failing contrast pairs without changing brand identity
Stakeholders often push back on accessibility fixes because they worry their signature color will vanish. In practice, shifting a color's lightness down by 8% to 12% preserves the exact hue family while pushing normal text contrast cleanly above 4.5:1.
Keep two separate usages documented in your style guide: a slightly deeper digital text shade for inline links and small labels, and your brighter accent shade for decorative dividers or large display headlines above 24 px where the WCAG 2.2 AA threshold is 3.0:1.
Audit every combination inside a full matrix before writing CSS. Checking foreground colors against pure white (#ffffff), your tinted surface (#f6f8fb), your primary button fill, and #121212 dark mode takes ten seconds in a browser calculator and prevents expensive retrofits after launch.
- Check primary links against both #ffffff and tinted table headers.
- Check white button text against primary and hover states separately.
- Check error and warning text against light tinted backgrounds, not only pure white.
Put these specifications to work immediately: Check your palette in the live WCAG contrast matrix.
Frequently asked questions
Do brand logos have to pass WCAG 2.2 contrast ratios?
Incidental logos and logotypes are technically exempt from WCAG 1.4.3, but keeping your navigation bar logo above 4.5:1 ensures visitors can still identify your site in bright sunlight and dark mode.
Is 4.5:1 enough for white text on a primary button?
Yes, 4.5:1 passes WCAG AA for normal button labels. Aiming for 5.5:1 to 7.0:1 gives extra safety margin on low-brightness mobile screens.
Does placeholder text need 4.5:1 contrast?
Yes. Placeholder text inside inputs counts as normal text under WCAG 1.4.3, so use at least #516173 on white inputs instead of pale silver.