WCAG contrast ratio explained

Updated November 2026 · 5 min read

Low-contrast text is hard to read for everyone, and impossible for some. WCAG gives clear numbers so you can check your colors instead of guessing.

What is a contrast ratio?

It is a number from 1:1 to 21:1 that compares the brightness of two colors, such as text and its background. Black on white is 21:1. Identical colors are 1:1.

The numbers to remember

ContentAA (standard)AAA (enhanced)
Normal text4.5:17:1
Large text (24 px, or 19 px bold)3:14.5:1
Icons and input borders3:1not defined

Real examples

  • Light cream text (#F5EFE3) on a deep brown-black (#14110D) is about 16:1. Excellent for dark mode.
  • Amber (#FBB92B) on white is only about 1.7:1. It fails, so amber works as an accent on dark backgrounds, not as text on white.
  • Dark brown text (#3A2E1A) on a sepia background (#EFDFBC) is about 10:1. Comfortable and clear.

How to test your colors

  1. Open the contrast checker.
  2. Enter your text color and background color.
  3. Read the ratio and the AA and AAA results. Adjust until the pair passes.

Remember that contrast is only one part of accessible design. Also avoid using color alone to convey meaning; preview your design with the color blindness simulator.

Read comfortably on every website

Dark Mode Night Reader adds dark mode, sepia, a blue light filter and text tools to Chrome. Free, light and private.