Web Accessibility

WCAG 2.1/2.2 guide

A plain-English guide to the Web Content Accessibility Guidelines — what they require, how contrast fits in, and what it takes to actually conform.

Understanding Color Contrast and Broader Web Accessibility Requirements

The Web Content Accessibility Guidelines, commonly known as WCAG, provide an internationally recognized framework for making websites, applications, and digital content more accessible to people with disabilities.

WCAG covers much more than color contrast. It also addresses keyboard navigation, page structure, images, forms, multimedia, focus behavior, and compatibility with assistive technology. Because color accessibility is such a visible and measurable part of the standard, it is often one of the first places website owners begin.

This guide provides a practical overview of WCAG 2.1 and WCAG 2.2, their conformance levels, and the contrast requirements used when evaluating text and interface elements.

What Is WCAG?

The Web Content Accessibility Guidelines (WCAG) are the international standard for making web content accessible to people with disabilities. Published by the World Wide Web Consortium (W3C), WCAG provides specific, testable success criteria that websites can be evaluated against.

WCAG is not a law, but it is the technical standard that most accessibility laws reference. When a regulation says a website must be "accessible," WCAG is almost always the benchmark used to define what that means.

The POUR principles

WCAG organizes all of its requirements under four principles, often referred to by the acronym POUR. Every success criterion in the standard falls under one of these.

Perceivable

Content must be presented in ways that users can perceive — through sight, hearing, or touch. This covers text alternatives for images, captions for video, sufficient color contrast, and the ability to resize text. If a user cannot perceive that content exists, nothing else matters.

Operable

Users must be able to navigate and interact with the interface. This covers keyboard accessibility, enough time to read and use content, avoiding content that causes seizures, and providing clear navigation. A site that only works with a mouse excludes anyone who relies on a keyboard, switch device, or voice control.

Understandable

Content and interface behavior must be understandable. This covers readable text, predictable navigation, consistent labeling, and input assistance like error messages and labels on form fields. A technically accessible form that nobody can figure out how to complete still creates a barrier.

Robust

Content must be robust enough to work reliably across browsers, devices, and assistive technologies — including future ones. This primarily covers proper HTML structure and valid use of ARIA attributes so that screen readers and other tools can interpret the page correctly.

WCAG versions

WCAG has gone through several versions. Each version added new success criteria while retaining everything from previous versions.

WCAG 1.0 (1999) was the original set of guidelines. It used a different structure and a simpler contrast evaluation method based on color brightness and difference formulas.

WCAG 2.0 (2008) introduced the current framework — POUR principles, three conformance levels, and the relative luminance contrast ratio formula still used today. This is the version that established the 4.5:1 and 3:1 text contrast thresholds.

WCAG 2.1 (2018) added 17 new success criteria focused on mobile accessibility, low vision, and cognitive disabilities. For contrast, the significant addition was SC 1.4.11 (Non-text Contrast), which extended the 3:1 minimum to UI components and meaningful graphics.

WCAG 2.2 (2023) added 9 new success criteria, primarily around authentication, focus appearance, and dragging interactions. The contrast requirements are unchanged from 2.1.

The contrast formula and thresholds have been the same since WCAG 2.0. Whether you're targeting 2.0, 2.1, or 2.2 compliance, the contrast math is identical. The difference is that 2.1 and 2.2 require contrast checking on more elements (UI components, focus indicators) than 2.0 did.

WCAG 2.1 Versus WCAG 2.2

WCAG 2.2 builds upon WCAG 2.1 by adding requirements related to areas such as visible keyboard focus, target sizes, dragging movements, repeated information, help mechanisms, and accessible authentication.

Many contracts, accessibility policies, audits, and legal requirements still specifically reference WCAG 2.1, while newer projects may target WCAG 2.2.

The existing contrast thresholds are the same in both versions. A color combination that passes a WCAG 2.1 contrast requirement will produce the same result when evaluated under WCAG 2.2.

When a project or policy names a particular version, that version should remain part of the evaluation. For new projects without a required version, the newer WCAG 2.2 standard generally provides broader coverage.

Conformance levels

WCAG defines three conformance levels, each building on the one below it.

Level A is the minimum. It addresses the most fundamental barriers — things that would make content completely unusable for some users. Meeting Level A alone is generally not considered sufficient for legal compliance.

Level AA is the standard most organizations target and the level referenced by most accessibility laws, including ADA Title II. It includes everything in Level A plus additional requirements like minimum contrast ratios for text, captions for live audio, and multiple ways to find pages.

Level AAA is the highest standard. It includes stricter thresholds — such as a 7:1 contrast ratio for normal text — and additional criteria that are not always practical to meet across an entire site. The W3C does not recommend requiring AAA conformance as a general policy, but individual AAA criteria can still be valuable for critical content.

What conformance actually means. A website conforms to WCAG at a given level only when it satisfies every applicable success criterion at that level and all lower levels. Passing a contrast check does not mean your site conforms to WCAG AA — it means your site meets one success criterion out of dozens. Conformance is all-or-nothing at each level.

WCAG Color Contrast Requirements

Color contrast refers to the visual difference between a foreground color and the color immediately behind it. Sufficient contrast helps people with low vision, reduced contrast sensitivity, and certain color vision deficiencies read text and identify important interface elements.

Color contrast is one of the most common failure points in accessibility audits and one of the easiest to test. WCAG measures contrast as a ratio between two colors, ranging from 1:1 (no contrast — identical colors) to 21:1 (maximum contrast — black on white).

Text contrast (SC 1.4.3 and SC 1.4.6)

Normal text must meet a minimum contrast ratio of 4.5:1 for AA and 7:1 for AAA. Large text — defined as approximately 24px (18pt) at normal weight or approximately 18.5px (14pt) at bold weight — has lower thresholds: 3:1 for AA and 4.5:1 for AAA.

These thresholds come from research on the contrast levels needed for people with moderately low vision (roughly 20/40 acuity) to read text without assistive technology.

Non-text contrast (SC 1.4.11)

Added in WCAG 2.1, this criterion requires a minimum 3:1 contrast ratio for user interface components (button borders, form input outlines, focus indicators) and meaningful graphics (icons that convey information, chart segments). It does not apply to decorative elements or inactive controls.

What counts as large text?

WCAG defines large text as approximately 24px (18pt) at regular weight, or approximately 18.5px (14pt) at bold weight. The word "approximately" is important to note here — WCAG acknowledges that the relationship between points, pixels, and rendered size varies across fonts and devices.

In practice, thin or decorative typefaces may be harder to read than standard fonts at the same pixel size, even if they technically qualify as large. The intent of the guideline is readability, not a rigid pixel measurement.

Color must not be the only indicator

Separate from contrast ratios, WCAG SC 1.4.1 requires that color is not used as the only visual means of conveying information. A form field highlighted in red to indicate an error must also include a text label, icon, or other non-color cue. A chart that distinguishes data series only by color is inaccessible to users with color blindness. This applies to links within body text too — if the only way to tell a link from surrounding text is its color, an underline or other visual treatment is needed.

Exemptions

Not all content needs to meet the contrast thresholds. WCAG explicitly exempts:

Logos and brand names. Text that is part of a logo or brand identity has no contrast requirement. This exemption does not extend to body text, navigation, buttons, or headings that happen to use brand colors — only the logo itself.

Purely decorative content. Text or graphics that convey no information and serve no functional purpose are exempt. A background watermark or decorative illustration that doesn't contain essential content would qualify.

Inactive components. Disabled form controls, greyed-out buttons, and other elements that are intentionally non-interactive are exempt while in their disabled state. Once the control becomes active, it must meet the contrast requirements.

Incidental text. Text that appears incidentally within a larger image — such as a street sign in a photograph or text on a book cover in a lifestyle photo — is exempt when the text is not the primary content of the image.

How contrast is calculated

The contrast ratio formula compares the relative luminance of two colors:

Ratio = (L1 + 0.05) / (L2 + 0.05)

where L1 is the lighter color's luminance and L2 is the darker color's luminance. Relative luminance is calculated by linearizing each sRGB channel and applying the standard weighting: 0.2126 for red, 0.7152 for green, and 0.0722 for blue. This weighting reflects how human vision perceives brightness — green contributes far more than red, and red far more than blue.

You don't need to calculate this yourself — our contrast checker handles it automatically.

Common accessibility areas beyond color

Keyboard accessibility

Every interactive element — links, buttons, form fields, menus, modals — must be operable with a keyboard alone. Users must be able to reach, activate, and move past every control without a mouse. Focus order should follow a logical sequence, and focus must never become trapped inside a component.

Images and alt text

Every meaningful image needs a text alternative that conveys its purpose. Decorative images should be hidden from assistive technology. Complex images like charts or infographics may need longer descriptions.

Headings and structure

Pages need a logical heading hierarchy that reflects the content structure. Screen reader users navigate by headings the way sighted users scan visually — a page without proper headings is like a book without a table of contents.

Forms and error handling

Form inputs need visible labels that are programmatically associated with their fields. Error messages should be specific, clearly identify the problem, and ideally suggest how to fix it. Required fields need to be identified before the user submits the form.

Link purpose

Links should make sense out of context. "Click here" and "Read more" repeated across a page give a screen reader user no way to distinguish one link from another. Each link's text should describe where it goes or what it does.

Multimedia

Video content needs synchronized captions. Audio-only content needs transcripts. Neither autoplaying media nor flashing content should be used without controls.

Automated vs. manual testing

Automated tools can catch roughly 30–40% of WCAG issues — contrast ratios, missing alt attributes, empty headings, missing form labels, duplicate IDs. They are fast, consistent, and valuable as a first pass.

But most accessibility barriers require human judgment. An automated tool can tell you an image has alt text; it cannot tell you whether that alt text is accurate or useful. It can detect that a heading exists; it cannot tell you whether the heading hierarchy makes sense. It can verify a form field has a label; it cannot tell you whether the label is clear.

A thorough accessibility evaluation combines automated scanning with manual testing — navigating by keyboard, testing with a screen reader, verifying focus management, and reviewing content for clarity and logical structure. This is what a professional audit provides that a scanning tool alone cannot.

web accessibility

What WCAG Conformance Means

Creating websites more people can use

WCAG conformance applies to complete web pages and processes—not isolated colors or individual components.

A passing contrast result means only that the tested color combination meets a particular numerical threshold. It doesn't establish that the surrounding webpage, application, or website conforms to WCAG or complies with a legal requirement.

Government policies, business obligations, contracts, and accessibility laws may use WCAG differently. Visit our guides to government website accessibility and business website accessibility for more context.

Need help evaluating your website?

Test your colors with our contrast checker →

Learn about compliance requirements for government websites or business websites.

If your organization needs to meet ADA or Section 508 requirements, a comprehensive audit is the only way to know where you stand.