Skip to content
AccessibilityLocal · Stays on device

Color Contrast Checker

Check text and background colours against WCAG 2.2 AA and AAA, and get the nearest passing colour.

  • HEX, RGB, HSL, HWB
  • Free to use
  • No sign-up or watermark
color-contrast-checkerOn this device

Not yet professionally reviewed. This tool’s formulas and wording have not been checked by a qualified professional. Use the results as an estimate and verify anything important.

Passing a contrast ratio is one part of accessibility. It doesn't prove a page conforms to WCAG; test with real users and assistive technology for a full assessment.

About this tool

Calculates the WCAG contrast ratio between a text colour and a background and shows, at a glance, whether it passes for normal text, large text and user-interface components at levels AA and AAA. Ratios are never rounded up, so a 4.48:1 result correctly fails the 4.5:1 requirement.

When a pair fails, the checker suggests the closest colours that pass by adjusting only lightness in the OKLCH colour space, so your brand hue stays intact. Translucent colours are blended before measuring.

  1. Input

    Your details

    HEX, RGB, HSL, HWB, OKLCH

  2. Processing

    Processed in this browser

    Instant, in-browser. Nothing is uploaded.

  3. Output

    Your result

    Shown instantly, ready to copy or export

Local processing pipelineCustom colour maths (WCAG 2.x, OKLCH)

How to use it

  1. 1

    Enter a text colour and a background colour in any format, or use the pickers.

  2. 2

    Read the ratio and the pass/fail results for each WCAG level.

  3. 3

    If it fails, click a suggested colour to apply it.

Zero-upload architecture

How to use Color Contrast Checker for free, with no upload

Free, with no sign-up or watermark · Your details stay on your device

  1. 1

    Open Color Contrast Checker

    Launch the app. There is nothing to install and no account to create.

  2. 2

    Work through it

    Read the ratio and the pass/fail results for each WCAG level.

  3. 3

    Get your result

    If it fails, click a suggested colour to apply it.

  • Local

    Color Converter

    Convert colours between HEX, RGB, HSL, HWB, OKLCH and CMYK, plus code-ready formats.

    Open tool
  • Local

    Color Palette Generator

    Build harmonious palettes and 50–950 tonal scales from one colour, or extract a palette from any image.

    Open tool
  • Local

    CSS Gradient Generator

    Design linear, radial and conic CSS gradients with draggable colour stops and copy the code.

    Open tool
  • Local

    Heading Structure Checker

    Paste HTML or Markdown to see the heading outline and find skipped levels, missing or multiple h1s and empty headings.

    Open tool