Designing for everyone
Colour contrast and colour blindness
You must make sure that the contrast ratio of text and interactive elements meets Web Content Accessibility Guidelines (WCAG 2.2) success criterion 1.4.3 Contrast (minimum) level AA.
Testing colour contrast
You will need to use a tool like WebAIM: Contrast Checker. You should:
- Find the colour code of your background and foreground colours, for example #006726. You can usually find the colour code using your program’s colour picker. If that doesn’t work, take a screenshot, paste it into Paint, and use Paint’s eyedropper tool to get the code.
- Paste the 2 colour codes into your contrast checker tool.
- The contrast checker will tell you whether it meets AA and AAA standards for normal and large text, and for graphical objects and user interface components.