Accessible colors
What is color contrast?
Color contrast is the difference in luminance between a text color and its background. Sufficient contrast makes text readable for users with low vision or color blindness.
The WCAG rule (AA standard)
| Content type | Minimum ratio |
|---|---|
| Normal text (< 18px) | 4.5:1 |
| Large text (≥ 18px or 14px bold) | 3:1 |
| UI components & borders | 3:1 |
This is defined by WCAG 2.1 criterion 1.4.3 and RGAA criterion 3.2.
info
In Murray, colors in the 500, 700, and 900 ranges meet AA contrast against white or grey-100 backgrounds. Green, pink and orange are exceptions and still need improvement.
How to verify contrast
Use the WebAIM Contrast Checker to check any two colors by pasting their hex values. Useful when choosing a new color.
Checks for Engineers
Chrome DevTools
- Right-click any element → Inspect
- In the CSS panel, click the color swatch next to a
colororbackground-colorproperty - The contrast ratio appears below the color picker with a ✅ (AA) or ❌
axe DevTools
Run a full page scan (see Engineer Setup). It will automatically flag elements with insufficient contrast.