对照 WCAG AA 和 AAA 无障碍级别检查两种颜色之间的对比度。
如何使用 对比度检查器
选择文字颜色和背景颜色。
查看对比度以及 WCAG 通过或未通过的标记。
调整颜色,直到达到你需要的级别。
This is a WCAG color contrast checker that shows the exact contrast ratio between a text color and a background color, and whether it meets the AA and AAA accessibility levels. Pick colors with the swatch or by hex code and see a live preview.
Adjust the two colors until the badges pass the level you need, and the result updates instantly as you go.
Text that is too close in lightness to its background is hard or impossible to read, especially for people with low vision or color vision deficiencies, or for anyone on a phone in bright sunlight. Enough contrast keeps your content legible for everyone.
The Web Content Accessibility Guidelines (WCAG) set the standard. AA, the level most sites aim for and that many accessibility laws reference, requires a ratio of 4.5:1 for normal text and 3:1 for large text. AAA is stricter at 7:1 and 4.5:1.
Large text gets a lower threshold because bigger letters stay legible at less contrast. It counts as large at roughly 24px (18pt), or 18.66px (14pt) when bold.
The ratio comes from the relative luminance of the two colors using the official WCAG formula, producing a value from 1:1 (no contrast, identical colors) up to 21:1 (black on white).
Everything is calculated in your browser, so it is instant and private. Nothing you pick is uploaded anywhere.
常见问题
WCAG AA 要求正常文字 4.5:1,大字号文字(18pt 或 14pt 加粗)3:1。AAA 分别要求 7:1 和 4.5:1。
至少 24px(18pt)的文字,或加粗时 18.66px(14pt)。大字号文字允许更低的对比度。
根据每种颜色的相对亮度,使用官方 WCAG 公式计算,得出从 1:1(无对比)到 21:1(白底黑字)的值。
嵌入此工具
将此工具添加到你自己的网站。复制下方代码片段即可,它会自动保持最新。
<iframe src="https://monu.tools/embed/zh/color-contrast-checker" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>相关工具