Sub topic 1
What accessibility means: WCAG, POUR and conformance levels
Prerequisites
This chapter assumes you have:
- Basic familiarity with wireframing or UI design tools.
- Working knowledge of common UI components such as forms, navigation and buttons.
- A basic understanding of how web pages are built from HTML and CSS.
You do not need to know ARIA or any testing tools yet. Later chapters introduce them where they matter.
Why this chapter comes first
Every later chapter in this tutorial makes a design decision: a heading outline, a focus order, a contrast pair, an error message. Each decision is judged against the same standard. This chapter introduces that standard, the vocabulary used to discuss it, and the way it is organized, so that later rules make sense as parts of one system.
Accessibility means that people with a wide range of abilities, devices and situations can perceive, operate and understand your product. It is a quality of the design, like performance or security. It is not a separate "accessible version" added at the end.
WCAG in one paragraph
The Web Content Accessibility Guidelines (WCAG) are the most widely used accessibility standard for web content. The World Wide Web Consortium (W3C) publishes them. Versions 2.0, 2.1 and 2.2 exist, and each later version adds to the earlier one without removing requirements. This tutorial targets WCAG 2.2 because it adds criteria that matter at wireframe time, such as Target Size (Minimum) and Focus Not Obscured.
WCAG is built from three layers:
- Principles. Four broad goals, described in the next section.
- Guidelines. Goals within each principle, for example "Text alternatives" or "Keyboard accessible".
- Success criteria. Specific, testable statements, each with a level (A, AA or AAA). A success criterion is the unit you actually check a design against.
Each success criterion is numbered. For example, 1.4.3 is Contrast (Minimum). The first digit is the principle, the second is the guideline within it, and the third is the criterion.
The four principles: POUR
The principles form the acronym POUR. Each principle names a way a product can fail a person.
| Principle | Question it asks | Example failure | Wireframe-stage example |
|---|---|---|---|
| Perceivable | Can people take in the information with the senses they have? | A chart conveys data only through color | Plan a text alternative and a non-color cue for the chart |
| Operable | Can people use every control with the input method they have? | A menu opens only on mouse hover | Specify keyboard behavior for the menu |
| Understandable | Can people predict what happens and recover from mistakes? | An error says "Invalid input" with no detail | Write the specific error text into the form spec |
| Robust | Does the content work with browsers and assistive technology, now and later? | A custom control exposes no name or role | Choose a native element for the control |
Failures often cross principles. A placeholder-only form field is a perceivability problem, because the label disappears when the user types. It is also an understandability problem, because the user can no longer check what the field asks for.
Perceivable
Perceivable content can be presented in ways users can sense. A user may see, hear, or feel it through braille. Typical design consequences are text alternatives for images, captions for video, sufficient contrast, and information that does not depend on color, shape or position alone.
Operable
Operable means that every function works without a specific input device. Keyboard access is the baseline, because many other input methods (switch devices, voice control, screen readers) behave like a keyboard at some level. Operable also covers enough time, no content that triggers seizures, clear navigation, and pointer targets large enough to hit.
Understandable
Understandable means readable, predictable and forgiving. Navigation appears in the same place across pages. Controls behave the way their labels suggest. Forms tell users what is expected and help them correct mistakes.
Robust
Robust means the content is built so that browsers and assistive technology can interpret it reliably. In practice, this is mostly a handoff concern: use native HTML elements, which already carry correct roles and states, before reaching for custom widgets. The final chapters return to this.
Conformance levels: A, AA and AAA
Each success criterion belongs to one of three levels.
| Level | Meaning | Typical examples |
|---|---|---|
| A | The minimum. Without it, some users cannot use the content at all. | Text alternatives for images, keyboard operability, no keyboard traps |
| AA | The common target. It removes the most frequent barriers for most users. | 4.5:1 text contrast, 3:1 contrast for UI components, reflow at 320 CSS pixels, Target Size (Minimum) |
| AAA | The highest level. Some criteria cannot be met for all content. | 7:1 text contrast, sign language for video, reading level support |
To claim conformance at a level, a page must meet every criterion at that level and every level below it. Conformance to AA means all A and all AA criteria. You cannot claim AA by meeting only some of the AA criteria.
Which level to aim for
AA is the usual target. Many laws and procurement rules reference WCAG AA, for example the European Accessibility Act through the EN 301 549 standard, and Section 508 in the United States. Check the rules that apply to your product and region, because requirements differ by sector and jurisdiction.
AAA is not normally set as a whole-site goal. The W3C itself notes that it is not possible to satisfy every AAA criterion for all content. Still, you can adopt individual AAA criteria where they are cheap. For example, a wireframe can specify 7:1 contrast for body text without any extra cost.
A concrete anchor: contrast
Contrast is a good example because it shows how a success criterion becomes a number. WCAG 1.4.3 (AA) requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text. Success criterion 1.4.11 (AA) requires 3:1 for UI components and meaningful graphics.
The ratio comes from the relative luminance of the two colors. This function computes it, so you can check any pair:
function channel(value) {
const s = value / 255;
return s <= 0.03928 ? s / 12.92 : Math.pow((s + 0.055) / 1.055, 2.4);
}
function luminance([r, g, b]) {
return 0.2126 * channel(r) + 0.7152 * channel(g) + 0.0722 * channel(b);
}
function contrastRatio(rgbA, rgbB) {
const [light, dark] = [luminance(rgbA), luminance(rgbB)].sort((a, b) => b - a);
return (light + 0.05) / (dark + 0.05);
}
// Black on white gives 21. Normal text needs at least 4.5.
console.log(contrastRatio([0, 0, 0], [255, 255, 255]));Run it with Node.js and you get 21. The maximum possible ratio is 21:1 and the minimum is 1:1. The chapter on color returns to this function in more detail. For now, the point is that "enough contrast" is not a matter of taste. The standard defines it and you can test it.
How the standard is built, and what it does not tell you
Three properties of WCAG shape how you use it.
- Criteria are testable statements, not design recipes. WCAG says that text needs 4.5:1 contrast. It does not say which palette to use. The design work is yours.
- Passing is necessary, not sufficient. A page can meet every criterion and still be hard to use. Usability testing with disabled people finds problems that a checklist cannot.
- Automated tools find only part of the problems. Tools can detect missing alt attributes and low contrast. They cannot judge whether alt text is meaningful or whether a focus order makes sense. Many criteria need human judgment.
Because of the second and third points, a design process needs both checks against criteria and testing with people. The last chapters of this tutorial cover early checks on low-fidelity designs.
Common errors at this stage
These are the misunderstandings that most often cause trouble later.
- Treating accessibility as only for blind users. WCAG covers vision, hearing, motor, cognitive and speech needs. The next chapter looks at these groups.
- Treating AA as a goal to reach after launch. Structure and interaction are cheapest to change in a wireframe. Fixing a missing heading hierarchy or an unreachable menu after build means rework in design, code and tests.
- Assuming an overlay or plugin makes a site conformant. Tools that inject fixes at runtime cannot repair a design with the wrong structure or a missing interaction model.
- Confusing levels with priorities. AA is not "less important" than A. It is a further set of requirements. A page that fails an A criterion fails conformance at every level.
- Equating "tested with a tool" with "accessible". See the previous section.
How the principles map to the rest of this tutorial
The remaining chapters apply POUR to wireframe decisions. The diagram shows where each topic sits.
Some topics fit more than one branch. Headings and landmarks help users understand a page and also help assistive technology expose it. The grouping is a memory aid, not a strict classification.
A quick check you can do today
Take any wireframe you have and ask one question per principle:
- Perceivable: Is any information carried by color, position or an image alone?
- Operable: Can I describe how to reach and use every control with only a keyboard?
- Understandable: Does every input say what it wants, and does every likely error say how to fix it?
- Robust: For each custom control, is there a native HTML element that does the same job?
If you cannot answer one of these from the wireframe, the wireframe is missing information. That gap is exactly what annotations, covered later, are meant to fill.
Summary of key terms
- WCAG: the W3C's Web Content Accessibility Guidelines, a set of testable success criteria.
- POUR: Perceivable, Operable, Understandable, Robust. The four principles.
- Success criterion: a single testable requirement with a level.
- Level A, AA, AAA: increasing sets of requirements. Conformance at a level includes all lower levels.
- Conformance: a claim that a page, or a complete process, meets every criterion at a level.
Exercise
A team's wireframe for a search page shows a results table where "In stock" rows are marked only with a green background and "Out of stock" rows only with a red background. Which POUR principle does this most directly affect, which level of WCAG would a fix fall under for the color rule (1.4.1 Use of Color), and what is one change you would annotate on the wireframe?
Show answer
It most directly affects Perceivable, because information is carried by color alone and some users cannot distinguish the colors. Success criterion 1.4.1 Use of Color is Level A, so a fix is required even for the lowest conformance level. Annotate a text or icon cue in each row, for example the words "In stock" and "Out of stock" in a status column, so the meaning does not depend on color. Keep the colors as a secondary cue if you like, and check that any text on them meets 4.5:1 contrast.
Exercise
A product owner says, "We meet WCAG AA on 90 percent of our criteria, so we can claim AA." Is the claim valid? Give the rule and say what the team should do next.
Show answer
No. Conformance at AA requires that every Level A and Level AA criterion is met for the pages in scope, so meeting 90 percent does not support the claim. The team should list the failing criteria, fix them in priority order (Level A failures first, since they can block users entirely), retest, and describe the current state honestly, for example as partial conformance, until everything passes.
Exercise
Use the contrast function from this chapter. Does dark gray text (119, 119, 119) on a white background (255, 255, 255) meet the AA threshold for normal text? State the approximate ratio and the threshold.
Show answer
The ratio is about 4.48:1. The AA threshold for normal text is 4.5:1, so it narrowly fails. Darkening the gray slightly, for example to (118, 118, 118) or darker, brings it above 4.5:1. This shows why you compute the ratio rather than judge by eye.