Skip to content
项目

关于

用于计算任意两个有效 CSS 颜色值之间对比度的工具。

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
-1

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Logo

Contrast Ratio

Official version

A tool to calculate the WCAG (Web Content Accessibility Guidelines) contrast ratio of text on a web page.

WCAG define two levels of compliance that differ only in the contrast ratio:

Level AA:

  • 4.5:1 for normal text
  • 3:1 for large text
  • 3:1 for graphics and user interface components (such as form input borders) Level AAA:
  • 7:1 for normal text
  • 4.5:1 for large text

Large text is defined as 14 point (typically 18.66px, or 1.2rem when the root font is 16px) and bold or larger, or 18 point (typically 24px or 1.5rem) or larger.

NOTE: this repo does not create the public website any longer. The code is used as the basis for the page at Siege Media.

Acknowledgements

探索相关项目

加载中…