Accessibility

The law every Prism option follows: WCAG 2.2 at level AA, in plain words. Check any page, test contrast, see designs through other eyes, compare how other systems put accessibility into practice, and learn the checks only a person can make.

Check a page

Run the automated checks on any Prism page. Each problem links back to the WCAG rule it breaks.

Automated checks find only some problems, often said to be around a third. Keyboard use, screen reader testing, and people with disabilities find the rest.

Check any website with the same checks

Make a new bookmark, paste this as its address, and press it on any page. Results show in the browser console.

ReadyChrome, Edge, Firefox, Safari

javascript:(()%3D%3E%7Bconst%20checkPage%3Dfunction%20h(a)%7Blet%20b%3Da.defaultView%2Cc%3D%5B%5D%2Cd%3D(a%2Cb%2Cd%2Ce%2Cf)%3D%3E%7Bvar%20g%3Blet%20h%2Ci%3Breturn%20c.push(%7Brule%3Aa%2Cwcag%3Ab%2Clevel%3Ad%2Cmessage%3Ae%2Cwhere%3Af%3F(h%3D(g%3Df).tagName.toLowerCase()%2Cg.id%3Fh%2B%3D%60%23%24%7Bg.id%7D%60%3Ag.classList.length%26%26(h%2B%3D%60.%24%7B%5B...g.classList%5D.slice(0%2C2).join(%22.%22)%7D%60)%2C(i%3D(g.textContent%7C%7Cg.getAttribute(%22aria-label%22)%7C%7Cg.getAttribute(%22alt%22)%7C%7C%22%22).trim().replace(%2F%5Cs%2B%2Fg%2C%22%20%22).slice(0%2C40))%3F%60%24%7Bh%7D%20%22%24%7Bi%7D%22%60%3Ah)%3A%22%22%7D)%7D%2Ce%3Da%3D%3E%7Blet%20c%3Da.getBoundingClientRect()%2Cd%3Db.getComputedStyle(a)%3Breturn%20c.width%3E0%26%26c.height%3E0%26%26%22hidden%22!%3D%3Dd.visibility%26%26%22none%22!%3D%3Dd.display%26%26!a.closest(%22%5Bhidden%5D%2C%5Baria-hidden%3D'true'%5D%2C%5Binert%5D%22)%7D%3Bfunction%20f(b)%7Blet%20c%3Db.getAttribute(%22aria-labelledby%22)%3Bif(c)%7Blet%20b%3Dc.split(%2F%5Cs%2B%2F).map(b%3D%3Ea.getElementById(b)%3F.textContent%7C%7C%22%22).join(%22%20%22).trim()%3Bif(b)return%20b%7Dlet%20d%3Db.getAttribute(%22aria-label%22)%3Bif(d%26%26d.trim())return%20d.trim()%3Bif(b.labels%26%26b.labels.length)%7Blet%20a%3D%5B...b.labels%5D.map(a%3D%3Ea.textContent).join(%22%20%22).trim()%3Bif(a)return%20a%7Dlet%20e%3D%5B...b.childNodes%5D.map(a%3D%3E3%3D%3D%3Da.nodeType%3Fa.textContent%3A1%3D%3D%3Da.nodeType%26%26%22true%22!%3D%3Da.getAttribute(%22aria-hidden%22)%3F%22IMG%22%3D%3D%3Da.tagName%3Fa.getAttribute(%22alt%22)%7C%7C%22%22%3Aa.textContent%3A%22%22).join(%22%22).trim()%3Bif(e)return%20e%3Blet%20f%3Db.getAttribute(%22title%22)%3Breturn%20f%26%26f.trim()%3Ff.trim()%3A%22INPUT%22%3D%3D%3Db.tagName%26%26%5B%22submit%22%2C%22button%22%2C%22reset%22%5D.includes(b.type)%26%26b.value%7C%7C%22%22%7Dlet%20g%3Da.createElement(%22canvas%22)%3Bg.width%3Dg.height%3D1%3Blet%20h%3Dg.getContext(%222d%22%2C%7BwillReadFrequently%3A!0%7D)%3Bfunction%20i(a)%7Bh.clearRect(0%2C0%2C1%2C1)%2Ch.fillStyle%3D%22%23000%22%2Ch.fillStyle%3Da%2Ch.fillRect(0%2C0%2C1%2C1)%3Blet%5Bb%2Cc%2Cd%2Ce%5D%3Dh.getImageData(0%2C0%2C1%2C1).data%3Breturn%5Bb%2Cc%2Cd%2Ce%2F255%5D%7Dlet%20j%3D(%5Ba%2Cb%2Cc%5D)%3D%3E%5Ba%2Cb%2Cc%5D.map(a%3D%3E(a%2F%3D255)%3C%3D.03928%3Fa%2F12.92%3A((a%2B.055)%2F1.055)**2.4).reduce((a%2Cb%2Cc)%3D%3Ea%2Bb*%5B.2126%2C.7152%2C.0722%5D%5Bc%5D%2C0)%2Ck%3D(a%2Cb)%3D%3E%7Blet%20c%3Dj(a)%2Cd%3Dj(b)%3Breturn(Math.max(c%2Cd)%2B.05)%2F(Math.min(c%2Cd)%2B.05)%7D%2Cl%3D(a%2Cb)%3D%3Ea.slice(0%2C3).map((c%2Cd)%3D%3Ec*a%5B3%5D%2Bb%5Bd%5D*(1-a%5B3%5D))%3Ba.documentElement.getAttribute(%22lang%22)%7C%7Cd(%22Page%20language%22%2C%223.1.1%22%2C%22error%22%2C%22The%20page%20does%20not%20say%20its%20language.%20Add%20lang%20to%20the%20html%20element.%22%2Ca.documentElement)%2Ca.title%26%26a.title.trim()%7C%7Cd(%22Page%20title%22%2C%222.4.2%22%2C%22error%22%2C%22The%20page%20has%20no%20title.%22%2Cnull)%2Ca.querySelector(%22main%2C%20%5Brole%3D'main'%5D%22)%7C%7Cd(%22Main%20landmark%22%2C%222.4.1%22%2C%22warning%22%2C%22No%20main%20landmark%2C%20so%20screen%20reader%20users%20cannot%20jump%20to%20the%20content.%22%2Cnull)%2Ca.querySelectorAll(%22img%22).forEach(a%3D%3E%7B!a.hasAttribute(%22alt%22)%26%26e(a)%26%26d(%22Image%20text%22%2C%221.1.1%22%2C%22error%22%2C'An%20image%20has%20no%20alt%20attribute.%20Describe%20it%2C%20or%20use%20alt%3D%22%22%20if%20it%20is%20decoration.'%2Ca)%7D)%2Ca.querySelectorAll(%22svg%5Brole%3D'img'%5D%22).forEach(a%3D%3E%7Bf(a)%7C%7Ca.querySelector(%22title%22)%7C%7Cd(%22Image%20text%22%2C%221.1.1%22%2C%22error%22%2C%22An%20SVG%20marked%20as%20an%20image%20has%20no%20name.%22%2Ca)%7D)%2Ca.querySelectorAll(%22button%2C%20%5Brole%3D'button'%5D%2C%20a%5Bhref%5D%2C%20%5Brole%3D'link'%5D%2C%20%5Brole%3D'tab'%5D%2C%20%5Brole%3D'switch'%5D%2C%20%5Brole%3D'checkbox'%5D%2C%20%5Brole%3D'menuitem'%5D%22).forEach(a%3D%3E%7Bif(!e(a))return%3Blet%20b%3Df(a)%3Bb%3F%22A%22%3D%3D%3Da.tagName%26%26%2F%5E(click%20here%7Chere%7Cread%20more%7Cmore%7Clearn%20more%7Clink)%24%2Fi.test(b)%26%26d(%22Link%20text%22%2C%222.4.4%22%2C%22warning%22%2C%60The%20link%20text%20%22%24%7Bb%7D%22%20does%20not%20say%20where%20it%20goes.%60%2Ca)%3Ad(%22Control%20name%22%2C%22A%22%3D%3D%3Da.tagName%3F%222.4.4%22%3A%224.1.2%22%2C%22error%22%2C%22A%20control%20or%20link%20has%20no%20name%20that%20screen%20readers%20can%20say.%22%2Ca)%7D)%2Ca.querySelectorAll(%22input%2C%20select%2C%20textarea%22).forEach(a%3D%3E%7B!%5B%22hidden%22%2C%22submit%22%2C%22button%22%2C%22reset%22%2C%22image%22%5D.includes(a.type)%26%26e(a)%26%26(f(a)%7C%7Cd(%22Field%20label%22%2C%223.3.2%22%2C%22error%22%2C%22A%20form%20field%20has%20no%20label.%22%2Ca))%7D)%3Blet%20m%3D%5B...a.querySelectorAll(%22h1%2C%20h2%2C%20h3%2C%20h4%2C%20h5%2C%20h6%22)%5D.filter(e)%3Bm.some(a%3D%3E%22H1%22%3D%3D%3Da.tagName)%7C%7Cd(%22Headings%22%2C%221.3.1%22%2C%22warning%22%2C%22The%20page%20has%20no%20top%20level%20heading%20(h1).%22%2Cnull)%2Cm.reduce((a%2Cb)%3D%3E%7Blet%20c%3DNumber(b.tagName%5B1%5D)%3Breturn%20a%26%26c%3Ea%2B1%26%26d(%22Headings%22%2C%221.3.1%22%2C%22warning%22%2C%60A%20heading%20jumps%20from%20level%20%24%7Ba%7D%20to%20%24%7Bc%7D.%60%2Cb)%2Cc%7D%2C0)%2Ca.querySelectorAll(%22%5Btabindex%5D%22).forEach(a%3D%3E%7BNumber(a.getAttribute(%22tabindex%22))%3E0%26%26d(%22Focus%20order%22%2C%222.4.3%22%2C%22warning%22%2C%22A%20positive%20tabindex%20changes%20the%20natural%20focus%20order.%22%2Ca)%7D)%3Blet%20n%3Dnew%20Map%3Bfor(let%5Bb%2Cc%5Dof(a.querySelectorAll(%22%5Bid%5D%22).forEach(a%3D%3En.set(a.id%2C(n.get(a.id)%7C%7C0)%2B1))%2Cn))c%3E1%26%26b%26%26d(%22Duplicate%20id%22%2C%224.1.2%22%2C%22warning%22%2C%60The%20id%20%22%24%7Bb%7D%22%20is%20used%20%24%7Bc%7D%20times%2C%20which%20can%20break%20labels.%60%2Ca.getElementById(b))%3Ba.querySelectorAll(%22button%2C%20a%5Bhref%5D%2C%20input%2C%20select%2C%20textarea%2C%20%5Brole%3D'button'%5D%2C%20%5Brole%3D'tab'%5D%2C%20%5Brole%3D'switch'%5D%22).forEach(a%3D%3E%7Bif(!e(a)%7C%7C%22hidden%22%3D%3D%3Da.type)return%3Blet%20b%3Da.getBoundingClientRect()%3Bif(a.labels%26%26a.labels.length)%7Blet%20c%3Da.labels%5B0%5D.getBoundingClientRect()%3Bc.width*c.height%3Eb.width*b.height%26%26(b%3Dc)%7D!(%22A%22%3D%3D%3Da.tagName%26%26a.closest(%22p%2C%20li%2C%20td%2C%20dd%2C%20figcaption%22))%26%26(b.width%3C24%7C%7Cb.height%3C24)%26%26d(%22Target%20size%22%2C%222.5.8%22%2C%22warning%22%2C%60A%20target%20is%20%24%7BMath.round(b.width)%7D%20by%20%24%7BMath.round(b.height)%7D%20pixels%3B%20it%20needs%20at%20least%2024%20by%2024.%60%2Ca)%7D)%3Blet%20o%3Dnew%20Set%3Ba.querySelectorAll(%22%3Adisabled%2C%20%5Baria-disabled%3D'true'%5D%22).forEach(b%3D%3E%7B(b.labels%3F%5B...b.labels%5D%3A%5B%5D).forEach(a%3D%3Eo.add(a))%2C(b.getAttribute(%22aria-describedby%22)%7C%7C%22%22).split(%2F%5Cs%2B%2F).forEach(b%3D%3E%7Blet%20c%3Db%26%26a.getElementById(b)%3Bc%26%26o.add(c)%7D)%7D)%3Blet%20p%3Db%3D%3E%7Bfor(let%20c%3Db%3Bc%26%26c!%3D%3Da.body%3Bc%3Dc.parentElement)if(o.has(c))return!0%3Breturn!1%7D%2Cq%3Dnew%20Set%2Cr%3Da.createTreeWalker(a.body%2C4%2C%7BacceptNode%3Aa%3D%3Ea.textContent.trim()%3F1%3A2%7D)%2Cs%3D0%3Bfor(let%20a%3Dr.nextNode()%3Ba%26%26s%3C3e3%3Ba%3Dr.nextNode())%7Blet%20c%3Da.parentElement%3Bif(!c%7C%7Cq.has(c)%7C%7C!e(c))continue%3Bq.add(c)%2Cs%2B%2B%3Blet%20f%3Db.getComputedStyle(c)%3Bif(c.closest(%22button%3Adisabled%2C%20%5Baria-disabled%3D'true'%5D%2C%20%5Bdisabled%5D%22)%7C%7Cp(c))continue%3Blet%20g%3Di(f.color)%2Ch%3Dfunction(a)%7Blet%20c%3D%5B%5D%3Bfor(let%20d%3Da%3Bd%26%261%3D%3D%3Dd.nodeType%3Bd%3Dd.parentElement)%7Blet%20a%3Db.getComputedStyle(d)%3Bif(a.backgroundImage%26%26%22none%22!%3D%3Da.backgroundImage)return%20null%3Blet%20e%3Di(a.backgroundColor)%3Bif(e%5B3%5D%3E0%26%26(c.push(e)%2Ce%5B3%5D%3E%3D1))break%7Dlet%20d%3D%5B255%2C255%2C255%5D%3Bfor(let%20a%3Dc.length-1%3Ba%3E%3D0%3Ba--)d%3Dl(c%5Ba%5D%2Cd)%3Breturn%20d%7D(c)%3Bif(!h%7C%7C0%3D%3D%3Dg%5B3%5D)continue%3Blet%20j%3DparseFloat(f.fontSize)%2Cm%3DNumber(f.fontWeight)%3E%3D700%2Cn%3Dj%3E%3D24%7C%7Cm%26%26j%3E%3D18.66%3F3%3A4.5%2Co%3Dk(l(g%2Ch)%2Ch)%3Bo%3Cn%26%26d(%22Text%20contrast%22%2C%221.4.3%22%2C%22error%22%2C%60Text%20contrast%20is%20%24%7Bo.toFixed(2)%7D%20to%201%3B%20it%20needs%20%24%7Bn%7D%20to%201.%60%2Cc)%7Dreturn%20a.querySelectorAll(%22audio%5Bautoplay%5D%2C%20video%5Bautoplay%5D%3Anot(%5Bmuted%5D)%22).forEach(a%3D%3Ed(%22Autoplay%22%2C%221.4.2%22%2C%22warning%22%2C%22Media%20plays%20sound%20by%20itself.%20Give%20people%20a%20way%20to%20stop%20it.%22%2Ca))%2Cc%7D%3Bconst%20r%3DcheckPage(document)%3Bconsole.table(r)%3Balert(r.length%2B%22%20possible%20issues%20found.%20Open%20the%20browser%20console%20to%20see%20them.%20Automated%20checks%20find%20only%20some%20problems%3B%20test%20with%20a%20keyboard%20and%20a%20screen%20reader%20too.%22)%3B%7D)()

Contrast checker

Two colors in, every WCAG contrast result out.

Large text sample

Body text sample, the size most people read.

6.69 to 1

  • Passes Body text, AA, needs 4.5 to 1
  • Passes Large text, AA (24 px, or 19 px bold), needs 3 to 1
  • Fails Body text, AAA, needs 7 to 1
  • Passes Large text, AAA, needs 4.5 to 1
  • Passes Icons, borders, focus rings (non-text), needs 3 to 1

See it another way

Simulations of color blindness and low vision. A design that keeps words, icons, and contrast works for everyone.

Red only: did it fail?Green only: did it pass?
OverdueDue soonPaidIn review

A chart with colors only. Without labels, some people cannot tell its bars apart.

The red and green dots show why color alone fails: in red and green blindness they look almost the same. The badges and the alert stay clear because words carry the meaning.

WCAG 2.2 in plain words

All 55 criteria at levels A and AA, the level most laws and Prism require. The official text always wins; these summaries help you act on it.

55 of 55 criteria shown.

How other systems do it

Every system below aims at the same law. They differ in how they put it into practice.

Accessibility approaches compared
SystemSmallest touch targetApproachSource
Prism44 by 44 pixelsWCAG 2.2 AA is law in every room. Every theme and brand is contrast checked before it counts, every moving part has a calm version, and every page passes at 320 pixels.This lab
WCAG 2.2 itself24 by 24 pixels at AA (2.5.8), 44 by 44 at AAA (2.5.5)The shared standard: 55 criteria at levels A and AA, testable and technology neutral.WCAG 2.2 (opens a new tab)
GOV.UKNot stated herePublic services in the UK must meet WCAG 2.2 AA. Each component page carries accessibility notes, and components are tested with assistive technology.Service Manual (opens a new tab)
IBM CarbonNot stated hereCarbon follows the IBM Accessibility Checklist, which maps WCAG, the US Section 508 standard, and the European EN 301 549 standard.Carbon accessibility (opens a new tab), IBM checklist (opens a new tab)
Material 348 by 48 dpGuidance on contrast, touch targets, focus, and screen readers across Android and the web.Material 3 (opens a new tab)
Apple HIG44 by 44 points on iPhone and iPadDesign for VoiceOver, Dynamic Type (text that grows with the person's setting), Reduce Motion, and Increase Contrast.Accessibility (opens a new tab)
Microsoft Fluent 244 by 44 on iOS and web, 48 by 48 on AndroidAccessibility guidance for each platform, built into the components.Fluent accessibility (opens a new tab)

Laws that point to WCAG

General information, not legal advice. Check with a lawyer for your product and where it is sold.

United States
Section 508 for federal agencies, and the Americans with Disabilities Act, which courts and the Department of Justice apply to websites and apps.
European Union
The European Accessibility Act covers many products and services sold in the EU since June 28, 2025, through the EN 301 549 standard.
United Kingdom
Public sector websites and apps must meet WCAG 2.2 AA.
Canada
The Accessible Canada Act and provincial laws, such as Ontario's AODA.

Test it by hand

The checks a person makes. Ten minutes with a keyboard finds more than any tool.

Keyboard

  • Put the mouse away. Press Tab to move forward and Shift Tab to move back.
  • Every link, button, and field can be reached, in an order that makes sense.
  • The focus ring is always visible, and never hidden behind a sticky header.
  • Enter and Space work buttons; arrow keys move within tabs, menus, and radio groups; Escape closes dialogs.

Screen reader

  • Mac and iPhone: VoiceOver is built in (Command F5 on a Mac; Settings, Accessibility on iPhone).
  • Windows: NVDA is free; Narrator is built in. Android: TalkBack is built in.
  • Listen to the page: headings, landmarks, link and button names, and form labels all make sense on their own.
  • Messages like Saved or errors are announced without hunting for them.

Zoom and reflow

  • Zoom the browser to 200 percent: nothing is cut off or overlaps.
  • Zoom to 400 percent, or set the window to 320 pixels wide: no sideways scroll except data tables and maps.

Motion and contrast settings

  • Turn on Reduce Motion: nothing big moves, and anything that does can be paused.
  • On Windows, turn on a Contrast theme: every edge, focus ring, and icon is still visible.
  • Add the text spacing test (see Typography): nothing overlaps or gets cut off.

People

  • Nothing replaces testing with disabled people. Pay them for their time, and test early, not just before launch.