达到 AA:正文和大号文本的阈值
了解正文和大号文本所需的最低比例
达到 AA:正文和大号文本的阈值 是 CoddyKit 上的免费 Web Accessibility Academy 课时。 这是第 2 节课,共 4 节。 你可以在下方免费阅读本课时的完整内容 — 然后在浏览器中使用内置代码编辑器和全天候 AI 导师进行实践。 这是 Web Accessibility Academy 学习路径的一部分,你的进度在网页和 CoddyKit 应用中同步。 Web Accessibility Academy 课程共包含 4 节课。
本课时的部分内容尚未翻译,以英文显示。
Meet the AA Target
Most teams commit to WCAG Level AA for contrast. It is strict enough to help real users and realistic enough to actually ship.
Normal Text: 4.5 to 1
For body copy, AA asks for at least 4.5:1. That covers paragraphs, labels, and most of the words on your page.
What Counts as Large
Large text means 24px regular, or 18.66px and bold. At that size letters are easier to read, so the rules ease up.
Large Text: 3 to 1
Large text only needs 3:1. The bigger shapes carry more visual weight, so a smaller brightness gap still reads clearly.
Bold Lowers the Size Bar
Weight matters: bold text qualifies as large at a smaller 18.66px, since thicker strokes are simply easier for the eye to catch.
Points vs Pixels
WCAG defines large as 18pt or 14pt bold, which map to 24px and 18.66px in CSS. Tools usually do the conversion for you.
UI Components: 3 to 1
Buttons, inputs, and focus indicators must hit 3:1 against their surroundings under criterion 1.4.11, so controls stay visible.
AAA Goes Further
Want stronger guarantees? AAA raises normal text to 7:1 and large text to 4.5:1, but most products target AA as their baseline.
Disabled and Logos Are Exempt
A few things skip the rule: disabled controls, pure decoration, and brand logos have no minimum contrast requirement.
Placeholder Text Still Counts
That faint gray placeholder is real text, so it must meet 4.5:1 too. Most defaults fail, so darken them on purpose.
Sizing Large Text in CSS
This heading hits the large-text size, so a 3:1 ratio is enough for it to pass AA.
h2 {
font-size: 24px;
font-weight: 400;
}Quick Check
Pin down the AA numbers for different text.
Recap: Hitting AA
Remember the pair: 4.5:1 for normal text and 3:1 for large text or UI parts. Nail these and your contrast passes AA. Next: never relying on color alone. 🎯
常见问题解答
「达到 AA:正文和大号文本的阈值」课时是免费的吗?
是的 — 「达到 AA:正文和大号文本的阈值」的完整文本可在网页上免费阅读。要进行交互式练习(内置代码编辑器和全天候 AI 导师)并解锁 Web Accessibility Academy 课程的其余内容,请升级到 CoddyKit PRO。 Web Accessibility Academy 课程共包含 4 节课。
「达到 AA:正文和大号文本的阈值」这节课中我会学到什么?
了解正文和大号文本所需的最低比例 你通过在浏览器中直接运行的动手代码来练习 Web Accessibility Academy,全天候 AI 导师会在你学习这节课的过程中回答你的问题。
学习 Web Accessibility Academy 需要有经验吗?
无需任何先前经验。CoddyKit 上的 Web Accessibility Academy 课程适合初学者到高级学习者,你可以从这里开始或从头开始,按照自己的节奏学习。 这是第 2 节课,共 4 节。
「达到 AA:正文和大号文本的阈值」课时需要多长时间?
大多数 CoddyKit 课程大约需要 5–10 分钟。每节课都很精短且互动,所以你能稳步进步,并在网页和应用中从离开的地方继续。
我能在这节 Web Accessibility Academy 课中编写并运行代码吗?
能。每节 Web Accessibility Academy 课都包含内置代码编辑器,你可以在浏览器中直接编写并运行真实代码,并获得即时 AI 反馈 — 无需本地设置。
此课程中的所有课时
- 为什么需要对比度比例
- 达到 AA:正文和大号文本的阈值
- 不要只依赖颜色
- 使用免费工具检查对比度