Color contrast checker

Runs locally in your browser
All tool data is processed locally in your browser. It is never uploaded to HahaKit servers.

Compute the WCAG 2.2 contrast ratio from relative luminance and check AA and AAA for normal and large text.

Result

     

Loading the tool…

Color contrast checker guide

How do I use it?

Input
  • Foreground color (#RRGGBB)
Settings
  • Background color (#RRGGBB)
Run
Check contrast

How it works and examples

Black text on white has a ratio of 21:1. The display rounds the value, while ratings use the full ratio.

Input limits

WCAG 2.2

Search tools