2026-08-12
Contrast ratio compares the relative luminance of two colours. It goes from 1:1 (identical) to 21:1 (black on white). Palette Drift shows it on every swatch.
For body text, aim for at least 4.5:1. For large text, 18px bold or 24px regular and up, 3:1 is the usual minimum. Icons and borders that carry meaning should also reach 3:1 against their background.
Red on green can have terrible contrast even though the colours look very different. Luminance is about lightness, and many people can't distinguish red from green at all. Always check the number.
In dark themes, pure white text on pure black can feel harsh. A light grey on a very dark grey, still above 7:1, is easier on the eyes for long reading.