Text elements must have enhanced color contrast against the background (WCAG AAA)

distinguishable/color-contrast-enhanced · WCAG 1.4.6 · Level AAA

Text elements must have enhanced color contrast against the background (WCAG AAA).

WCAG SC 1.4.6 (AAA) requires a contrast ratio of at least 7:1 for normal text and 4.5:1 for large text (>=24px or >=18.66px bold). Higher contrast benefits users with low vision, aging eyes, or poor screen conditions. Increase the contrast by darkening the text or lightening the background, or vice versa.

Scan a page or repo for issues like this · All rules

Introduced in @accesslint/core v0.8.0