Skip to main content
SiteIndex
开发者可以使用

WCAG AA 和 AAA 颜色对比度检测

检查文字与背景颜色的对比度是否符合 WCAG AA 或 AAA 标准,让内容更易阅读。

使用指南

交互式工具区

无需注册账号
WCAG 颜色对比度检测器

At 18px regular this counts as normal text — AA requires 4.5:1, and this pair passes.

The quick brown fox jumps over the lazy dog
Contrast ratio
14.68:1
AA normal text (4.5:1)Pass
AA large text (3:1)Pass
AAA normal text (7:1)Pass
AAA large text (4.5:1)Pass
UI components (3:1)Pass

The UI components check (WCAG 1.4.11) covers non-text elements such as borders, icons and focus indicators, which need 3:1 against adjacent colors.

Color blindness simulation

Protanopia (red-blind)Aa15.42:1
Deuteranopia (green-blind)Aa15.58:1
Tritanopia (blue-blind)Aa13.61:1
Achromatopsia (no colour)Aa14.74:1

Simulations are approximations of how the pair may look; the ratio is recalculated from the simulated colors.

WCAG 颜色对比度检测器是什么?

检查文字与背景颜色的对比度是否符合 WCAG AA 或 AAA 标准,让内容更易阅读。

工作原理

检查文字与背景颜色的对比度是否符合 WCAG AA 或 AAA 标准,让内容更易阅读。

常见用途

检查文字与背景颜色的对比度是否符合 WCAG AA 或 AAA 标准,让内容更易阅读。

使用限制

结果可能因浏览器、网络、输入内容和外部服务而异。本工具仅供参考,不能替代专业诊断或建议。

常见问题
WCAG 颜色对比度检测器是什么?
检查文字与背景颜色的对比度是否符合 WCAG AA 或 AAA 标准,让内容更易阅读。

相关工具