A number that measures how different two colours are in lightness — used to check that text is readable against its background. Higher is easier to read.
Synonyms
- colour contrast
- wcag contrast
Related terms
In plain words
- whether the text stands out enough to read
- how easy the text is to see against the background
Usage example
Light grey text on white failed the contrast ratio check, so we darkened it to pass accessibility standards.
Don't confuse with…
- saturationContrast ratio is about difference in lightness between two colours; saturation is how vivid one colour is.
Categories
- Color