メインコンテンツへスキップ

色のコントラストチェッカー (WCAG)

Enter the text color and the background color: the ratio shows with two decimals, never rounded up, with the WCAG 2.2 AA and AAA verdict and the closest color that passes when the pair fails. You can also check a whole palette and how the pair looks with color blindness.

色はお使いの端末で計算されます

Colors

Accepts #777, #777777, #00000080, rgb(), hsl(), oklch() and CSS names such as navy.

Contrast result

4.47:1. Passes only for large text and components

4.47:1

Passes only for large text and components

0.03 short of 4.5:1, the next level.

24 px heading

16 px body text, the size of a paragraph.

13 px note, like a caption.

Button
Result by WCAG 2.2 level
UseAAAAA
Normal textBelow 24 px (18.67 px bold)不合格4.50:1不合格7:1
Large text24 px or more, or 18.67 px bold合格3:1不合格4.50:1
Components and graphicsInput border, icon, chart line合格3:1none

Closest colors that pass

Same hue, only lighter or darker; saturation drops only when the color would not fit the screen.

Adjust the text

Adjust the background

APCA (WCAG 3 candidate)

Lc 71.1 dark text on a light background

  • belowBody text, preferred level (Lc 90)
  • belowBody text (Lc 75)
  • meetsOther content text (Lc 60)
  • meetsLarge heading (Lc 45)
  • meetsAuxiliary text, placeholder and icon (Lc 30)

APCA Bronze simple mode levels. Not a standard: audits and laws follow WCAG 2.2.

How other people see it

Simulated with the Machado (2009) matrices: an estimate, not a WCAG verdict. With red the ratio changes a lot; the warning shows when text and background become nearly the same color.

  • Typical vision4.47:1 · fails AA
  • Deuteranomaly (weak green)4.47:1 · fails AA
  • Protanomaly (weak red)4.47:1 · fails AA
  • Deuteranopia (no green)4.47:1 · fails AA
  • Protanopia (no red)4.47:1 · fails AA
  • Tritanopia (no blue)4.47:1 · fails AA
  • Achromatopsia (grayscale only)4.47:1 · fails AA
Color codes

文字色

背景色

Saved pairs (0)

Kept only in this browser, up to 24 pairs.

No saved pairs yet.

Everything is calculated in the browser. To get the colors from a screenshot or photo, use the Color Extractor