免费对比度检查器
检查文本和背景颜色的对比度是否符合WCAG 2.1无障碍标准。
94,217+ contrast checks performed
Contrast Ratio
17.06:1
Large Text Preview (24px)
Normal body text preview (16px). The quick brown fox jumps over the lazy dog. This sample shows how your color combination looks at typical body copy size.
Small text (14px) — often used for captions, footnotes, and metadata.
Reversed: background on text color (17.06:1 — same ratio)
AA Normal Text
Requires 4.5:1
AA Large Text
Requires 3:1
AAA Normal Text
Requires 7:1
AAA Large Text
Requires 4.5:1
Ready to build an accessible website with these colors?
Build with these colors什么是对比度检查器?
对比度检查器计算文本颜色和背景颜色之间的对比度。足够的颜色对比度对于确保所有用户(包括视觉障碍者)能够阅读内容至关重要。
WCAG要求普通文本至少4.5:1、大文本至少3:1的对比度。本工具即时计算对比度并显示AA/AAA合规状态。
WCAG Contrast Levels Explained
AA Normal Text
4.5:1 minimum
Requires a minimum contrast ratio of 4.5:1. This is the most common compliance target and applies to body text under 18pt (or 14pt bold).
AA Large Text
3:1 minimum
Requires a minimum contrast ratio of 3:1. Applies to text that is at least 18pt (24px) or 14pt bold (18.66px bold).
AAA Normal Text
7:1 minimum
The highest standard, requiring 7:1 contrast ratio. Ensures readability for users with moderately low vision (approximately 20/80).
AAA Large Text
4.5:1 minimum
Requires 4.5:1 for large text at the AAA level. Provides enhanced readability for headers and display text.
对比度建议
Start with contrast
浅灰色背景有时比纯白更护眼。
Don't rely on color alone
浅色模式对比度好不代表暗色模式也好。两者都要测试。
Test on real devices
为色盲用户同时使用图标、下划线、粗体等。
Use dark mode too
If your site supports dark mode, verify contrast ratios for both themes. A color pair that passes in light mode may fail in dark mode.
Mind the font weight
Thin and light font weights reduce perceived contrast. If you use weights below 400, aim for a higher contrast ratio than the minimum.
Check interactive states
Hover, focus, and active states often use different colors. Make sure all interactive states meet contrast requirements, not just the default.
对比度检查器:Kleap vs 替代方案
| 功能 | Kleap | WebAIM | Coolors | Adobe Color |
|---|---|---|---|---|
| 价格 | 完全免费 | 免费 | 免费/付费 | Free (with Adobe account) |
| Real-time Preview | Yes, live text on background | Yes, basic | Yes | Yes |
| Nearest Accessible Color | Yes, auto-suggested | No | No | Partial |
| WCAG级别 | AA和AAA | AA和AAA | 仅AA | AA + AAA |
| 网站构建器 | 内置AI构建器 | 无 | 无 | No |
| Swap Colors Button | Yes | No | No | No |
| Random Accessible Pair | Yes | No | No | No |