Colour Contrast Checker
Check whether a text and background pair passes WCAG contrast rules.
Giới thiệu Colour Contrast Checker
Pick a text colour and a background and see the contrast ratio with a live preview of real text, plus a pass or fail against each WCAG level: AA and AAA for normal text, for large text, and the 3:1 that icons and borders need. Useful before you commit a palette to a design.
Công cụ này chạy ngay trong trình duyệt của bạn, nên tệp không bao giờ rời khỏi thiết bị.
Cách dùng Colour Contrast Checker
- Pick the text colour and the background.
- Read the ratio and the pass or fail for each level.
- Adjust until body text passes AA.
Câu hỏi
What ratio do I need?
Normal text needs 4.5:1 for AA and 7:1 for AAA. Large text, meaning about 24px or 19px bold, needs 3:1 for AA. Icons and borders need 3:1.
What counts as large text?
Around 24px, or 19px when it is bold. Below that the normal-text rule applies.
Does passing AA mean the design is accessible?
It means the contrast is fine. Accessibility also covers focus states, keyboard use and not leaning on colour alone to carry meaning.
Công cụ liên quan
- Lorem Ipsum Generator – Make placeholder text by paragraphs, sentences or words.
- Định dạng & kiểm tra JSON – Làm đẹp, rút gọn và kiểm tra JSON. Chỉ ra chính xác dòng và cột của mọi lỗi.
- Đếm từ & ký tự – Đếm từ, ký tự, câu và đoạn văn, kèm thời gian đọc và các từ khóa nổi bật.
- Đổi kiểu chữ hoa thường – Đổi văn bản sang CHỮ HOA, chữ thường, Viết Hoa Mỗi Từ, Viết hoa đầu câu, camelCase, snake_case và nhiều kiểu khác.
- Tạo mật khẩu – Tạo mật khẩu ngẫu nhiên mạnh. Chọn độ dài và ký tự, và xem mật khẩu mạnh đến đâu.
- Tạo hash & UUID – Tạo UUID và hash MD5, SHA-1, SHA-256, SHA-384 hoặc SHA-512 của văn bản và tệp.
- Mã hóa & giải mã URL – Mã hóa hoặc giải mã URL và văn bản, và tách URL thành máy chủ, đường dẫn và các tham số truy vấn.
- Trình tạo sơ đồ trang web trực quan – Nhập địa chỉ một trang web và nhận bảng sơ đồ trực quan: menu, trang, sức khỏe SEO, thẻ theo dõi và phễu bán hàng, kèm trò chuyện trả lời về trang web.