Skip to content
tooljig
PricingSecurity
tooljig

Exact tools. Nothing leaves your device. Small, exact tools for everyday work. Most run entirely in your browser.

Instruments

  • Text tools
  • Developer tools
  • Calculators
  • Date & time
  • Converters
  • Generators

Files

  • PDF
  • Image
  • Video & Audio
  • Data
  • Web

Tooljig

  • Pricing
  • Security
  • Dashboard
  • About
  • Contact
  • Privacy
  • Terms
© 2026 TooljigFiles processed in the cloud are deleted automatically
Index / Converters / T-56

T-56 · Converters

Color Contrast Checker

Check the WCAG 2 contrast ratio between text and background colors, see AA and AAA pass or fail, and get the nearest text color that passes AA.

  • Runs in your browser
  • Nothing uploaded
  • No account
Instrument T-56 · Color Contrast CheckerLocal

HEX, rgb() or hsl().

HEX, rgb() or hsl().

Normal text: the quick brown fox jumps over the lazy dog.

Large text (24px)

Large bold text (18.66px bold)

Button outline
4.48:1
Contrast ratio
Fail
AA normal text · 4.5:1
Pass
AA large text · 3:1
Fail
AAA normal text · 7:1
Fail
AAA large text · 4.5:1
Pass
UI components & graphics (AA) · 3:1
Nearest darker (AA)#767676 · 4.54:1
Nearest lighter (AA)No variant in this direction reaches 4.5:1

About this instrument

What it does

Enter a text color and a background color as HEX, rgb() or hsl() to get their contrast ratio, computed with the WCAG 2.2 relative luminance formula, and a pass or fail for AA and AAA at normal and large text sizes and for non-text UI components. A live preview shows real text in both colors. If AA normal text fails, the checker suggests the nearest lighter and darker shade of your text color, keeping its hue and saturation, that reaches 4.5:1.

How to use it

  1. Enter or pick the text and background colors.
  2. Read the ratio and the AA, AAA and UI component results.
  3. If it fails, apply a suggested color or swap the two colors to compare.

Limits and notes

Good to know

  • Thresholds are 4.5:1 (AA normal), 3:1 (AA large and UI components), 7:1 (AAA normal) and 4.5:1 (AAA large). Large text means at least 24px, or 18.66px bold. Ratios are compared unrounded, so 4.48:1 fails AA.
  • Colors are treated as opaque; transparency is not supported. WCAG 2 contrast is a mathematical guide and does not measure every aspect of readability, such as font weight or thin strokes.

FAQ

Common questions.

01What contrast ratio do I need for WCAG AA?+

4.5:1 for normal text and 3:1 for large text and for user-interface components and meaningful graphics.

02Does #777777 on white pass?+

No. #777777 on #ffffff is 4.48:1, just under 4.5:1. #767676 reaches 4.54:1 and is the lightest such gray that passes AA.

03Is this the same as APCA or WCAG 3?+

No. It uses the WCAG 2.x formula, which is what current laws and audits refer to. APCA is a different, draft method.

Related instruments

  • T-25Color ConverterConvert colors between HEX, RGB and HSL with a live preview and a native color picker. Copy CSS-ready values.Local↗
  • T-57CSS Gradient GeneratorBuild linear, radial and conic CSS gradients with up to six color stops, preview them live and copy the background CSS with an optional fallback.Local↗
  • T-58Meta Tag GeneratorGenerate SEO, Open Graph and X (Twitter) card meta tags with character counts, URL checks and search and social previews. Copy ready-to-paste HTML.Local↗