Hex ke RGB
Ubah warna hex 3, 6, dan 8 digit menjadi RGB, RGBA, dan HSL di browser Anda.
Periksa kontras WCAG antara warna teks dan latar, dengan hasil lulus/gagal untuk AA dan AAA.
Alat ini berjalan di browser Anda. Input, file, dan nilai yang dihasilkan tetap di perangkat ini. Favorit dan alat yang baru dipakai, jika Anda menggunakannya, hanya menyimpan nama alat di penyimpanan lokal — tidak pernah kata sandi, dokumen, atau isi kode QR. Lihat kebijakan privasi.
Untuk saat ini, panduan lengkap alat ini (cara pakai, contoh, dan FAQ) masih dalam bahasa Inggris.
Compare two solid colors and show the WCAG 2 contrast ratio for normal and large text. Designers checking a button label against its background use it before they ship the pair. Black on white is 21:1, and a photograph behind the text is outside the calculation.
The ratio is 21:1, which meets every listed WCAG contrast criterion.
A pair such as #777777 on #999999 fails normal-text AA because the ratio is well below 4.5:1.
The tool uses WCAG 2 relative luminance. A pass means the pair meets the selected WCAG contrast criterion. Contrast is only one part of accessibility. Font size, weight, spacing and keyboard access still matter. The checker does not claim a design is universally accessible.
The result is the WCAG 2 contrast ratio of two colors the parser can read. A pass is not a full accessibility audit. Font size is not read from a stylesheet, and a color the parser rejects produces no ratio.
See the disclaimer for what these tools do not cover.
Ubah warna hex 3, 6, dan 8 digit menjadi RGB, RGBA, dan HSL di browser Anda.
Pilih warna dengan pemilih bawaan browser dan salin nilai HEX, RGB, atau HSL.
Buat gradien CSS linear, radial, atau kerucut, atau teks bergradien, lalu salin CSS atau HTML-nya.
Perkirakan warna dominan gambar JPG, PNG, atau WebP dari sampel piksel.
Atur offset, blur, spread, dan warna, lalu salin nilai CSS box-shadow.
Rapikan JSON agar mudah dibaca, perkecil, atau periksa validitasnya. Komentar, koma di akhir, dan tanda kutip tunggal tidak diperbolehkan. Tidak mengonversi ke CSV.
Normal sample text
Large sample text
18.88:1
Foreground #111111 (rgb(17, 17, 17), hsl(0, 0%, 7%)) on #ffffff (rgb(255, 255, 255)).
WCAG 2.1 contrast uses relative luminance. Normal text needs 4.5:1 for AA and 7:1 for AAA. Large text (18pt or 14pt bold) needs 3:1 for AA and 4.5:1 for AAA.
A pass means the pair meets the selected WCAG contrast criterion. Contrast is only one part of accessibility. Spacing, size, motion and keyboard use still matter.