Colour input
Accepted formats: #RGB, #RRGGBB, #RRGGBBAA (# optional), rgb(r, g, b), rgba(r, g, b, a); channels are integers 0–255 and alpha is 0–1. Swapping recomputes compositing from the raw inputs, so with alpha involved the ratio can change.
Results
Contrast ratio —
Every verdict compares the unrounded ratio against the threshold; the two decimals shown are display only. A pair displaying 4.50 still fails if its unrounded ratio is below 4.5.
| Level | Threshold | Result |
|---|---|---|
| AA normal text | 4.5:1 | — |
| AA large text | 3.0:1 | — |
| AAA normal text | 7.0:1 | — |
| AAA large text | 4.5:1 | — |
| Non-text (icons, control borders, chart marks) | 3.0:1 | — |
Large text means at least 24 px, or at least 18.66 px (14 pt) when bold. The non-text row follows WCAG 1.4.11.
Preview
This is a 16 px normal-text preview, so you can feel how body text reads in this pair.
24 px large-text preview
Border sample