Text contrast (text-contrast)

Text smaller than 18pt (or 14pt bold) must meet a contrast ratio of 4.5:1 against its background.


Insufficient contrast with split background:

This text uses semi-transparent gray on a background that is part white and part black. Depending on where the text falls, its contrast ratio ranges between 2.3:1 and 4.2:1, failing the WCAG minimum threshold.


Hello world

Note: Possible to implement because contrast can be programmatically calculated using computed foreground and background styles, including transparency. Split or complex backgrounds may require multiple contrast samples.

axe detected: none  |  QualWeb detected: none