Asserts that the target element has sufficient color contrast between its text color and background color,
according to the WCAG 2.1 contrast ratio formula.
The matcher calculates the contrast ratio using the relative luminance of the text color and background color.
It fails if the contrast ratio is below the specified minimum, as per WCAG 2.1 guidelines (e.g., 4.5:1 for normal text, 3:1 for large text).
Asserts that the target element has sufficient color contrast between its text color and background color, according to the WCAG 2.1 contrast ratio formula.
The matcher calculates the contrast ratio using the relative luminance of the text color and background color. It fails if the contrast ratio is below the specified minimum, as per WCAG 2.1 guidelines (e.g., 4.5:1 for normal text, 3:1 for large text).