TOOLGRIDTOOLGRID
HomeImage ToolsPDF ToolsVideo ToolsAudio Tools
More
Dev ToolsWeb & SEOCategoriesText ToolsCalculatorsHow we testAbout
Menu
HomeImage ToolsPDF ToolsVideo ToolsAudio ToolsDev ToolsWeb & SEOCategoriesText ToolsCalculatorsHow we testAbout
109 tools live
TOOLGRIDTOOLGRID

The full toolbox remains available when you need a specific utility.

Β© 2026 TOOLGRID. All rights reserved.

Tools

Image ToolsPDF ToolsVideo ToolsAudio ToolsConvertersDev ToolsWeb & SEOText ToolsCalculators

Resources

CategoriesHow we testPrivacy Policy

Company

AboutTermsContact
CSS & Color
  1. Home
  2. CSS & Color
  3. Color Contrast Checker

Color Contrast Checker

Check foreground-background color contrast against WCAG 2.1 AA and AAA thresholds for text and UI.

Use this tool
Browser-local processingNo input upload to TOOLGRIDReview before copy
DEVELOPER workflowColor Contrast Checker capability card
Input
Pasted text or typed values
Output
Color Contrast Checker result
Runtime
Browser APIs
Reviewed
2026-07-17
Browser-local workspaceStart below with browser-local processing.

Tool code processes selected files and entered content in your browser and does not submit them to a TOOLGRID processing endpoint. TOOLGRID measures tool usage, not the content you enter.

  • No TOOLGRID input upload
  • No account
  • Review before copy

Loading tool…

Browser-based

What this tool does

01

Enter two colors and instantly see the WCAG 2.1 contrast ratio plus pass/fail results for normal text, large text, and non-text UI components.

02

Color Contrast Checker computes the exact luminance-based contrast ratio between a foreground and background color.

03

It flags compliance with WCAG 2.1 AA and AAA thresholds for normal text (4.5:1, 7:1), large text (3:1, 4.5:1), and non-text UI (3:1).

Representative tasks

Where this tool earns its place

Try a representative color contrast checker task

Color Contrast Checker computes the exact luminance-based contrast ratio between a foreground and background color.

Boundaries

What to check before relying on the result

  • Performance and maximum practical input size depend on browser memory, device speed, and the structure of the input.
  • Review the generated result before replacing or publishing an original file.
MDN Web APIs
Continue this workflowUseful next steps

Open a nearby browser tool when you need to validate, convert, or reuse the result.

Current result
OutputCSS valueActionCopy result
Color ConverterCSS & ColorLocalOutputCSS valueActionCopy resultStart locally→

How to use

01
01Pick foreground and background colors using the color picker or paste a hex/rgb value.
02Read the ratio and AA/AAA indicators β€” all thresholds are shown side-by-side.
03Press Swap colors to quickly invert and re-check.

FAQ

02
What's the difference between AA and AAA?

AA is the baseline required by most accessibility regulations. AAA is a stricter enhanced level. For normal text, AA is 4.5:1 and AAA is 7:1; for large text, AA is 3:1 and AAA is 4.5:1.

What counts as large text?

WCAG defines large text as at least 18pt (24px) regular, or 14pt (18.66px) bold. Anything smaller falls under the normal text thresholds.

How is the ratio calculated?

We follow WCAG 2.1's formula: convert each color to sRGB relative luminance, then compute (L1 + 0.05) / (L2 + 0.05) where L1 is the lighter of the two. The ratio ranges from 1:1 to 21:1.

Related tools

01
Local

Color Converter→Start locallyNo TOOLGRID input upload

Convert colors between Hex, RGB, HSL, and OKLCH with a live swatch and hue slider.

CSS valueCopy result