contrast-minimum

Text meets minimum color contrast (AA)

automaticWCAG 1.4.3 (AA)confidence: highseverity: seriousperceivable

Checks that visible text has a contrast ratio of at least 4.5:1 (normal) or 3:1 (large), when contrast is computable from CSS.

Applies to. Applies to the visible text contrast-computable applies to, see that rule for the eligibility gates, narrowed to text whose background and foreground are actually computable. Eligible text that is not computable leaves this rule notApplicable rather than cantTell: reporting that uncertainty belongs to contrast-computable, so the two never report the same text twice.

Expectation. Every computable text node reaches the ratio SC 1.4.3 requires for its size: 3:1 for large text, 4.5:1 for everything else. Text is large at 24px or more, or at 14pt (about 18.667px) or more when the computed font weight is 700 or higher.

Examples

pass
<p style="background:#ffffff; color:#767676;">Body text</p>

About 4.6:1, above the AA 4.5:1 minimum for normal text.

fail
<div style="opacity:0.5; background:#ffffff;">
<p style="color:#000000;">Body text</p>
</div>

50% ancestor (group) opacity over white composites to a flat gray around 4:1, below the AA minimum.

View source