Color contrast checker

Compare a text color with its background and check WCAG contrast thresholds.

Privacy: runs in your browser

This tool processes your input in this browser. Inputs and results are excluded from analytics. Draft saving is optional and stays on this device; delete saved text with the draft controls. Loading text from a URL is optional and contacts that server; its URL and your IP address are visible to the server. When a button sends your result to another tool, it waits in this tab until that tool opens it, for up to a minute, and is then deleted.

Copy link includes the inputs you choose to share in the address. Anyone with that link can reopen them. Files and generated results are excluded. Password and key tools share settings only.

Your result

The quick brown fox

Enter your values.

More
Keyboard shortcuts

Sharing and starting over

A copied link includes what you entered and your settings, so anyone with it can see them. Leave private text out. Files and results are not included; random draws are made again.

Start over puts the tool back to its starting values and closes any open file or device. Drafts you saved stay on this device until you delete them.

Check text against its background

Contrast is the ratio between the lighter and darker relative luminance, after sRGB channels are converted to linear light. Normal-text AA requires 4.5:1; large-text AA requires 3:1. The tool compares the unrounded ratio before displaying it.

When a pair fails AA for normal text, the result offers the nearest text color of the same hue and saturation that reaches 4.5:1, darker or lighter by the least; Use this text color puts it in the box. It is a suggestion to choose, not a change made for you.

Next: Color picker from image

Next: Color wheel picker

Worked example

Black text on white has a 21:1 contrast ratio. Identical colors have a 1:1 ratio and fail the text thresholds.

Before you rely on the result

Opaque sRGB colors only. This is a color-pair check, not an accessibility audit. Large text means at least 18 point regular or 14 point bold; antialiasing and other page content can affect readability.

Next: Image resizer

Tools for the same job

Help with the result

Cite this page

ToolOctopus. “Color contrast checker.” Updated . https://tooloctopus.com/color-contrast-checker.

Add an access date if your instructions require one.

Citation formatting uses citeproc-js by Frank Bennett and Citation Style Language styles. License and source code.

Find a tool

Type a task, a unit pair, a sum or a time zone. ↓ to choose, Enter to open.