← ClaudeAtlas

wcag-color-contrastlisted

Use for any question about color contrast or whether colors pass WCAG, including quick checks of a few hex values and hard-to-read text: WCAG 2.2 text, large-text and non-text contrast ratios (4.5:1, 3:1) at AA and AAA, the measurement formula, palette and component reviews, and bulk checks over CSS and design tokens.
testland/qa · ★ 13 · Web & Frontend · score 80
Install: claude install-skill testland/qa
# wcag-color-contrast ## Overview WCAG 2.2 specifies four color-contrast Success Criteria ([wcag22][wcag22]): [wcag22]: https://www.w3.org/TR/WCAG22/ | SC | Level | What it covers | |---------|-------|----------------------------------------------------------------------| | 1.4.3 | AA | Text contrast minimums - **4.5:1** normal, **3:1** large. | | 1.4.6 | AAA | Enhanced text contrast - **7:1** normal, **4.5:1** large. | | 1.4.11 | AA | Non-text contrast - UI components and graphics - **3:1**. | | 1.4.13 | AA | Content on Hover/Focus - keyboard-dismissable, hoverable, persistent.| **Large text** per WCAG 2.2 ([wcag22][wcag22]): 18pt+ regular OR 14pt+ bold (24px / 18.66px in browsers default; 19px+ if bold). ## When to use - Designing a new color palette / design tokens. - Reviewing a component's CSS for contrast violations. - Setting up bulk-checking of design tokens via tooling. - Authoring per-component a11y checklists (paired with `screen-reader-test-author` references/wcag-checklist.md). - Configuring per-rule severity in `axe-a11y`. ## Contrast ratios ### Text (SC 1.4.3 - Level AA) | Text size | Required ratio | |--------------------------------------------|----------------| | Normal text (<18pt regular, <14pt bold) | **4.5:1** | | Large text (≥18pt regular OR ≥14pt bold) | **3:1** | **Exceptions** pe