Find a course

Module 4: Visual and Inclusive DesignLesson 9 of 1214 min

Accessibility and Inclusive Design

Learn who benefits from accessible design, the four WCAG principles, how to check color contrast, and habits for keyboards, screen readers and alt text.

Step 1 of 13Learn

Designing for everyone

The World Health Organization estimates that about 1.3 billion people, roughly one in six worldwide, live with a significant disability. They include people who are blind or have low vision, people who are deaf or hard of hearing, people with motor impairments who can't use a mouse, and people with cognitive or learning disabilities.

Accessibility means designing so that all of them can perceive, understand, navigate and interact with your product. It's a legal requirement in many countries and contexts, and it's also simply good design, because disability isn't only permanent. Microsoft's inclusive design work describes a spectrum:

  • Permanent: a person with one arm.
  • Temporary: a person with a broken wrist.
  • Situational: a parent holding a baby in one arm.

All three need a product that works with one hand. Captions help deaf users, and also people watching video on a silent train. High contrast helps people with low vision, and also anyone using a phone in bright sunlight. This effect, where accessibility features help many more people than expected, is sometimes called the curb-cut effect, after the sidewalk ramps built for wheelchair users that also help people with strollers, suitcases and bikes.

Accessibility works best built in from the start. Retrofitting it after launch is slower, more expensive and usually less effective.

Step 2 of 13Practice · Sort into groups

Classify each user situation.

Tap an item, then tap its group (or drag it there).

Step 3 of 13Compare

Permanent, temporary, situational

AspectPermanentTemporarySituational
SeeingBlind or low visionRecovering from eye surgeryBright sun on the screen
HearingDeaf or hard of hearingEar infectionLoud train, or a sleeping baby nearby
Using handsLimb difference or paralysisArm in a castHolding a coffee or a child
Design that helps all threeScreen reader support, captions, large targetsThe same featuresThe same features

Step 4 of 13Learn

WCAG and its four principles

The Web Content Accessibility Guidelines (WCAG), published by the World Wide Web Consortium (W3C), are the international standard for digital accessibility. Version 2.2 was published in 2023. Many laws and policies reference WCAG, often requiring conformance at level AA, the middle of three levels (A, AA, AAA).

WCAG is organized under four principles, remembered as POUR:

  1. Perceivable: users must be able to perceive the information. Provide text alternatives for images, captions for video, and enough color contrast; don't rely on color alone.
  2. Operable: users must be able to operate the interface. Everything must work with a keyboard, users need enough time to read and act, nothing should flash in ways that can trigger seizures, and navigation should be clear.
  3. Understandable: information and operation must be understandable. Use clear language, predictable behavior, and help users avoid and fix errors.
  4. Robust: content must work reliably with a wide range of technologies, including assistive technologies such as screen readers. In practice this means well-structured, standards-compliant code.

Under each principle sit testable success criteria, such as "text has a contrast ratio of at least 4.5:1." UX designers don't need to memorize them all, but they should know the most common ones and design with them from the first sketch.

Step 5 of 13Diagram

WCAG's four principles (POUR)

WCAG's four principles (POUR)Parts diagram: WCAG, Perceivable, Operable, Understandable, Robust.WCAGPerceivableOperableUnderstandableRobust

Tap a shape with to see more.

WCAG
Perceivable

People can sense the content: text alternatives, captions, enough contrast.

Operable

People can use every control: keyboard access, enough time, no flashing that can trigger seizures.

Understandable

Content and behavior are clear and predictable; forms help people avoid and fix errors.

Robust

Works with browsers and assistive technologies, now and as they change.

Step 6 of 13Practice · Match the pairs

Match each requirement to its WCAG principle.

Tap an answer, then tap the place where it belongs (or drag it there).

  1. Images have text alternatives
  2. All functions work using only a keyboard
  3. Error messages explain how to fix the problem
  4. Code works correctly with screen readers

Step 7 of 13Learn

Measuring color contrast

Contrast ratio measures how different the brightness of text is from its background. It ranges from 1:1 (identical colors, invisible text) to 21:1 (black on white).

The formula uses each color's relative luminance, L, a value from 0 (black) to 1 (white) calculated from its red, green and blue values:

Contrast ratio = (L_lighter + 0.05) ÷ (L_darker + 0.05)

The 0.05 accounts for ambient light reflecting off the screen.

WCAG level AA requires:

  • 4.5:1 for normal body text.
  • 3:1 for large text (about 24 px regular, or about 18.5 px bold, and larger).
  • 3:1 for meaningful non-text elements, such as input borders, icons and focus indicators.

Level AAA raises the text thresholds to 7:1 and 4.5:1.

You don't calculate luminance by hand. Design tools, browser developer tools and free online contrast checkers do it instantly. But knowing the thresholds helps you choose colors from the start. Light gray text such as #999999 on white has a ratio of about 2.8:1 and fails for body text. Darker gray such as #767676 on white is about 4.5:1, right at the threshold, and #595959 is around 7:1.

Placeholder text in input fields is a frequent failure: it's usually very light gray. Another is white text on bright brand colors like yellow or light green.

Step 8 of 13Try the calculator

Contrast ratio calculator

Enter the relative luminance (0 to 1) of the text and background colors. A contrast checker tool reports luminance, or you can use these examples: white = 1, black = 0, mid-gray #777777 is about 0.18.

Contrast ratio (x:1)
4.57
Margin over 4.5:1 normal-text minimum
0.07
Margin over 3:1 large-text minimum
1.57

Step 9 of 13Practice · Work it out

White text (luminance 1.0) sits on a blue background with luminance 0.2. What is the contrast ratio? Give the first number of the ratio x:1, to one decimal place.

Step 10 of 13Practice · Diagram

Where contrast ratios land

Tap the minimum contrast for normal-size body text at WCAG level AA.

Tap the shape that answers the question, then press Check.

Where contrast ratios landScale: #999 gray on white (~2.8), 3:1 large text (AA), 4.5:1 body text (AA), 7:1 body text (AAA), Black on white (21:1).2.557.51012.51517.5202.8 :1#999 gray on white(~2.8)3 :13:1 large text (AA)4.5 :14.5:1 body text (AA)7 :17:1 body text (AAA)21 :1Black on white(21:1)
#999 gray on white (~2.8)

A popular 'subtle' gray that fails even for large text.

3:1 large text (AA)

Minimum for large text (about 24 px, or 19 px bold) and for icons and input borders.

4.5:1 body text (AA)

The minimum most laws and policies point to for normal text.

7:1 body text (AAA)

The stricter enhanced level.

Black on white (21:1)

The maximum possible contrast.

Step 11 of 13Learn

Keyboards, screen readers and alt text

Contrast is only one part of accessibility. Several other habits cover most common barriers.

Keyboard access. Many people navigate with a keyboard (Tab to move, Enter or Space to activate) because of motor impairments or because they use a screen reader. Every interactive element must be reachable in a logical order, and the currently focused element needs a visible focus indicator. Removing the focus outline for looks is one of the most damaging common mistakes.

Screen readers read the page aloud or output it to a braille display. They rely on structure: real headings in order, lists, labeled form fields, buttons that are actual buttons. A clickable element built from a generic container may look like a button but be silent to a screen reader.

Alternative text (alt text) describes images for people who can't see them. Good alt text conveys the image's purpose in context: for a product photo, "Blue waterproof hiking boot, side view"; for a chart, the key takeaway. Decorative images that add no information should have empty alt text so screen readers skip them. Avoid "image of" and never stuff alt text with keywords.

Captions and transcripts for audio and video. Clear link text: "Download the 2026 timetable (PDF)" instead of "click here." Target size: WCAG 2.2 AA requires most targets to be at least 24 by 24 CSS pixels or spaced well apart, and larger is better.

Step 12 of 13Practice · Choose one

An online store shows a photo of a red rain jacket. Which alt text is best?

Step 13 of 13Practice · What would you do?

What would you do?

A developer removes the outline that appears around buttons and links when they are focused, saying it "looks ugly." What should the designer do?