# Contrast Ratio

> A number that says how much text stands out from its background.

**Field:** Design  
**Category:** Accessibility  
**Also known as:** Color Contrast Ratio, Colour Contrast, Text Contrast

## Think of it like

It is like chalk on a board. White chalk on black is easy to read. Grey chalk is not.

## Definition

A contrast ratio is a number that says how much lighter one color is than another, from 1 to 1 up to 21 to 1. Black on white is 21 to 1, and two of the same color is 1 to 1. WCAG asks for at least 4.5 to 1 for normal text and 3 to 1 for large text. Icons and the edges of controls need 3 to 1 too. Free checkers give the number in a second.

## Formula

```
ratio = (L1 + 0.05) ÷ (L2 + 0.05)
```

## Example

Lucy's light grey text on white scores 2.3 to 1. She makes it darker until it passes 4.5 to 1.

## Why it matters

Low contrast is one of the most common blocks on the web. It also hurts anyone who reads in bright sun.

## Common mistake

Pale grey text because it looks calm. Calm is no use if people cannot read it.

## Three principles

- **4.5 to 1 for text.** 3 to 1 if large.
- **3 to 1 for icons.** And control edges.
- **Check, do not guess.** Use a checker.

## Related terms

- [Contrast](https://learn.benibix.com/term/design/contrast)
- [Color Blindness](https://learn.benibix.com/term/design/color-vision-deficiency)
- [WCAG Conformance Levels](https://learn.benibix.com/term/design/wcag-conformance-levels)
- [Legibility](https://learn.benibix.com/term/design/legibility)
- [High Contrast Mode](https://learn.benibix.com/term/design/high-contrast-mode)

![A scale from 1 to 21. Marks at 3, 4.5 and 7 show the WCAG lines: 3 to 1 for large text and icons, 4.5 to 1 for normal text, 7 to 1 for the strictest level. Black on white sits at 21.](https://learn.benibix.com/diagrams/contrast-ratio.svg)

---

Source: https://learn.benibix.com/term/design/contrast-ratio
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
