The Web Content Accessibility Guidelines (WCAG) are W3C guidelines for making web content usable by more people, including people with physical or cognitive disabilities. They offer a firmer basis for accessibility decisions than checking a design with your own eyes and hoping everyone else sees it the same way. section 4.4.2 section 4.4.1
WCAG 2.1 organizes its guidance around four principles: content should be perceivable, operable, understandable, and robust. Guidelines lead to testable success criteria with conformance levels A, AA, and AAA. A is the baseline; AA reaches more people; AAA is stricter and is not recommended as a blanket requirement for entire sites. When a preferred design fails a criterion, an accessible alternative can sometimes preserve the choice while giving users another way in. section 4.4.2
Color shows why a checkable criterion matters. A red–yellow–green heatmap can become hard to distinguish for someone with color blindness; changing the palette to orange, gray, and blue is one possible improvement. Contrast also depends on what actually separates an element from its background. A pale blue bar may fail a contrast check, while a dark border can make its edge distinct. Accessible typography deserves attention too, especially for readers with changing eyesight or other vision and neurological impairments. section 4.4.1 section 4.4.2 section 5.5
Figure 4.34 On the left, the blue bars have no border, so the contrast is calculated between the blue and the light gray as 1.93:1, which is too low to pass WCAG’s AA level of 3:1. However, if you add a dark-gray border, the contrast is then calculated using the border against the background, which shows up better than just the plain blue bars. The contrast between the darker gray border and the lighter gray background is a whopping 8.7:1, beating out the AA level by almost a factor of two.
Compare the bars with and without a dark border: the blue-on-gray contrast is 1.93:1, below the illustrated AA threshold of 3:1, while the border-on-background contrast is 8.7:1. section 4.4.2
For interactive content, the Operable principle turns into practical questions:
- Can someone use it with a keyboard, without relying on a mouse or touch? section 7.4
- Can someone pause or rewind movement when they need more time? section 7.4
- Can someone avoid flashing or disable animation that may cause harm? section 7.4
- Are targets large enough to hit? A tiny phone Close button is a familiar failure; the cited target-size guidance calls for 44 px. section 7.4


