Color Contrast
Ensures that each text element has a minimum 4.5:1 contrast ratio with its background and that large text has a minimum 3.0:1 contrast ratio.
important
This rule uses a trained computer vision algorithm and will only show results from views rendered on the screen at the time of the scan.
Impact
Issues detected by this rule impact people with color blindness and low vision. Low color contrast between a text element and its background may prevent some or all information from being read.
Confirmation
If you have access to the color palette of your app:
- Add each color to the Deque Color Palette Contrast Checker.
- For each text color with its background, ensure that the color contrast ratio is 4.5:1 or higher (or 3.0:1 for large text).
If you do not have access to the color palette of your app:
- Open your app in a Simulator.
- Using a color picker --
- Get the truest color of each text element.
- Get the truest color of each distinct background.
- Input each color into the Deque Color Palette Contrast Checker.
- For each text color with its background, ensure that the color contrast ratio is 4.5:1 or higher (or 3.0:1 for Large Text).
How to Fix
Use the Deque Color Palette to find colors with a higher contrast ratio.