ตรวจสอบอัตราส่วนความคมชัดระหว่างสองสีตามระดับการเข้าถึง WCAG AA และ AAA
วิธีใช้ ตรวจสอบ Contrast
เลือกสีข้อความและสีพื้นหลัง
อ่านอัตราส่วนความคมชัดและป้าย WCAG pass หรือ fail
ปรับสีจนผ่านระดับที่คุณต้องการ
This is a WCAG color contrast checker that shows the exact contrast ratio between a text color and a background color, and whether it meets the AA and AAA accessibility levels. Pick colors with the swatch or by hex code and see a live preview.
Adjust the two colors until the badges pass the level you need, and the result updates instantly as you go.
Text that is too close in lightness to its background is hard or impossible to read, especially for people with low vision or color vision deficiencies, or for anyone on a phone in bright sunlight. Enough contrast keeps your content legible for everyone.
The Web Content Accessibility Guidelines (WCAG) set the standard. AA, the level most sites aim for and that many accessibility laws reference, requires a ratio of 4.5:1 for normal text and 3:1 for large text. AAA is stricter at 7:1 and 4.5:1.
Large text gets a lower threshold because bigger letters stay legible at less contrast. It counts as large at roughly 24px (18pt), or 18.66px (14pt) when bold.
The ratio comes from the relative luminance of the two colors using the official WCAG formula, producing a value from 1:1 (no contrast, identical colors) up to 21:1 (black on white).
Everything is calculated in your browser, so it is instant and private. Nothing you pick is uploaded anywhere.
คำถามที่พบบ่อย
WCAG AA กำหนด 4.5:1 สำหรับข้อความปกติและ 3:1 สำหรับข้อความขนาดใหญ่ (18pt หรือ 14pt ตัวหนา) AAA กำหนด 7:1 และ 4.5:1 ตามลำดับ
ข้อความที่มีอย่างน้อย 24px (18pt) หรือ 18.66px (14pt) เมื่อตัวหนา ข้อความขนาดใหญ่อนุญาตให้มีอัตราส่วนความคมชัดต่ำกว่า
จากความสว่างสัมพัทธ์ของแต่ละสีโดยใช้สูตร WCAG อย่างเป็นทางการ ให้ค่าจาก 1:1 (ไม่มีความคมชัด) ถึง 21:1 (ดำบนขาว)
ฝังเครื่องมือนี้
เพิ่มเครื่องมือนี้ลงในเว็บไซต์ของคุณเอง คัดลอกสคริปต์ด้านล่าง โดยจะอัปเดตให้เป็นปัจจุบันโดยอัตโนมัติ
<iframe src="https://monu.tools/embed/th/color-contrast-checker" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>เครื่องมือที่เกี่ยวข้อง
จัดรูปแบบและปรับปรุง SQL queries ด้วยการขึ้นบรรทัดใหม่สำหรับ clause และการใช้ตัวพิมพ์ keyword สม่ำเสมอ หรือย่อให้เป็นบรรทัดเดียว
ปรับปรุง XML ด้วยการเยื้องที่เหมาะสม หรือย่อให้เป็นบรรทัดเดียว ความคิดเห็น CDATA และคำสั่งประมวลผลถูกเก็บไว้
ปรับปรุง CSS ด้วยการเยื้องที่สะอาด หรือย่อเพื่อลดขนาดไฟล์ จัดการ media queries, calc() และ license comments
ปรับปรุง HTML ด้วยการเยื้องที่รู้จัก block หรือย่อ เนื้อหาของ pre, textarea, script และ style ถูกเก็บไว้