Bahasa: Bahasa Indonesia

Pemeriksa kontras warna

Berjalan di browser ini. Tidak ada yang Anda masukkan dikirim ke Alinxs.

Contoh kalimat untuk memeriksa keterbacaan warna.

Contoh kalimat untuk memeriksa keterbacaan warna.

Rasio kontras —

AAAAA
Teks normal 4.5 / 7——
Teks besar (24px, atau 18,66px tebal) 3 / 4.5——
Komponen antarmuka dan grafik 3——

Practical guide

Color Contrast Checker — WCAG AA and AAA

Designers and developers use contrast checks to confirm that text stays readable for people with low vision and on poor screens. Pick colors with the color pickers or type hex codes; the preview, ratio and pass/fail table update immediately.

How to use it

  1. Choose a text color and a background color, or type hex values such as #1f2937 and #ffffff.
  2. Read the contrast ratio and check the AA and AAA columns for normal text, large text and interface components.
  3. Use Swap to test the reversed pair and Copy result to paste the findings into a review.

Worked example

Input
#777777 text on #ffffff
Result
Ratio 4.47:1 — normal text fails AA (needs 4.5), large text passes AA (needs 3) and fails AAA (needs 4.5).

How the result is produced

Each sRGB channel is linearized and combined into relative luminance (0.2126 R + 0.7152 G + 0.0722 B); the ratio is (lighter + 0.05) / (darker + 0.05), as defined in WCAG 2.

The ratio is truncated to two decimals rather than rounded, so a value just below a threshold is never shown as passing.

Important limits

  • Only solid colors are checked; transparency, gradients, images and text shadows need a manual check of the final rendered colors.
  • WCAG treats 24px regular or 18.66px bold text as large; font weight and rendering still affect real readability.
  • Contrast is one part of accessibility. It does not check focus visibility, color-only meaning or text size.

Questions and answers

What do AA and AAA mean?

They are WCAG conformance levels. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1 and 4.5:1.

Why does 4.49 not pass?

WCAG thresholds are minimums. The tool truncates rather than rounds so it never reports a pass the colors do not meet.

Does it support 3-digit hex?

Yes. #abc is expanded to #aabbcc.