Contrast ratio measures the relative luminance difference between foreground and background colors, helping make charts and interfaces readable and accessible. section 10.2.2
Use these thresholds when checking a visualization:
- Require at least 3:1 contrast for geometric shapes and large text against the background. section 10.2.2
- Require at least 4.5:1 contrast for regular text. section 10.2.2
- Check text with the WCAG Color contrast checker and manually enter geometric colors into the WebAIM contrast checker. section 10.2.2
Improving a scatterplot
A chart’s text and active button reached 12.91:1, while inactive-button text reached only 3.84:1. Changing the background to white and selecting a more accessible categorical palette improved the contrast of conservation-status circles. Dark strokes around legend circles provided another contrast improvement. section 10.2.2


