颜色对比度检查器 (WCAG)
Enter the text color and the background color: the ratio shows with two decimals, never rounded up, with the WCAG 2.2 AA and AAA verdict and the closest color that passes when the pair fails. You can also check a whole palette and how the pair looks with color blindness.
颜色在你的设备上计算
Colors
Accepts #777, #777777, #00000080, rgb(), hsl(), oklch() and CSS names such as navy.
Contrast result
4.47:1. Passes only for large text and components
4.47:1
Passes only for large text and components
0.03 short of 4.5:1, the next level.
24 px heading
16 px body text, the size of a paragraph.
13 px note, like a caption.
Button| Use | AA | AAA |
|---|---|---|
| Normal textBelow 24 px (18.67 px bold) | 不通过4.50:1 | 不通过7:1 |
| Large text24 px or more, or 18.67 px bold | 通过3:1 | 不通过4.50:1 |
| Components and graphicsInput border, icon, chart line | 通过3:1 | none |
Closest colors that pass
Same hue, only lighter or darker; saturation drops only when the color would not fit the screen.
Adjust the text
Adjust the background
APCA (WCAG 3 candidate)
Lc 71.1 dark text on a light background
- belowBody text, preferred level (Lc 90)
- belowBody text (Lc 75)
- meetsOther content text (Lc 60)
- meetsLarge heading (Lc 45)
- meetsAuxiliary text, placeholder and icon (Lc 30)
APCA Bronze simple mode levels. Not a standard: audits and laws follow WCAG 2.2.
How other people see it
Simulated with the Machado (2009) matrices: an estimate, not a WCAG verdict. With red the ratio changes a lot; the warning shows when text and background become nearly the same color.
- Typical vision4.47:1 · fails AA
- Deuteranomaly (weak green)4.47:1 · fails AA
- Protanomaly (weak red)4.47:1 · fails AA
- Deuteranopia (no green)4.47:1 · fails AA
- Protanopia (no red)4.47:1 · fails AA
- Tritanopia (no blue)4.47:1 · fails AA
- Achromatopsia (grayscale only)4.47:1 · fails AA
Color codes
文字颜色
背景颜色
Saved pairs (0)
Kept only in this browser, up to 24 pairs.
No saved pairs yet.
Everything is calculated in the browser. To get the colors from a screenshot or photo, use the Color Extractor