Skip to main content

WCAG Contrast Checker

Check foreground/background contrast ratios for WCAG 2.1 compliance with color blindness simulation.

Free & unlimitedWorks offline

rgb(26, 26, 46)

rgb(234, 234, 234)

14.18:1

Contrast ratio

WCAG AAA
Text preview

Large text (24px+)

Bold text at 18.66px (14pt bold)

Normal body text — the quick brown fox jumps over the lazy dog.

Small text for captions and footnotes.

Extra small text at 12px.

WCAG 2.1 compliance
AA normal textMin ratio 4.5:1
Pass
AA large textMin ratio 3:1 (18px+ or 14px+ bold)
Pass
AAA normal textMin ratio 7:1
Pass
AAA large textMin ratio 4.5:1 (18px+ or 14px+ bold)
Pass
All processing happens in your browser. No data is sent to any server.

About this tool

  1. 1

    Enter two colors

    Input foreground (text) and background colors using hex codes, RGB values, or the color picker.

  2. 2

    View the contrast ratio

    See the calculated contrast ratio displayed alongside WCAG AA and AAA pass/fail results.

  3. 3

    Test different text sizes

    Toggle between normal text and large text modes, which have different minimum contrast requirements.

  4. 4

    Adjust until compliant

    Use the suggested color adjustments to find the nearest compliant color if your current pair fails.

  • WCAG AA requires a minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text (18px+ bold or 24px+ regular).
  • WCAG AAA is stricter at 7:1 for normal text - aim for this level when possible for maximum accessibility.
  • Test your colors against both light and dark backgrounds if your site supports a theme switcher.
  • Do not rely solely on color to convey information - add icons, patterns, or labels as redundant indicators.
  • Real-time contrast ratio calculation as you adjust colors
  • WCAG 2.1 AA and AAA compliance indicators for normal and large text
  • Color picker with hex, RGB, and HSL input support
  • Nearest compliant color suggestions when contrast fails
  • Live text preview showing your color combination in context
  • Validate brand color combinations meet accessibility standards before a design system rollout
  • Check text readability on colored backgrounds during UI design
  • Audit an existing website for WCAG color contrast compliance
  • Ensure data visualization colors are distinguishable for color-blind users
Normal text (under 18px bold or 24px regular) requires at least 4.5:1. Large text requires at least 3:1. UI components and graphical objects require 3:1.
This tool focuses on luminance contrast ratios. For color blindness simulation, use a dedicated color blindness checker that previews how colors appear under different vision conditions.
WCAG AA is the standard referenced by most accessibility laws including the ADA, Section 508, and the European Accessibility Act. AAA is recommended but not typically required.

Related tools

View all

We use anonymous analytics to improve ToolChamp. No personal data is stored or sold. Privacy Policy