Color guide
Color contrast for websites: how to make text readable
Contrast decides whether people can read your site. Learn the numbers that matter and how to test your own colors.
Quick answer
Aim for a contrast ratio of at least 4.5:1 between normal text and its background, and 3:1 for large text and interface parts such as buttons and input borders. Higher is easier to read. Test your colors with a contrast checker before you publish.
What contrast ratio means
The contrast ratio compares the brightness of two colors. It runs from 1:1 (no difference) to 21:1 (black on white). The accessibility standard WCAG uses these levels: 4.5:1 for normal text (level AA), 3:1 for large text and 7:1 for the strictest level (AAA). Large text means about 24 px, or about 19 px if it is bold.
Examples
How to fix low contrast
- Make the text darker or the background lighter (or the other way round on dark pages).
- Use your brand color for large elements and keep text neutral.
- Do not put text on busy photos without a solid or darkened layer.
- Do not use color alone to show meaning. Add an icon or a label.
Test your colors
Use the Contrast Check tool with the HEX codes of your text and background. Need new colors? Try the Oh Juicy color tools.
Keep reading
Choose a calm base with our guide to the best background color for a website, or browse color combinations for web design.
Advertisement
