Monu Tools

Kiểm tra độ tương phản màu

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

  1. 01

    Chọn một màu chữ và một màu nền.

  2. 02

    Đọc tỷ lệ tương phản và các huy hiệu đạt hoặc không đạt WCAG.

  3. 03

    Điều chỉnh màu cho đến khi chúng đạt cấp độ bạn cần.

What the contrast checker does

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.

Why contrast matters

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.

WCAG AA and AAA thresholds

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.

How the ratio is calculated

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).

Runs in your browser

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

Tôi cần tỷ lệ tương phản nào?

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.

Cái gì được tính là chữ lớn?

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ỷ lệ được tính như thế nào?

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).

Nguồn

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