🎯

Color Contrast Checker

Compare two opaque HEX colors for normal and large text. Swap, try twelve pairs, and save or recall a local color history.

Enter foreground and background with the pickers or 3/6-digit HEX fields. Compare the unrounded sRGB luminance ratio: AA 4.5 for normal text and 3 for large text; AAA 7 and 4.5.

The quick brown fox jumps over the lazy dog

Color pair preview; font size here does not select a text category.

AA normal text
≥ 4.5:1
AA large text
≥ 3:1
AAA normal text
≥ 7:1
AAA large text
≥ 4.5:1

Text thresholds only; this does not certify a control or page.

Presets

History

Method and limits

Enter foreground and background with the pickers or 3/6-digit HEX fields. Compare the unrounded sRGB luminance ratio: AA 4.5 for normal text and 3 for large text; AAA 7 and 4.5.

Only opaque sRGB HEX is accepted, including shorthand with or without #. Large text means at least 18pt regular or 14pt bold, or equivalent CJK size. Transparency, gradients, adjacent control colors, focus and entire pages are not assessed.

This calculation has no upload call in the selected source. Save stores up to 20 valid pairs in this browser’s localStorage; Clear removes that key. Storage can be unavailable. This is not a whole-site privacy or offline guarantee.

Copied

Copy failed. Select the result and copy it manually.

Embed this tool on your website

Use whole pixel dimensions from 1 to 4096.

× px (1–4096)

                        

💡 Integration Tip

Copy the embed code and paste it into your website HTML. The responsive version adapts to all screen sizes automatically.

2 ratings
✓

Popular Tools

No more tools to show
Explore All Tools

About Color Contrast Checker

Compare two opaque HEX colors for normal and large text. Swap, try twelve pairs, and save or recall a local color history.

Black #000000 on white #ffffff gives 21.00:1 and meets all four displayed text thresholds. A displayed 4.50 may still fall below 4.5 before rounding.

Text thresholds only; this does not certify a control or page.

Use Cases

Compare foreground and background pairs before checking text in its destination.

How to use

1

Enter the text color as HEX or use the foreground picker.

2

Enter the background; finish the draft until the invalid message disappears.

3

Read the ratio and normal/large AA and AAA thresholds separately.

4

Swap colors or apply a preset, then save a useful valid pair.

5

Recall a pair, clear local history, or copy the current valid report.

Pro Tips

  • Only opaque sRGB HEX is accepted, including shorthand with or without #. Large text means at least 18pt regular or 14pt bold, or equivalent CJK size. Transparency, gradients, adjacent control colors, focus and entire pages are not assessed.
  • This calculation has no upload call in the selected source. Save stores up to 20 valid pairs in this browser’s localStorage; Clear removes that key. Storage can be unavailable. This is not a whole-site privacy or offline guarantee.

Troubleshooting

Problem:

Invalid or incomplete color. Enter 3 or 6 hexadecimal digits.

Solution:

Enter foreground and background with the pickers or 3/6-digit HEX fields. Compare the unrounded sRGB luminance ratio: AA 4.5 for normal text and 3 for large text; AAA 7 and 4.5.

Problem:

Clipboard unavailable

Solution:

Copy failed. Select the output and copy manually.

Frequently Asked Questions

Display rounds to two decimals. A raw ratio of 4.499 is below 4.5, so that threshold fails.

Save uses this browser’s localStorage, limited to 20 pairs. Recall recalculates the ratio; Clear removes history. Browser storage can be blocked.

FreeWebTools AI