♿Contrast Ratio
Also known as Color Contrast Ratio, Colour Contrast, Text Contrast
A number that says how much text stands out from its background.
Think of it like
It is like chalk on a board. White chalk on black is easy to read. Grey chalk is not.
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.
Formula
ratio = (L1 + 0.05) ÷ (L2 + 0.05)Definition
Common mistake
Key takeaways
- 14.5 to 1 for text. 3 to 1 if large.
- 23 to 1 for icons. And control edges.
- 3Check, do not guess. Use a checker.