Kiểm tra tương phản màu theo chuẩn WCAG 2.1 AA/AAA cho văn bản và thành phần giao diện.
Màu
Chữ / màu chữ
#1A1A1A
Nền
#FFFFFF
Xem trước
Chữ lớn 24px
Chữ thường 16px — the quick brown fox jumps over the lazy dog.
Chú thích nhỏ 13px.
Tỉ lệ tương phản
17.40:1
AA — Chữ thường (≥ 4.5)
ĐạtAA — Chữ lớn (≥ 3)
ĐạtAAA — Chữ thường (≥ 7)
ĐạtAAA — Chữ lớn (≥ 4.5)
ĐạtThành phần giao diện / đồ họa (≥ 3)
ĐạtAPCA (draft WCAG 3)
APCA is the perceptual-contrast model proposed for WCAG 3. It returns a signed "Lc" score — sign shows polarity (dark-on-light vs light-on-dark), magnitude is what you check against the thresholds below. Not backward-compatible with the WCAG 2 ratio above — the two can disagree.
Lc
102.1
Dark text on light backgroundPreferred body text (|Lc| ≥ 90)
ĐạtMinimum body text (|Lc| ≥ 75)
ĐạtLarge or bold text (|Lc| ≥ 60)
ĐạtLarge text only (|Lc| ≥ 45)
ĐạtNon-text / UI components (|Lc| ≥ 30)
Đạt