Contrast ratio

A number from 1 to 21 that compares how bright two colours are; text needs 4.5 to 1, or 3 to 1 when large.

Think of it as How far apart the text and its background look to a tired eye.

The WCAG accessibility guideline defines the ratio from each colour's relative luminance: (lighter + 0.05) divided by (darker + 0.05). Normal text should reach 4.5 to 1. Large text (about 24 pixels, or 18.66 pixels and bold) needs 3 to 1. White on Beacon Yard's gold Coin Pack button measures about 4.2 to 1.

Official reference: www.w3.org

Related terms