Skip to main content
Bethemesh
Web & SEO

Contrast checker

Compare text and background colors, calculate their contrast ratio, and quickly check the relevant WCAG AA and AAA thresholds.

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Code to copy

Responsive and automatically resized by Bethemesh.

  • 100% local
  • Instant
  • Free
  • No account
  • Works offline
  • Clipboard

Why use this tool?

Measure the contrast ratio between text and background colours and compare the result with WCAG AA and AAA thresholds. The tool helps quickly assess a colour pair before using it in an interface, website, or component.

100% local and secure

Your data stays on your device and is never sent to our servers.

Smart processing

Create and verify web content with settings designed for usable results.

Supported formats

Web formats, metadata, and structured content depending on the available features.

Save time

Get a clean, ready-to-use result in seconds without installing software or configuring a complex workflow.

Guide

How to use this tool

  1. 1

    Enter both colours

    Provide the text colour and background colour you want to compare.

  2. 2

    Check the contrast ratio

    The tool calculates contrast and reports the corresponding WCAG levels.

  3. 3

    Adjust colours if needed

    Change either colour and test again until the result fits your intended use.

Tips and best practices

  • Good contrast improves readability, but accessibility also depends on text size, visual hierarchy, and interaction design.
  • Applicable thresholds can differ between normal text and large text.
  • Review colours in their real context, including different screens and hover, focus, or disabled states.

Frequently asked questions

What is a contrast ratio?

It measures the luminance difference between two colours, from 1:1 for identical colours up to 21:1 for maximum contrast.

What is the difference between WCAG AA and AAA?

AAA uses stricter thresholds than AA. The appropriate target depends on the content and the level of conformance you want.

Does a good ratio guarantee accessibility?

No. Contrast is only one criterion among others such as keyboard access, labels, structure, and visible focus states.

Are the entered colours stored or uploaded?

No. The calculation runs locally in your browser.

Was this tool useful?

Recommended workflow

Continue your processing

Discover tools that naturally fit before, after, or alongside this one.

Complementary tools

Web & SEO

URL encoder and decoder

Encode or decode a URL, its parameters, and any special characters it contains.

100% local
Use this tool
Web & SEO

Slug generator

Turn a title or phrase into a clean slug that is ready to use in a URL.

100% local
Use this tool
Web & SEO

URL validator

Validate, normalize and inspect web addresses locally.

100% local
Use this tool