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.
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.
Review the output before production use.
Designed to run in the browser
Tool inputs are not submitted to Kailvex through the utility interface.
Verify the result
Check outputs against current platform, legal, tax, accessibility and business requirements.
Results are informational
Generated code, previews and estimates do not guarantee rankings, compliance or commercial outcomes.
Custom implementation available
Kailvex can scope a reviewed implementation for a confirmed website, ecommerce or software project.
Check a colour contrast ratio in three steps.
Pick the text colour
Use the colour picker or enter the hex code of your text, button label or link colour.
Pick the background colour
Enter the colour the text sits on - the page background, a button fill or a banner.
Read the contrast ratio
Check the ratio and the normal and large text results, and adjust either colour until the combination is readable.
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.
AA · normal text
Body text, labels, links and form placeholders under about 18.66 px bold or 24 px regular.
AA · large text
Headings and text at least 24 px regular or 18.66 px bold.
AAA · normal text
Enhanced readability, useful for long reading and older visitors.
Non-text contrast
Icons, input borders, focus rings and chart lines against their background (WCAG 2.1, criterion 1.4.11).
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 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.
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.
Free browser tool with transparent limitations.
Inputs are designed to be processed in your browser and are not intentionally stored by Kailvex. Do not enter passwords, payment credentials, patient data or other sensitive information. Results are informational starting points and must be independently reviewed before legal, tax, financial, accessibility, SEO, courier or production use.
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.
