Accessibility in UI/UX Design: A Practical Guide to WCAG
The accessibility decisions designers own: contrast, typography, focus states, touch targets, color use, forms, motion and annotations for developers, grounded in WCAG 2.2.
Quick answer
Accessible UI/UX design means making design decisions that let people of all abilities perceive and use a product. Designers own many of them: meeting WCAG contrast ratios (4.5:1 for normal text, 3:1 for large text and UI components at level AA), visible focus states, adequately sized touch targets, never using color alone to convey meaning, readable typography that scales, clear form labels and errors, restrained motion, and annotated reading order, labels and alt text for developers. Building these in from the start is far cheaper than fixing them later.
Design's Role in Accessibility
Developers implement accessibility, but many barriers are designed in: low-contrast text, invisible focus, tiny tap targets, color-only status indicators, placeholder-only labels. This guide covers the design decisions; the website accessibility guide covers implementation such as semantic HTML, keyboard support and screen readers.
WCAG in Brief
The W3C's WCAG 2.2 organizes requirements under four principles: perceivable, operable, understandable and robust. Level AA is the common target for business products. The design-relevant criteria are summarized below.
| Design area | WCAG guidance (level AA unless noted) |
|---|---|
| Text contrast | 4.5:1 for normal text; 3:1 for large text |
| UI and graphics contrast | 3:1 for component boundaries, states and meaningful graphics (1.4.11) |
| Use of color | Color isn't the only way information is conveyed (1.4.1, level A) |
| Text resize and reflow | Content works when text is enlarged and at narrow widths |
| Focus visible | Keyboard focus is visible, and not entirely hidden by sticky elements (2.4.11) |
| Target size | At least 24 by 24 CSS pixels, with exceptions (2.5.8) |
| Labels and instructions | Inputs have visible labels or instructions |
| Error identification | Errors are identified and described in text |
Color and Contrast
Check text and interface contrast as you pick the palette, not after. Pay special attention to placeholder text, disabled-looking elements that are actually active, text over images, and thin fonts. Non-text contrast applies to input borders, icons and focus indicators too. Pair color with text or icons for errors, statuses and charts.
Typography and Readability
Use readable sizes, adequate line height and line length, and clear heading hierarchy. Designs should survive users enlarging text: plan how layouts reflow rather than truncating or overlapping. Avoid long passages in all caps or light weights.
Focus States and Keyboard Use
Design a clear, consistent focus indicator for every interactive element, with enough contrast against its surroundings. Make sure sticky headers, cookie banners and chat widgets don't cover focused elements, which WCAG 2.2 addresses explicitly. Define a logical focus order in your annotations.
Want your designs reviewed for accessibility?
ZSpace reviews interfaces against WCAG and designs accessible components that meet the standard from the start.
Touch Targets and Interaction
Meet WCAG 2.2's 24 by 24 CSS pixel minimum and aim higher on mobile, where Apple and Google recommend around 44 points and 48 dp. Provide alternatives to complex gestures such as dragging or multi-finger swipes, and avoid time limits users can't extend.
Forms and Errors
Use visible labels, not placeholder-only fields. Group related inputs, mark required fields clearly, and write error messages that say what's wrong and how to fix it, placed next to the field. Don't clear the form after an error.
Motion and Media
Keep animation purposeful, avoid flashing content, and design reduced-motion alternatives that respect users' operating system settings. Plan captions for video and transcripts for audio, and ensure media controls are accessible.
Annotating for Developers
- Heading levels for each screen
- Reading order and focus order
- Accessible names for icon-only buttons
- Alternative text for meaningful images; decorative images marked
- Form labels, hints and error messages
- States: focus, error, disabled, selected, expanded
- Landmarks such as header, navigation, main and footer
Accessibility in the Design System
Bake accessibility into tokens and components: accessible color pairs, focus styles, minimum target sizes and error patterns. Then every screen built from the system inherits it. See design systems.
Best Practice vs Legal Requirements
This guide describes design best practice aligned with WCAG. Legal requirements differ by jurisdiction and sector, so confirm your obligations with qualified legal advice.
Building an accessible product from scratch?
Talk to ZSpace about UI/UX design with accessibility built into every component.
Conclusion
Many accessibility barriers are design decisions: contrast, focus, target size, color use, labels and motion. Design them in, annotate them for developers, and encode them in your design system. Then test with assistive technology and real users, as part of usability testing.
Common questions
Designing products that people with a wide range of abilities, including visual, motor, auditory and cognitive differences, can perceive, understand and use.