Color Contrast Ratio
Calculator
Results
- Contrast ratio
- 8.5
Media and photography results
| Contrast ratio | 8.5 |
formula-map diagram
- Contrast ratio
- 8.5
Media and photography relationship
Formula
ratio = (L₁ + 0.05) ÷ (L₂ + 0.05)= 8.5
Note
This result uses the values you entered and a simplified planning equation; verify quantities and local requirements before purchasing or building.
More in Media and photography
See all →Frequently asked questions
How is the contrast ratio between two colors calculated?+
The calculator computes each color's relative luminance from its RGB values using the WCAG formula, then divides the lighter luminance by the darker one (plus a small offset), giving a ratio expressed as X:1. Black on white produces the maximum possible ratio of 21:1.
What contrast ratio do I need to pass accessibility guidelines?+
WCAG 2.1 requires a minimum of 4.5:1 for normal body text and 3:1 for large text (18pt+ or 14pt+ bold) to meet Level AA, while Level AAA raises those thresholds to 7:1 and 4.5:1 respectively. Falling short of these ratios means text may be hard to read for users with low vision.
Why does relative luminance matter more than just comparing RGB brightness directly?+
Human eyes perceive green as brighter than red or blue at the same numeric intensity, so the WCAG luminance formula weights each RGB channel differently (giving green the most weight) before combining them, producing a result that reflects actual perceived brightness rather than a naive average of the RGB values.
Why can two colors that look quite different still fail a contrast check?+
Contrast ratio depends specifically on luminance (lightness), not hue or saturation, so two colors can be very different in appearance, like a saturated orange and a saturated blue, but have similar luminance and therefore poor contrast against each other. This is why colorblind-safe design still requires checking actual contrast, not just visual color difference.
Does contrast ratio checking apply only to text, or other UI elements too?+
WCAG also sets a lower 3:1 minimum for non-text elements like button borders, form field outlines, and icons that convey important information, recognizing that these need to be distinguishable but don't require the same reading-focused contrast as body text. The same luminance-ratio calculation applies, just with a different passing threshold.