Color Contrast
Learn how we're using artificial intelligence for this rule!
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.
Impact
Issues detected by this rule impact people with color blindness and low vision. A 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 an emulator.
- Using a color picker --
- Get the truest color representation of each text element
- Get the truest color representation 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 Contrast Checker to find colors with a higher contrast ratio.