WCAG 2.1 · Level AA · Perceivable

WCAG 1.4.11 — Non-text Contrast, explained with examples

UI components (form borders, focus indicators, icons that convey meaning) must have at least a 3:1 contrast ratio against adjacent colors. You cannot interact with a button you cannot see. Subtle UI is fashionable but excludes users with low vision from finding form fields, focus rings, and active states.

Number
1.4.11
Level
AA
Principle
Perceivable
Guideline
1.4 Distinguishable

Why this criterion exists

You cannot interact with a button you cannot see. Subtle UI is fashionable but excludes users with low vision from finding form fields, focus rings, and active states.

If you only remember one thing: ui components (form borders, focus indicators, icons that convey meaning) must have at least a 3:1 contrast ratio against adjacent colors. Everything else on this page is detail.

Who feels it when this fails

Accessibility criteria sometimes feel abstract until you see who pays the cost when a site ignores them. Non-text Contrast affects:

  • Low-vision users locating interactive controls

  • All users in bright environments

How sites typically fail it

These are the patterns we see week after week. None are intentional — they are accidents of how teams build interfaces under deadline. Knowing the failure modes is the fastest path to writing them out of your component library.

  • Form input borders too faint to distinguish from background

  • Focus rings with insufficient contrast (light blue on white)

  • Icon-only navigation with low-contrast icons

  • Active/inactive tab states distinguished only by subtle hue

How to test for it

  • Measure UI element borders with a contrast checker.

  • Tab through the page; the focus ring must be clearly visible on every background.

Automated scanners catch this criterion most of the time, but never all of the time. Manual testing with the keyboard and a screen reader closes the gap.

A code fix you can copy

Borders and focus rings need 3:1 minimum. focus-visible avoids showing the ring on mouse click while keeping it for keyboard users.

The problem

CSS
input { border: 1px solid #ddd; }
button:focus { outline: 1px solid #b6d7ff; }

The fix

CSS
input { border: 1px solid #94a3b8; } /* 3.4:1 vs white */
button:focus-visible { outline: 2px solid #0891b2; outline-offset: 2px; }

Borders and focus rings need 3:1 minimum. focus-visible avoids showing the ring on mouse click while keeping it for keyboard users.

Frequently asked questions

What is the difference between 1.4.3 and 1.4.11?

WCAG 1.4.3 covers text contrast (4.5:1 for regular text, 3:1 for large text). WCAG 1.4.11 covers non-text contrast — UI components and graphical objects that convey meaning, at a minimum 3:1 ratio. A form field border, a checkbox tick, a progress bar fill, and an icon that conveys meaning all fall under 1.4.11 rather than 1.4.3.

Do placeholder text colours need to meet 1.4.11 or 1.4.3?

Placeholder text is text, so 1.4.3 applies. However, placeholder text also often serves as a de facto label — which raises a separate 3.3.2 concern. In practice, placeholder text should meet 4.5:1 and be supplemented with a real visible label so users are not relying on it for context while typing.

What counts as a UI component under 1.4.11?

Any interactive control whose boundary or state must be perceived to operate it. This includes input field borders, checkbox and radio outlines, toggle switch tracks, tab active indicators, focus rings, and icons that are the only indicator of meaning. It does not include decorative visual flourishes whose removal would not change what a user understands about the control.

Is the default browser focus ring WCAG compliant?

Most modern browsers ship a high-contrast focus ring that passes 1.4.11. The problem is teams overriding it with outline:none. When you remove the default ring, you take on the full responsibility of replacing it with a ring that passes 3:1 against every background on the page — which is trickier than it sounds when you have light and dark sections.

Other Perceivable criteria

Find every accessibility issue on your site in 60 seconds.

Free public scan. No card. AI-generated fixes for every issue we find.