Skip to content

Glossary: HTML & CSS Basics

Contrast

Also written: contrast ratio

The difference in lightness between text and its background, measured as a ratio from 1:1 to 21:1. Normal text should reach at least 4.5:1 to be easy to read.

Where the book teaches it

Related terms

WCAG