Most designers know that text needs a 4.5:1 contrast ratio for WCAG AA compliance. Fewer know that buttons, form fields, icons, and focus indicators have their own contrast requirement under a separate criterion — and that this requirement is frequently violated even on products that pass basic text contrast checks.

Criterion 1.4.11 — Non-text Contrast

WCAG 2.2 criterion 1.4.11 (Non-text Contrast, Level AA) requires that the visual presentation of user interface components and graphical objects achieve at least 3:1 contrast against adjacent colors. This applies to any UI element that users need to identify and interact with:

The criterion applies to each visual indicator that communicates the nature, state, or boundaries of the component — not to the entire element as a visual object.

What "adjacent color" means in practice

The contrast ratio is measured between the component's visual indicator and the color immediately surrounding it. For a button, this means:

Ghost buttons — buttons with only a thin border and transparent fill — must have that border achieve 3:1 against the page background. A subtle border on a ghost button is one of the most common 1.4.11 failures.

Focus indicators — criterion 2.4.11 (WCAG 2.2 addition)

WCAG 2.2 added criterion 2.4.11 (Focus Appearance, Level AA) which specifies requirements for keyboard focus indicators. To pass, the focus indicator must:

This means a 2px solid focus ring that is a different color from the background typically passes if the color change achieves 3:1. A 1px dotted outline in a subtle grey almost never passes. The default browser focus indicator often passes in 2024+ browser versions, but custom focus styles reset to thin outlines frequently fail.

Common button contrast failures

These are the patterns most often flagged in UI component audits:

How to fix button and UI contrast failures

The 3:1 threshold is considerably easier to achieve than the 4.5:1 text requirement. For most failures, a minor adjustment resolves the issue: