Kiểm tra tỷ lệ tương phản giữa hai màu so với các cấp độ trợ năng WCAG AA và AAA.
Cách dùng Kiểm tra tương phản
Chọn một màu chữ và một màu nền.
Đọc tỷ lệ tương phản và các huy hiệu đạt hoặc không đạt WCAG.
Điều chỉnh màu cho đến khi chúng đạt cấp độ bạn cần.
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.
Câu hỏi thường gặp
WCAG AA yêu cầu 4,5:1 cho chữ thường và 3:1 cho chữ lớn (18pt hoặc 14pt đậm). AAA yêu cầu lần lượt 7:1 và 4,5:1.
Chữ ít nhất 24px (18pt), hoặc 18,66px (14pt) khi đậm. Chữ lớn được phép có tỷ lệ tương phản thấp hơn.
Từ độ sáng tương đối của mỗi màu bằng công thức WCAG chính thức, cho một giá trị từ 1:1 (không tương phản) đến 21:1 (đen trên trắng).
Nhúng công cụ này
Thêm công cụ này vào trang web của riêng bạn. Sao chép đoạn mã bên dưới; nó tự động cập nhật.
<iframe src="https://monu.tools/embed/vi/color-contrast-checker" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>Công cụ liên quan
Định dạng và làm đẹp truy vấn SQL với ngắt dòng theo mệnh đề và viết hoa từ khóa nhất quán, hoặc thu gọn chúng về một dòng.
Làm đẹp XML với thụt lề đúng, hoặc thu gọn về một dòng. Chú thích, CDATA và chỉ thị xử lý được giữ nguyên.
Làm đẹp CSS với thụt lề gọn gàng, hoặc thu gọn để giảm kích thước tệp. Xử lý media query, calc() và chú thích giấy phép.
Làm đẹp HTML với thụt lề nhận biết khối, hoặc thu gọn nó. Nội dung của pre, textarea, script và style được giữ nguyên.