Neatbo.

Contrast checker

Check the contrast between text and background colors.

Browser-local processingInputTwo colorsOutputRatio
  1. 1Add input
  2. 2Adjust settings
  3. 3Get your result

Tool input and files are processed in this browser without being uploaded.

Your input

Inputs are kept temporarily in this tab when switching tools. Refreshing or closing clears them; large results may need to be regenerated.

⌘ / Ctrl + Enter to run
0 characters · 0 bytes
Options

Complete the required options first. You can keep the defaults for the rest.

Preparing the tool…

Before you start

Compute the WCAG sRGB contrast ratio after alpha-compositing onto an explicit opaque background. Thresholds apply to this color pair only, not to whole-site accessibility compliance.

How to use this tool

  1. Enter a text color and a background color, or load the example to try them.
  2. Review Opaque compositing background before selecting “Check contrast”.
  3. Review the ratio, effective colors and AA/AAA text thresholds; copy a color or download the JSON result.

Supported inputs and limits

Pasted text is limited to 1 MiB; review the result before using it.

Worked example

Example input

Text #000; background #fff
Example options
{}

Example output

{
  "ratio": 21,
  "foreground": "#000000",
  "background": "#ffffff",
  "AA_normal": true,
  "AA_large": true,
  "AAA_normal": true,
  "AAA_large": true
}

When something does not work

Use the documented input format and keep values within the displayed limits. Review the result before using it in another document or application. Editing the input marks the previous result as stale; a failed run clears it.

Frequently asked questions

Are my files uploaded?

No. Files and tool input are processed in your browser. Moving around the site can keep a temporary workspace in the same tab. Refreshing or closing the tab clears it, so download results you want to keep.

What should I check in this result?

Compute the WCAG sRGB contrast ratio after alpha-compositing onto an explicit opaque background. Thresholds apply to this color pair only, not to whole-site accessibility compliance.

Documentation & further reading

Related tools