Skip to content

Plain guides to WCAG, alt text and screen readers

Contrast checker

Accessibility basics

Accessibility in web design: the WCAG decisions designers own

The WCAG decisions designers own: color, type, focus, layout, forms and motion.

  • Contrast
  • Focus states
  • Reflow
  • Checked 3 Nov 2026

Accessibility in web design means choosing colors, type, layouts, controls and motion that disabled people can perceive and operate, and the design stage is where most WCAG problems are cheapest to prevent. A low contrast palette or a form with placeholder-only labels can be fixed in minutes in a mockup, and takes a sprint once it is built into fifty templates.

This guide goes through the parts of WCAG that sit with designers, gives the numbers to design to, and shows what to hand over so developers build it right.

Quick facts

  • Text contrast

    4.5:1 for normal text, 3:1 for large text (WCAG 1.4.3)
  • Controls and icons

    3:1 against neighbouring colors (WCAG 1.4.11)
  • Narrow screens

    Content works at 320 CSS px wide without sideways scrolling (1.4.10)
  • Targets

    At least 24 by 24 CSS px, or enough space around them (2.5.8)
  • Focus

    A visible indicator on every interactive element, never hidden by sticky bars
  • Who it helps

    Blind, low vision, color blind, deaf, motor and cognitive disabilities, and older users

Why accessibility in web design matters

Disabled people are a large share of every audience, and many more people have temporary or situational limits: a broken wrist, a phone in bright sun, a noisy train, a slow connection, tired eyes late at night. Designs that work for them work better for everyone.

There are hard reasons too. Laws in the US, the EU, the UK, India and elsewhere expect WCAG AA (see ADA website compliance). Clear structure and real text help search engines. And every barrier a designer prevents is one a developer never has to fix later.

WCAG meaning in design: the criteria designers own

Spelled out, WCAG is the set of Web Content Accessibility Guidelines. In design, it is the checklist behind many visual and interaction decisions. These are the ones that start in a design file:

Design decisionWCAG criterionWhat to aim for
Text color1.4.3 (AA)4.5:1, or 3:1 for large text
Borders, icons, chart lines1.4.11 (AA)At least 3:1 beside neighbouring colors
Color as meaning1.4.1 (A)Add text, icons or underlines
Focus style2.4.7 (AA)Clearly visible on every control
Sticky headers and banners2.4.11 (AA)Never fully cover the focused item
Button and link size2.5.8 (AA)24 CSS px square, or spaced apart
Responsive layout1.4.10 (AA)Works at 320 CSS px wide
Line and letter spacing1.4.12 (AA)Nothing clips when users widen spacing
Carousels and animation2.2.2 (A)A visible pause control
Field labels3.3.2 (A)Visible labels, not placeholder text

The full list, with filters for level and version, is in our WCAG checklist.

Color and contrast choices

Contrast is the most common failure on the web, and it is entirely a design decision. Test text and background pairs with our contrast checker; for the rules behind the numbers see contrast ratio rules.

  • Mid grey #767676 is the lightest grey that passes 4.5:1 on white; anything paler fails for body text.
  • Placeholder text, disabled-looking buttons that are actually active, and text over photos are frequent failures.
  • Input borders and icon-only buttons need 3:1 so people can find them.
  • Never use color alone for meaning: an error field needs a message and an icon, not just a red border. The rule is 1.4.1.

WCAG responsive design: type, spacing and reflow

A CSS pixel is the unit browsers use for layout, not a physical screen pixel. WCAG asks that content works at 320 CSS px wide, which is what a 1280 px wide window shows at 400 percent zoom. Low vision users rely on this.

  • Design a single column version of every template and check that nothing is cut off or overlaps.
  • Avoid fixed heights on boxes that hold text; text spacing changes and larger fonts will overflow them.
  • Use real text instead of images of text, so it can zoom, reflow and be read aloud.
  • Keep line length moderate and body text at a comfortable size; WCAG sets no minimum font size, but users notice.

Details live on our pages for reflow (1.4.10) and text spacing (1.4.12).

Focus, targets and interaction states

Keyboard users need to see where they are. Design a focus state for every interactive element with the same care as the hover state, for example a thick outline whose color reaches 3:1 next to the surrounding colors. Check that sticky headers, cookie banners and chat buttons never cover the focused item.

Tap and click targets should measure 24 CSS px each way or more, and small links in a row need room between them. Tooltips and menus that appear on hover must stay open as the pointer travels over them, and close with Esc. Our pages on visible focus (2.4.7) and target size (2.5.8) go further.

Motion, media and reduced motion

Autoplaying carousels and background videos distract some users and can make others feel ill. Anything that moves for more than five seconds next to other content needs a visible pause button. Also respect the operating system setting that asks for less motion:

@media (prefers-reduced-motion: reduce) {
  .hero-slider { animation: none; }
  .card { transition: none; }
}

Plan captions and transcripts while you design the media player, not after launch.

Handing designs to developers

Most accessibility gets lost between the design file and the code. Add annotations for:

  • heading levels and landmarks (header, nav, main, footer);
  • the reading and focus order where it is not obvious;
  • alt text for informative images and a note for decorative ones (see alt text);
  • the accessible name of every icon-only button;
  • what screen readers should announce after an action, such as "Item added".

Test a clickable prototype with the keyboard before development starts, then check the built page with the methods on our accessibility testing page. W3C's WCAG 2.2 quick reference can be filtered to show only design-related techniques.

Questions people ask

Why is accessibility important in web design?

Design decides contrast, layout, focus states and many other things that make a site usable or unusable for disabled people. Fixing them in design is far cheaper than after launch, and laws in many countries expect WCAG AA.

What does WCAG stand for in design?

In full: Web Content Accessibility Guidelines, the accessibility standard W3C publishes for web content. For designers it sets numbers such as contrast ratios, target sizes and the width at which layouts must still work.

Is WCAG only for developers?

No. Many criteria start with design decisions, such as color contrast, visible labels, focus styles and motion. Content editors also own alt text, headings and link text.

Do accessible designs have to look plain?

No. Accessible sites can be bold and colorful. The limits are specific, such as contrast ratios and visible focus, and good designers treat them like any other brief.

What contrast do buttons need under WCAG?

Text on a button needs 4.5:1, or 3:1 if it is large. The button's shape, if it is the only thing that shows it is a button, needs 3:1 against the background around it.

What are the WCAG design guidelines for mobile?

The same WCAG criteria apply. Pay special attention to target size, reflow, orientation, and gestures that need a simple alternative such as a button.