← Back to HubEveryday Digital Box

Color Contrast Checker

Compare two opaque sRGB colours, calculate WCAG contrast and show AA/AAA normal/large-text labels with a fixed labelled text preview.

Local processing · Optional analytics only with consent

Settings

Input

See the exact formats and limits below. Input is never silently truncated.

Result

Ready.

Colour pair preview

The numerical result above uses the fixed readable interface. Preview colours may deliberately have low contrast.

Exact rules, limits and privacy

Two opaque sRGB colours: #RRGGBB or rgb(R, G, B) with integer 0–255 channels; each field ≤32 UTF-16 units. No alpha, CSS variables or arbitrary CSS. Linearize sRGB at 0.04045, luminance weights 0.2126/0.7152/0.0722; ratio (lighter+0.05)/(darker+0.05). Display four decimals; classify with unrounded ratio. AA normal 4.5:1 / large 3:1; AAA normal 7:1 / large 4.5:1; non-text UI/meaningful graphic contrast 3:1 (SC1.4.11, context/exceptions apply). Large text means ≥18pt regular or ≥14pt bold. A pair result is not whole-page accessibility certification. Report ≤4KiB.

Inputs stay in browser memory: no uploads, input logging, automatic saved drafts or external processing. Hosting and existing Tailwind CDN requests still occur. Shared analytics requires consent and excludes tool inputs. Copy places text on your system clipboard; permission may fail with manual-copy guidance. Text downloads use bounded UTF-8 Blobs and temporary URLs are released.

Official WCAG criterion reference

Official WCAG criterion reference

Official WCAG criterion reference