Non-Text Contrast for UI Components
Passing text contrast is not enough. WCAG 1.4.11 requires 3:1 contrast for control boundaries and states, and the GOV.UK Design System shows how focus styles stay readable on any background.
A contact form looks polished in the mockup: pale borders, soft icons, a focus ring that barely lifts from the page. Text labels may still pass WCAG 1.4.3. The controls themselves may not. People with moderately low vision need more than readable copy—they need to see that a field, checkbox, or selected state is there and how it has changed.
WCAG 2.2 Success Criterion 1.4.11 Non-text Contrast (Level AA) sets a 3:1 contrast ratio for the visual information used to identify user interface components and their states. The GOV.UK Design System turns that rule into a practical focus pattern—yellow plus black—so keyboard users can find the active control on any background colour used on GOV.UK.
Why pale UI fails after the type passes
Service sites often polish typography first and leave interactive chrome soft: light grey input borders on white, ghost buttons that rely on a faint outline, or a yellow focus glow that disappears on a cream section. The page can still look “clean” in a high-contrast designer display while remaining hard to parse for visitors who need stronger edges.
WCAG’s Understanding document for 1.4.11 states the intent clearly: active controls and meaningful graphics should be distinguishable by people with moderately low vision, with requirements similar in spirit to large-text contrast under 1.4.3. Inactive components are exempt. The threshold is firm—computed ratios must not be rounded up; 2.999:1 does not meet 3:1.
On a typical service homepage or inquiry form, the failure modes are concrete:
- Invisible hit areas — Borders so light they vanish against the page, with no other cue that an empty field is a control.
- State without shape — Selected radios, open menus, or checked boxes that change only a soft hue.
- Focus that fails the background — An author-styled ring that contrasts with the button fill but not with the surrounding page (or the reverse).
What 1.4.11 actually requires
The criterion covers two families of content:
- User interface components — Visual information required to identify controls and states, except inactive components or appearance left entirely to the user agent.
- Graphical objects — Parts of graphics required to understand the content (unless a particular presentation is essential).
For controls, Understanding 1.4.11 explains several mechanisms that matter in studio work:
- Boundaries are conditional. A visible hit-area border is required only when there is no other visual way to identify the control. If text or a sufficiently contrasting icon already marks the control, a border is not mandatory under this SC—though it remains a cognitive-accessibility best practice to delineate controls clearly.
- States must stay identifiable. Checks in checkboxes, arrows that show a menu is open, and other non-text state indicators need 3:1 against their adjacent colours. Adjacent colour may be inside the component (for example, a check against the checkbox fill).
- Focus works with 2.4.7 Focus Visible. When authors style focus, the indicator must meet 3:1 against the adjacent background. Indicators outside the control are judged against the page; indicators inside are judged against neighbouring colours within the control; borders that sit on the edge may need to work with both sides depending on placement.
A short analogy: readable street names (text contrast) do not help if the curb cuts and crosswalk markings disappear into the asphalt (non-text contrast).
| UI cue | Weak pattern | Stronger pattern |
|---|---|---|
| Input boundary | #E5E5E5 border on white | Darker border (≥3:1) or other clear identification |
| Checkbox / radio state | Soft fill change only | Check or inner mark with ≥3:1 to adjacent fill |
| Icon-only control | Low-contrast glyph | Icon that meets Graphical Objects / UI contrast |
| Focus | Pale outline lost on light sections | Dual-contrast focus (light + dark cues) |
How GOV.UK operationalises the same rule
The GOV.UK Design System’s focus-state guidance states that its focus styles use a combination of yellow and black, with a thick bottom border, specifically to meet WCAG 2.2 SC 1.4.11 on any background colour used on GOV.UK. Yellow provides high contrast on dark surfaces; the thick black border provides high contrast on light surfaces.
On the Design System colour page, functional tokens include focus #ffdd00 (reserved for focus indication) and focus-text #0b0c0c, plus a strong input-border of #0b0c0c. Links in focus get a yellow background with a black bottom border; form inputs get a yellow outline and a thicker black border. Radios and checkboxes reuse that input focus pattern.
That is a useful studio transfer—not because every business site should copy the GOV.UK palette, but because the mechanism is portable: pair a light high-luminance cue with a dark high-luminance cue so focus survives both light marketing sections and dark hero bands. GOV.UK’s colour guidance separately reminds teams that text still needs 1.4.3 (typically 4.5:1 for normal text); non-text contrast does not replace text contrast.
Limits worth stating
SC 1.4.11 does not demand that every hover or visited-link colour differ from its default by 3:1 when those states do not appear side by side. It does require that the control remain identifiable against adjacent colours, and that non-text state marks (checks, arrows, focus) clear the threshold. Browser-default appearance that authors do not modify is out of scope; once you restyle focus or borders, the author-controlled presentation is in scope.
Passing 1.4.11 also does not guarantee a usable form. Labels, error text, target size, and keyboard order still decide whether someone can complete an inquiry. Contrast is necessary visibility, not a full UX score.
“If visitors cannot see the control or its state, the offer never gets a fair chance—contrast for chrome is part of service design, not a late accessibility patch.”
— Windware Studio Practice Note
Practical takeaways for your next website
- Audit interactive chrome on light and dark sections: inputs, buttons, toggles, cards-as-controls, and icon-only actions.
- Measure adjacent colours for borders, checks, and focus rings at 3:1—do not round near-misses.
- Decide how each control is identified: text, icon, or boundary; only then style borders and states.
- Design focus as a dual cue (light + dark) so it survives every background in the system—following the GOV.UK yellow/black idea even if your hex values differ.
- Keep text contrast separate: labels and button text still need 1.4.3; non-text contrast covers the rest of the control.
The next step is systemic: bake non-text contrast into the design tokens for borders, focus, and selected states so marketing themes cannot quietly undo them.
Ready to Discuss Your Website?
If you are planning a new website, a service redesign, or custom development for your business, we’re here to help shape the work.
- Explore Our Services: Web Design · Web Development · Website Redesign
- Start a Conversation: Tell us about your project via our Contact Form or email us directly at
[email protected].