Searchlight
Tools
BlogAbout
Free SEO Audit
Back to home
๐Ÿ“ˆSEO & Analytics
๐Ÿ—‚๏ธText & Data
๐Ÿ”Encoders & Decoders
โšกGenerators
๐Ÿ”„Converters
๐Ÿ–ผ๏ธImage Tools
๐Ÿ“„PDF Tools
๐Ÿ’ปCode Tools
๐Ÿ”Regex & Parsing
๐ŸงฎCalculators
๐Ÿ—บ๏ธDiagrams
๐ŸŒNetwork & Web
โœ๏ธText Utilities
๐ŸŽจColor Tools
Color PickerImage PaletteContrast CheckerColour Blindness Sim.Tailwind Colors
๐Ÿ”€Diff & Compare
148+ tools. OAuth is read-only.
Searchlight

148+ free SEO, developer, image, PDF, and productivity tools - no account needed.

Free ยท all tools included
Company
  • Blog
  • About
  • Free SEO Audit
Legal
  • Privacy Policy
  • Terms of Service
  • Cookie Policy

ยฉ 2026 Searchlight. All rights reserved.

Read-only OAuth ยท No data reselling ยท Completely free

Contrast Checker

Check WCAG AA/AAA contrast ratios between two colors. Ensure your text is accessible.

Foreground (text)
Background
Sample Heading Text
This is sample body text at normal size. Readable content helps users focus on what matters.
Large text (18px bold)
Contrast ratio
17.06:1
โœ“
Pass
WCAG AA - Normal text โ‰ฅ4.5:1
โœ“
Pass
WCAG AA - Large text โ‰ฅ3:1
โœ“
Pass
WCAG AAA - Normal text โ‰ฅ7:1
โœ“
Pass
WCAG AAA - Large text โ‰ฅ4.5:1

About this tool

Check the colour contrast ratio between any foreground and background colour against WCAG 2.1 accessibility standards. The tool shows your contrast ratio and whether it passes AA and AAA thresholds for normal text, large text, and UI components. Passing WCAG contrast requirements is legally required in many jurisdictions and essential for users with low vision.

How to Check Colour Contrast for Accessibility

  1. 1Enter the foreground colour (text colour) as a HEX, RGB, or HSL value.
  2. 2Enter the background colour in the same way.
  3. 3The contrast ratio and WCAG pass/fail status appear instantly.
  4. 4If you fail AA, try darkening the text or lightening the background until you pass.
  5. 5Test both light and dark mode colour combinations if your site supports themes.

Frequently Asked Questions

What contrast ratio do I need for WCAG AA compliance?+
WCAG AA requires a minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text (18pt or 14pt bold). UI components and graphical objects need at least 3:1.
What is WCAG AAA?+
WCAG AAA is the highest accessibility conformance level, requiring 7:1 for normal text and 4.5:1 for large text. AAA is difficult to achieve for all content but is worth targeting for body text.
How do I calculate contrast ratio?+
Contrast ratio = (L1 + 0.05) / (L2 + 0.05), where L1 is the relative luminance of the lighter colour and L2 is the relative luminance of the darker colour. Relative luminance is calculated from the RGB values using a gamma correction formula.
Does dark mode need to pass contrast checks?+
Yes. If your website has a dark mode, both the light and dark colour schemes need to pass WCAG contrast requirements independently.
Looking for a deeper guide on this topic? Browse the Searchlight blog.
Visit the blog โ†’

Related tools

View all Color Tools โ†’
Color PickerVisual color picker with format outputImage PaletteExtract colour palette from any imageColour Blindness Sim.Simulate different types of colour blindnessTailwind ColorsFull Tailwind CSS colour palette reference