TOOLGRIDTOOLGRID
首页图片工具PDF 工具视频工具音频工具
More
开发工具Web 与 SEO分类文本工具计算器测试方法关于
Menu
首页图片工具PDF 工具视频工具音频工具开发工具Web 与 SEO分类文本工具计算器测试方法关于
109 个工具已上线
TOOLGRIDTOOLGRID

需要某项具体功能时,完整工具箱始终可用。

© 2026 TOOLGRID. All rights reserved.

Tools

图片工具PDF 工具视频工具音频工具转换工具开发工具Web 与 SEO文本工具计算器

Resources

分类测试方法隐私政策

Company

关于条款联系
CSS 与颜色
  1. 首页
  2. CSS 与颜色
  3. Color Contrast Checker

Color Contrast Checker

Check foreground-background color contrast against WCAG 2.1 AA and AAA thresholds for text and UI.

开始使用这个工具
浏览器本地处理不向 TOOLGRID 上传输入复制前先检查
DEVELOPER 工作流Color Contrast Checker 能力卡
输入
Pasted text or typed values
输出
Color Contrast Checker result
运行引擎
Browser APIs
审核日期
2026-07-17
浏览器本地工作区在下方开始,使用浏览器本地处理。

工具代码会在浏览器中处理所选文件和输入内容,不会将其提交给 TOOLGRID 的处理接口。 TOOLGRID 只衡量工具使用情况,不记录你输入的内容。

  • 不上传工具输入至 TOOLGRID
  • 不登录
  • 复制前先检查

Loading tool…

浏览器内运行

这个工具能做什么

01

Enter two colors and instantly see the WCAG 2.1 contrast ratio plus pass/fail results for normal text, large text, and non-text UI components.

02

Color Contrast Checker computes the exact luminance-based contrast ratio between a foreground and background color.

03

It flags compliance with WCAG 2.1 AA and AAA thresholds for normal text (4.5:1, 7:1), large text (3:1, 4.5:1), and non-text UI (3:1).

代表性任务

这个工具适合解决什么问题

Try a representative color contrast checker task

Color Contrast Checker computes the exact luminance-based contrast ratio between a foreground and background color.

使用边界

依赖结果前需要检查什么

  • Performance and maximum practical input size depend on browser memory, device speed, and the structure of the input.
  • Review the generated result before replacing or publishing an original file.
MDN Web APIs
继续当前流程下一步常用工具

如果还需要校验、转换或复用结果,可以继续打开相近的浏览器本地工具。

当前结果
产物CSS 数值动作复制结果
Color ConverterCSS 与颜色本地产物CSS 数值动作复制结果立即本地使用→

如何使用

01
01Pick foreground and background colors using the color picker or paste a hex/rgb value.
02Read the ratio and AA/AAA indicators — all thresholds are shown side-by-side.
03Press Swap colors to quickly invert and re-check.

常见问题

02
What's the difference between AA and AAA?

AA is the baseline required by most accessibility regulations. AAA is a stricter enhanced level. For normal text, AA is 4.5:1 and AAA is 7:1; for large text, AA is 3:1 and AAA is 4.5:1.

What counts as large text?

WCAG defines large text as at least 18pt (24px) regular, or 14pt (18.66px) bold. Anything smaller falls under the normal text thresholds.

How is the ratio calculated?

We follow WCAG 2.1's formula: convert each color to sRGB relative luminance, then compute (L1 + 0.05) / (L2 + 0.05) where L1 is the lighter of the two. The ratio ranges from 1:1 to 21:1.

相关工具

01
本地

Color Converter→立即本地使用No TOOLGRID input upload

Convert colors between Hex, RGB, HSL, and OKLCH with a live swatch and hue slider.

CSS 数值复制结果