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.

Oh Juicy guideColorUpdated 2026

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

Navy on white (#0D1526 on #FFFFFF)
18.2:1 · AAA
Slate on white (#46516A on #FFFFFF)
7.9:1 · AAA
Light gray on white (#9AA3B5 on #FFFFFF)
2.5:1 · Fails
Orange on white (#D94E18 on #FFFFFF)
4.1:1 · Large text only
White on deep blue (#FFFFFF on #16295E)
13.8:1 · AAA
Dark green on cream (#1F3D2B on #FAF6EC)
11.0:1 · AAA

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

author avatar
Frannie-Juice-Oh