ข้ามไปยังเนื้อหาหลัก

เครื่องตรวจสอบความคมชัดสี

เครื่องมือสำหรับนักพัฒนา

อัตราส่วน WCAG AA/AAA ผ่านความสว่างสัมพัทธ์

ดูคำตอบอย่างรวดเร็ว

Color Contrast Checker: WCAG AA/AAA ratios via relative luminance. Color Contrast Checker uses standard developer formulas to compute accurate results instantly.

ตัวอย่างข้อความ Sample text
หัวข้อขนาดใหญ่ Large heading
อัตราส่วนคอนทราสต์
7.00:1
AAA
AA 正文 4.5:1
ผ่าน
AA 大字 3:1
ผ่าน
AAA 正文 7:1
ผ่าน
AAA 大字 4.5:1
ผ่าน

การกำหนดคอนทราสต์

Fail
เฉพาะตัวอักษรขนาดใหญ่ AA
AA
AAA

7.00:1 — AAA

ตารางเปรียบเทียบเกณฑ์ WCAG 2.1

ระดับเนื้อหาหลักตัวอักษรขนาดใหญ่การตัดสินใจปัจจุบัน
AA≥ 4.5:1≥ 3:1ผ่าน
AAA≥ 7:1≥ 4.5:1ผ่าน

ตัวอักษรขนาดใหญ่ = ≥18pt (24px) หรือ ≥14pt (18.7px) ตัวหนา UI ที่ไม่ใช่ข้อความ (กรอบโฟกัส, ขอบของคอนโทรล) ต้องมีอัตราส่วน 3:1

ขั้นตอนการคำนวณ

  1. 1Relative luminance: fg = 0.0999, bg = 1.0000 (sRGB → linear → 0.2126R+0.7152G+0.0722B)
  2. 2อัตราคอนทราสต์ = (ส่วนที่สว่าง + 0.05) / (ส่วนที่มืด + 0.05) = 7.00:1
  3. 3WCAG 2.1: ระดับ AA ต้องการอัตราส่วนคอนทราสต์ 4.5:1 สำหรับข้อความปกติ, 3:1 สำหรับข้อความขนาดใหญ่ (≥18pt หรือ 14pt ตัวหนา) ระดับ AAA ต้องการ 7:1 / 4.5:1
ประมาณ 8% ของผู้ชายมีความผิดปกติในการมองเห็นสีแดง-เขียว — อย่าใช้แค่สีเพื่อสื่อสารข้อมูล ต้องใช้ไอคอน/ข้อความด้วย ข้อกำหนดคอนทราสต์ยังใช้กับขอบส่วนประกอบ UI ด้วย (WCAG 1.4.11: ตัวบ่งชี้โฟกัสและขอบส่วนควบคุมต้องมีอัตราส่วน 3:1)

เครื่องมือนี้มีประโยชน์กับคุณไหม?

วิธีใช้งาน

  1. Paste or type content: drop code/text into the Color Contrast Checker or fill the parameters.
  2. Choose mode/options: switch format, rules or processing as needed.
  3. Live output: results appear instantly — nothing is submitted, data stays in your browser.
  4. One-click copy: copy the output straight into your development environment.

ประเด็นสำคัญ

  • Color Contrast Checker is a free online developer tool — open and use, no sign-up.
  • All calculations run locally in your browser; your data never leaves the device.
  • Key capability: WCAG AA/AAA ratios via relative luminance.
  • Results come with formulas and reference tables so you can verify every number.

หลักการและสูตรการคำนวณ

Color Contrast Checker formula

Color Contrast Checker uses standard developer formulas to compute accurate results instantly.

คำถามที่พบบ่อย

How do I use the Color Contrast Checker?
Open the page and fill in the input fields — results update automatically. WCAG AA/AAA ratios via relative luminance.
Are the results accurate?
Yes. Standard formulas and conversion factors are used and verified.
Is it free? Do I need to sign up?
Completely free. No registration, login or download required.
Does it work on mobile?
Yes. The responsive design works on phones, tablets and desktops.
Is my data saved?
No. Everything runs locally in your browser.

เครื่องมือที่เกี่ยวข้อง

ดูเครื่องมือทั้งหมด 55 รายการในหมวดหมู่นี้ →

คู่มือที่เกี่ยวข้อง

แหล่งที่มาและการอัปเดต

Based on RFC 4648, ECMA-262 and related specifications. Last updated: 2025-07

อัปเดตล่าสุด:

สูตรและเนื้อหาในหน้านี้ได้รับการตรวจสอบซ้ำโดยทีมงาน YiJianSuan มีไว้สำหรับการเรียนรู้อ้างอิงเท่านั้น สำหรับการใช้งานจริงโปรดปฏิบัติตามข้อมูลอย่างเป็นทางการ

เนื้อหานี้ได้รับการดูแลและตรวจสอบซ้ำเป็นประจำโดยทีมงานแก้ไขของ YiJianSuan ขั้นตอนการอัปเดตและตรวจสอบสามารถดูได้ที่นโยบายการแก้ไขเนื้อหา.

อ้างอิงหน้านี้: YiJianSuan. เครื่องตรวจสอบความคมชัดสี[EB/OL]. https://www.yijiansuan.com/th/c/dev/contrast-check

ผลลัพธ์ที่ได้จากเครื่องมือนี้มีไว้สำหรับการอ้างอิงเท่านั้น ไม่ถือเป็นคำแนะนำทางวิชาชีพใดๆ โปรดใช้ผลการคำนวณอย่างเป็นทางการเป็นหลัก