lucky.graphics

guides

WCAG 2.2 AA: A Practical Accessibility Guide

WCAG 2.2 Level AA in practice: contrast math, keyboard and focus rules, 24px targets, reflow, forms, what changed from 2.1, and a release checklist.

Published
October 1, 2026
Updated
October 22, 2026
Topic
guides
Reading time
19 min
Review
Reviewed against the primary source

WCAG 2.2 AA: A Practical Accessibility Guide

Meeting WCAG 2.2 Level AA means your pages satisfy every Level A and Level AA success criterion in the W3C's Web Content Accessibility Guidelines 2.2. The numbers designers hit most often are 4.5:1 contrast for body text, 3:1 for large text and interface parts, 24 by 24 CSS pixel pointer targets, and layouts that work at 320 CSS pixels wide.

W3C first published WCAG 2.2 as a Recommendation on 5 October 2023, and the current dated version of the Recommendation is 12 December 2024. This page turns the criteria designers and front-end developers touch most into concrete checks, with worked examples and a release checklist. It is practical guidance on the published standard, not legal advice; what the law requires depends on where you operate and who you serve.

What "Level AA" actually means

WCAG sorts its success criteria into three levels. A page conforms at a level only when it meets every criterion at that level and every level below it.

LevelWhat it coversWho targets it
AThe minimum: keyboard access, text alternatives, no keyboard traps, no color-only meaningEvery site, as a floor
AAA plus contrast minimums, focus visibility, reflow, resizable text, target size, consistent navigationThe usual target for organizations and the level named in many regulations
AAAStricter contrast (7:1), larger targets (44 by 44), animation controlsApplied selectively; W3C does not recommend requiring AAA for entire sites because some content cannot meet every AAA criterion

The W3C conformance section puts it plainly: for Level AA, the page satisfies all the Level A and Level AA success criteria. So "we are AA" is a claim about every A and AA criterion together. A site with excellent contrast but a keyboard trap in its cookie banner does not conform at any level.

What changed between WCAG 2.1 and 2.2

W3C's "What's New in WCAG 2.2" page lists nine new success criteria and one removal. The table marks which new criteria apply at AA.

CriterionLevelPlain-language requirementApplies to an AA audit?
2.4.11 Focus Not Obscured (Minimum)AAA focused element is not entirely hidden by author content such as sticky headersYes
2.4.12 Focus Not Obscured (Enhanced)AAANo part of the focused element is hiddenNo
2.4.13 Focus AppearanceAAAFocus indicator at least as large as a 2 CSS pixel perimeter, with 3:1 change in contrastNo
2.5.7 Dragging MovementsAAAnything done by dragging can also be done with a single pointer without draggingYes
2.5.8 Target Size (Minimum)AAPointer targets at least 24 by 24 CSS pixels, or spaced, or covered by an exceptionYes
3.2.6 Consistent HelpAHelp mechanisms repeated across pages stay in the same relative orderYes
3.3.7 Redundant EntryAInformation already entered in a process is filled in or selectable, not retypedYes
3.3.8 Accessible Authentication (Minimum)AALogin does not demand a cognitive function test without an alternative or assistanceYes
3.3.9 Accessible Authentication (Enhanced)AAAStricter version with fewer exceptionsNo
4.1.1 ParsingRemovedW3C describes it as obsolete and removed from 2.2No longer tested

If your last audit was against 2.1 AA, the gap is six criteria: 2.4.11, 2.5.7, 2.5.8, 3.2.6, 3.3.7 and 3.3.8. W3C says the remaining 2.0 and 2.1 criteria are essentially the same in 2.2.

The four principles

WCAG groups its guidelines under four principles. They are useful as a quick test for a design decision that no specific criterion seems to cover.

  1. Perceivable: people can sense the content. Text alternatives, captions, enough contrast, text that resizes.
  2. Operable: people can use the interface with the input they have. Keyboard access, enough time, nothing that flashes dangerously, ways to find things.
  3. Understandable: people can follow the content and predict the interface. Clear labels, consistent navigation, help with errors.
  4. Robust: the official name of the fourth principle. Content works with browsers and assistive technology, which in practice means correct names, roles and states for every control.

Contrast, with the arithmetic

The thresholds

ContentMinimum ratioCriterionLevel
Body text and images of text4.5:11.4.3 Contrast (Minimum)AA
Large-scale text3:11.4.3AA
Interface components and required parts of graphics3:1 against adjacent colors1.4.11 Non-text ContrastAA
Body text, enhanced7:11.4.6AAA
Large text, enhanced4.5:11.4.6AAA

WCAG defines large-scale text as at least 18 point, or 14 point bold. In CSS terms that is 24px regular or about 18.66px bold, since one point is 1.333 CSS pixels. The Understanding document for 1.4.3 rounds the bold figure to about 18.5px.

Beyond the large-text allowance, 1.4.3 exempts incidental text (text in inactive components, pure decoration, invisible text, and text inside pictures with significant other visual content) and text that is part of a logo or brand name.

How the ratio is calculated

WCAG's glossary defines the ratio as (L1 + 0.05) / (L2 + 0.05), with L1 the relative luminance of the lighter color and L2 the darker, so results run from 1:1 for identical colors to 21:1 for black on white. Relative luminance comes from linearized sRGB channels weighted heavily toward green, which is why a saturated blue and a saturated yellow of similar "brightness" to the eye can land far apart. Our channel-by-channel contrast walkthrough works the arithmetic for one full color pair.

Worked example: choosing a link blue and a caption gray

A product team wants a blue for inline links and a gray for image captions, both on a white page (#FFFFFF, luminance 1.0). Our editorial team ran the candidates through the WCAG formula:

CandidateUseRelative luminanceRatio on whiteVerdict
#2563EBLink textabout 0.1535.17:1Passes for body-size links
#3B82F6Link textabout 0.2363.68:1Large text only, fails at 16px
#60A5FALink textabout 0.3632.54:1Fails everywhere as text
#4B5563Captionabout 0.0897.56:1Passes AA and AAA
#6B7280Captionabout 0.1674.83:1Passes AA with little margin
#9CA3AFCaptionabout 0.3642.54:1Fails, a common muted-text mistake
#949494Large headingabout 0.2963.03:1Passes as large text
#959595Large headingabout 0.3012.99:1Fails, one step lighter

The last two rows show that one step on each RGB channel can flip a result, and WCAG does not round: the 1.4.3 Understanding page states that 4.499:1 does not meet 4.5:1, and the same logic means 2.99:1 does not meet 3:1. Our contrast checker truncates ratios to two decimal places instead of rounding them, so #959595 (2.9953:1 unrounded) shows as 2.99:1 rather than 3.00:1, and a failing pair can never display as a pass. The link rows matter twice: the chosen blue must also differ from surrounding body text, either by an underline or by the 3:1 link-to-text contrast that technique G183 describes. Against body text in #1F2937, #2563EB measures only about 2.84:1, so on that page the links need underlines.

Where contrast fails in real designs

  • Muted secondary text. Captions, timestamps and helper text are content. They need 4.5:1 unless they are large.
  • Placeholder text is usually too light, and it disappears on input. Use a visible label and keep the placeholder optional.
  • Text over photos. The Understanding page for 1.4.3 lists background images without sufficient contrast as a documented failure (F83). Check the lightest area the text crosses and add a scrim if the image varies.
  • Input borders and icon buttons. A text field whose only boundary is a #E5E7EB border on white sits at about 1.24:1. If the border is the only way to find the field, 1.4.11 needs 3:1 against the adjacent color.
  • Dark mode. Pairs that pass on white often fail on near-black, or pass while looking glaring. The dark mode design guide covers choosing surface and text tones that hold up, and the accessible color systems guide shows how to build palettes where every token pair is pre-checked.

Color alone

1.4.1 Use of Color (Level A) says color must not be the only visual means of conveying information, indicating an action, prompting a response or distinguishing an element. The W3C Understanding page gives the sales example directly: "Mary's sales are in red, Tom's are in blue" needs a second cue. For links inside paragraphs, technique G183 accepts a color-only distinction when the link color has 3:1 contrast with the surrounding text; otherwise add an underline. Charts are where this rule bites hardest, and the chart color accessibility checklist applies it series by series.

If you have seen APCA mentioned as a replacement for the ratio, APCA versus WCAG contrast explains why the 2.2 ratio is still the test you can cite.

Text size, spacing and reflow

Three AA criteria decide whether your layout survives readers who enlarge text.

1.4.4 Resize Text: text can be resized up to 200 percent without assistive technology and without loss of content or function. Fixed-height containers with overflow: hidden are the usual culprit.

1.4.10 Reflow: content does not require scrolling in two directions at a width equivalent to 320 CSS pixels. The Understanding document explains the number: a 1280 CSS pixel desktop viewport zoomed to 400 percent is 320 CSS pixels wide. Data tables, maps, diagrams, video and games may scroll in two dimensions, but the rest of the page around them may not.

1.4.12 Text Spacing: nothing breaks when a reader's stylesheet sets line height to 1.5 times the font size, paragraph spacing to 2 times, letter spacing to 0.12 times and word spacing to 0.16 times. Research on letter spacing for readers with dyslexia, and on whether dyslexia-marketed fonts help at all, is covered in our dyslexia-friendly fonts guide.

Worked example: text spacing at 16px

For body text set at 16px, the 1.4.12 overrides come to:

PropertyMultiplierValue at 16px
line-height1.524px
Spacing after paragraphs232px
letter-spacing0.121.92px
word-spacing0.162.56px

Apply those values with a bookmarklet or a test stylesheet and look for clipped button labels, overlapping card text and truncated navigation. Sizing containers in rem and letting height grow with content prevents most failures; the px, rem and em units guide explains which unit to use where, and the type scale guide covers line-height choices that already sit near 1.5.

Keyboard access and focus

The rules

  • 2.1.1 Keyboard (A): all functionality works from a keyboard, without specific timings for keystrokes.
  • 2.1.2 No Keyboard Trap (A): if focus can move into a component with the keyboard, it can move out with the keyboard.
  • 2.4.1 Bypass Blocks (A): a way to skip repeated blocks. W3C lists a skip link at the top of the page (technique G1), ARIA landmarks (ARIA11) and headings at the start of sections (H69) as sufficient techniques.
  • 2.4.7 Focus Visible (AA): keyboard focus is visible. Removing outlines without a replacement is documented failure F78.
  • 2.4.11 Focus Not Obscured (Minimum) (AA): a focused element is not entirely hidden by content you added, such as a sticky header, footer or cookie banner.

Focus styles that pass

:focus-visible lets you show a strong ring for keyboard users without showing it on every mouse click. MDN lists it as Baseline widely available since March 2022, and notes that browsers still show focus on text inputs clicked with a mouse, because the field needs typing.

:focus-visible {
  outline: 3px solid #1D4ED8;
  outline-offset: 2px;
}

/* Keep focused items clear of a 64px sticky header */
html { scroll-padding-top: 72px; }

The focus ring is non-text content, so the Understanding page for 2.4.7 points to 1.4.11: the ring needs 3:1 against the colors next to it. A blue ring on a blue button fails even if it is thick. The scroll-padding-top line is technique C43 from the 2.4.11 Understanding page; it stops the browser scrolling focused items underneath a sticky header.

Modal dialogs

The WAI-ARIA Authoring Practices Guide dialog pattern is the reference behavior. When the dialog opens, focus moves inside it, usually to the first focusable element. Tab and Shift+Tab cycle within the dialog. Escape closes it. On close, focus returns to the element that opened it. The container has role="dialog", aria-modal="true" and a name from aria-labelledby pointing at its visible title. The APG adds that a dialog should only be marked modal when outside content is truly blocked and visually obscured.

Trapping focus inside an open modal is not a 2.1.2 failure, because Escape and the close button let the user leave.

Keyboard test script

Put the mouse aside and complete the site's main tasks with Tab, Shift+Tab, Enter, Space, Escape and the arrow keys. For each step, write down: could you see focus, did focus go somewhere sensible after each action, and could you leave every widget. The pass finds problems no automated scanner can judge, such as focus landing behind a menu after it closes.

Pointer targets and dragging

Target size: the 24px rule

2.5.8 Target Size (Minimum) asks for pointer targets of at least 24 by 24 CSS pixels. Smaller targets still pass under five exceptions: spacing, an equivalent control elsewhere on the page, inline links within text, size set by the browser and not modified, and presentations that are essential or legally required. The AAA criterion 2.5.5 asks for 44 by 44.

The spacing exception works like this, according to the Understanding document: draw a 24 CSS pixel diameter circle centered on each undersized target's bounding box. The target passes if its circle does not intersect another target or another undersized target's circle.

Worked example with stated inputs. A toolbar has 20 by 20 pixel icon buttons in a row.

Gap between buttonsDistance between centersCircles (radius 12)Result
2px22pxOverlap by 2pxFails 2.5.8
6px26px2px clearPasses by spacing
Buttons enlarged to 24 by 24 with 0 gapNot neededNot neededPasses on size

Making the clickable area 24 by 24 with padding while keeping a 20px icon is usually the simplest fix, and it helps touch users too. Text links inside a sentence are exempt under the inline exception. Our touch target size guide sets the 24 px rule beside Apple's 44 pt and Google's 48 dp, with the same circle test worked for 16 px icons.

Dragging

2.5.7 Dragging Movements requires a single-pointer alternative for anything done by dragging, unless dragging is essential. A sortable list can add up and down buttons; a range slider can accept a click on the track; a map can offer plus and minus buttons for zoom and arrow buttons for panning.

Structure and semantics

  • Headings in a logical outline, one main heading per page, with no skipped levels used for styling. Screen reader users move through pages by heading.
  • Landmarks: header, nav, main and footer let assistive technology jump between regions, and count toward 2.4.1.
  • Native controls first. A <button> gets focus, Enter and Space activation, and the button role for free. A clickable <div> needs all of that rebuilt.
  • Labels in code, not just on screen. 3.3.2 Labels or Instructions requires labels where input is needed; a <label for> association also gives voice-control users a name to say.
  • Data tables with real headers. Use <th> with scope, and a caption that says what the table holds.
  • Icon fonts and SVG icons need a text name when they are the only content of a control. The icon design principles guide covers when an icon needs a visible label as well.

Images, media and motion

  • Informative images get alt text that conveys their content and purpose. Decorative images get alt="" so screen readers skip them.
  • Charts and diagrams need a short alternative plus a long description, such as a data table or a summary in the text. W3C's complex images tutorial lists several ways to connect them, including <figure> with <figcaption>.
  • Video needs captions, and important visual information needs audio description or a transcript.
  • Moving content: 2.2.2 Pause, Stop, Hide (A) requires a pause, stop or hide control for automatic motion that lasts over five seconds alongside other content.
  • Flashing: 2.3.1 (A) forbids more than three flashes in any one second unless they stay below the flash thresholds.
  • Reduced motion: honoring prefers-reduced-motion is the AAA technique C39 for 2.3.3. Our animation performance guide shows how to write motion so the reduced version is the default.

Forms and sign-in

Forms collect more failures per square inch than any other component.

  • Visible labels tied to inputs. A placeholder is not a label.
  • Errors in text (3.3.1, A). When an error is detected automatically, identify the field and describe the problem in words, not just a red border. Connect the message to the field with aria-describedby, and for long forms summarize errors at the top with links to each field.
  • Required fields marked with text or a symbol explained in text, not color alone. W3C technique G205 covers this case.
  • Redundant Entry (3.3.7, A). If a checkout asks for a shipping address, the billing step offers "same as shipping" or fills it in. Exceptions cover re-entry that is essential, needed for security, or no longer valid.
  • Accessible Authentication (3.3.8, AA). Do not make people solve a cognitive function test, such as recalling a password or transcribing characters, unless an alternative method exists, a mechanism helps them, or the test is object recognition or personal content.
  • Consistent Help (3.2.6, A). If a contact link or chat button appears on many pages, keep it in the same relative order. The Understanding document states that the criterion does not require you to provide help at all; it only governs placement when you do.

The legal side, briefly

WCAG is a technical standard; laws decide where it is mandatory. Two examples with official sources:

  • United States, state and local government. The Department of Justice's ADA Title II web rule adopts WCAG 2.1 Level AA as the technical standard for public entities' web content and mobile apps. ADA.gov states that after an April 20, 2026 interim final rule, compliance dates are April 26, 2027 for entities serving 50,000 people or more, and April 26, 2028 for smaller entities and special district governments.
  • European Union. The European Commission's page on the European Accessibility Act lists covered products and services including e-commerce, banking services, e-books, smartphones, computers and operating systems, and transport services.

A page built to WCAG 2.2 AA covers every 2.1 AA criterion except 4.1.1 Parsing, which 2.2 dropped, so it already exceeds the Title II technical standard on everything else. Because private-sector rules and case law vary by country and sector, take specific questions to qualified counsel.

Testing: what each method catches

MethodGood atBlind to
Automated scanner (axe, Lighthouse, WAVE)Missing alt attributes, missing labels, contrast of plain text, invalid ARIAWhether alt text is accurate, focus order, keyboard traps in custom widgets
Keyboard-only passTraps, invisible focus, unreachable controls, odd focus orderScreen reader announcements
Screen reader passNames, roles, states, heading outline, error announcementsVisual contrast
Zoom and text-spacing passReflow, clipping, overlap at 400 percent and with 1.4.12 overridesSemantics
DevTools vision emulationColor-only meaning, weak contrast under color vision deficiencyEverything non-visual

Free screen readers cover the main desktop platforms: NV Access describes NVDA as 100 percent free for Windows, and Apple's VoiceOver guide describes VoiceOver as the screen reader built into macOS. Chrome's Rendering tab can emulate blurred vision, reduced contrast, protanopia, deuteranopia, tritanopia and achromatopsia, and can force prefers-reduced-motion and forced-colors.

Treat a scanner score as a lint result. A page can score well and still trap keyboard users inside a custom date picker.

Fixing an existing site: where to start

When a site has years of accessibility debt, order the work by how badly each failure blocks people. This is our editorial prioritization, not a W3C ranking.

PriorityFixWhy it comes first
1Keyboard traps and unreachable controlsPeople cannot finish tasks at all
2Invisible focus and focus hidden under sticky elementsPeople cannot see where they are
3Unlabeled form fields and color-only errorsPeople cannot submit or correct input
4Body text contrastAffects every page and every reader with low vision
5Heading outline and landmarksNavigation speed for screen reader users
6Alt text, captions, complex image descriptionsContent access, often page by page
7Target size and dragging alternativesNew in 2.2, often design-system level fixes

Fix shared components before individual pages. A focus style changed once in a design system repairs every page that uses it, which is why the design system guide treats accessibility as part of each component's definition.

Common mistakes

  • Adding ARIA to fix what native HTML already does. role="button" on a <button> adds nothing; role="button" on a <div> without keyboard handling makes things worse.
  • Using aria-label text that differs from the visible label, which breaks voice control commands that use the visible words.
  • Testing contrast only for the default state. Hover, visited, selected and disabled-looking states all need checking.
  • Hiding focus outlines globally with *:focus { outline: none } from an old reset stylesheet.
  • Sticky cookie banners that sit over the last focused elements on every page.
  • Treating 4.1.1 Parsing errors as WCAG 2.2 failures. It was removed; validate HTML for quality, not conformance.

Release checklist

  • Core tasks completed with keyboard only, focus always visible and never fully covered
  • Modals follow the APG dialog pattern, including Escape and focus return
  • Body text at 4.5:1 or better, large text and interface boundaries at 3:1, checked unrounded
  • No information carried by color alone
  • Pointer targets 24 by 24 CSS pixels or spaced to pass the circle test
  • Every dragging action has a single-pointer alternative
  • Page usable at 320 CSS pixels wide and with 1.4.12 text spacing applied
  • Form fields labeled, errors described in text and linked to fields
  • Previously entered data offered again in multi-step flows
  • Login works without memory or transcription tests, or offers an alternative
  • Auto-moving content over five seconds can be paused; nothing flashes more than three times a second
  • Screen reader spot check on NVDA or VoiceOver, plus an automated scan

Frequently asked questions

Does WCAG 2.2 conformance also cover WCAG 2.1?

Almost entirely. WCAG 2.2 keeps the 2.1 criteria, which W3C describes as essentially the same, removes 4.1.1 Parsing and adds nine new ones. If a contract or regulation names 2.1 specifically, check whether your auditor still expects a 4.1.1 result; everything else is covered by a 2.2 AA pass.

Is a focus indicator required to be a certain thickness at AA?

No. 2.4.7 at AA only requires focus to be visible, while the 1.4.11 contrast rule applies to the indicator's colors. The minimum area rule (a 2 CSS pixel perimeter) belongs to 2.4.13, which is AAA.

Do icons inside buttons need 3:1 contrast?

When the icon is the only thing identifying the control, yes: 1.4.11 covers graphics needed to understand the content. A decorative icon next to a text label does not need it, because the label carries the meaning.

Are disabled buttons exempt from contrast?

Yes, for text in inactive components under 1.4.3. That exemption does not cover controls that merely look disabled but still work, and it is good practice to explain why something is unavailable.

What does 24 by 24 mean on a high-density phone?

The size is in CSS pixels, not device pixels. A 24 CSS pixel target is 72 device pixels on a 3x screen, so the requirement scales with the device rather than shrinking on sharper displays.

Standards and official pages behind this guide

Data graphics raise contrast and color questions that body text never does: adjacent bars, thin lines and legends. Continue with accessible chart palettes, checked ratio by ratio for a worked palette with every ratio calculated.