Accessibility utility

Colour contrast checker: test the WCAG contrast ratio of any text and background.

Check the colour contrast ratio between text and background colours and see whether it meets common WCAG thresholds for normal and large text.

No sign-upBrowser-side processingReview before production
Private by design

Tool entries are processed in your browser and are not intentionally uploaded to or stored by Kailvex. Do not enter passwords, payment-card details, patient information or other sensitive personal data.

Choose foreground and background colours

Responsible use

Review the output before production use.

Local processing

Designed to run in the browser

Tool inputs are not submitted to Kailvex through the utility interface.

Independent review

Verify the result

Check outputs against current platform, legal, tax, accessibility and business requirements.

No guarantee

Results are informational

Generated code, previews and estimates do not guarantee rankings, compliance or commercial outcomes.

Production help

Custom implementation available

Kailvex can scope a reviewed implementation for a confirmed website, ecommerce or software project.

How to use it

Check a colour contrast ratio in three steps.

01

Pick the text colour

Use the colour picker or enter the hex code of your text, button label or link colour.

02

Pick the background colour

Enter the colour the text sits on - the page background, a button fill or a banner.

03

Read the contrast ratio

Check the ratio and the normal and large text results, and adjust either colour until the combination is readable.

Contrast ratio checker guide

How the WCAG colour contrast ratio is calculated.

The contrast ratio compares the relative luminance (perceived brightness) of two colours: (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter colour. It runs from 1:1 (same colour) to 21:1 (black on white). This checker converts each hex colour from sRGB to linear light and applies the same WCAG 2 formula browsers and audit tools use.

4.5 : 1

AA · normal text

Body text, labels, links and form placeholders under about 18.66 px bold or 24 px regular.

3 : 1

AA · large text

Headings and text at least 24 px regular or 18.66 px bold.

7 : 1

AAA · normal text

Enhanced readability, useful for long reading and older visitors.

3 : 1

Non-text contrast

Icons, input borders, focus rings and chart lines against their background (WCAG 2.1, criterion 1.4.11).

Indian languages

Colour contrast for Tamil and other Indian scripts.

Tamil, Hindi and other Indic scripts have thin strokes, small vowel signs and dense letter shapes, so a colour pair that just passes 4.5:1 can still be hard to read at small sizes. For Tamil and bilingual websites, aim higher than the minimum for body text, use at least 16 px with a line height around 1.7, avoid light grey text on white, and test on real phones outdoors. Read the Tamil website accessibility checklist →

Colour or color?

Colour contrast checker, color contrast checker: the same check.

“Colour” is the British and Indian English spelling and “color” the American one; WCAG uses “contrast ratio” for both. Whatever you call it, enter the text colour and the background colour and read the ratio.

Frequently asked questions

Colour contrast checker questions.

Each colour’s relative luminance is calculated from its sRGB values, then the ratio is (lighter + 0.05) / (darker + 0.05). The result ranges from 1:1 to 21:1, and WCAG compares it with 4.5:1, 3:1 and 7:1.

Yes. Tamil and other Indic scripts have thin strokes and small marks, so use contrast comfortably above 4.5:1 for body text, a font size of at least 16 px and generous line height.

WCAG 2 level AA asks for at least 4.5:1 for normal text and 3:1 for large text. Level AAA asks for 7:1 for normal text and 4.5:1 for large text.

In WCAG, large text is at least 18 point (about 24 px) regular weight, or at least 14 point (about 18.7 px) bold.

Yes. WCAG 2.1 asks for at least 3:1 contrast for user-interface components and meaningful graphics, such as input borders, focus indicators and icons that carry information.

No. Accessibility also includes structure, keyboard navigation, focus order, labels, error messages, motion and alternatives for images and media.

Not necessarily. Keep the brand colour for large shapes and accents, and use a darker or lighter shade of it for text and small elements that must be readable.

Yes. It runs in your browser, is free to use and does not send your colours anywhere.

More about this tool

Understand the workflow before using the result.

Read the practical Kailvex guide for WCAG Colour Contrast Ratio Checker. It covers who the tool is for, step-by-step use, a worked example, limitations, privacy and common questions.

Read the full guide →