Enter a text colour and a background colour to get their contrast ratio and whether they pass the WCAG 2 accessibility guidelines for normal text, large text and icons. A live preview shows how they look together. If a combination fails, the tool suggests the closest text colour that passes, keeping the same hue.
Opacity is allowed, e.g. #00000099
Normal text at 16 px. Most paragraphs, labels and form hints are this size.
Large text at 24 px
Contrast ratio
7.55:1
Normal text AA: Pass
Needs 4.5:1
Normal text AAA: Pass
Needs 7:1
Large text AA: Pass
24 px, or 18.66 px bold. Needs 3:1
Large text AAA: Pass
Needs 4.5:1
Icons and borders: Pass
UI parts and focus rings need 3:1
Checking runs in your browser. What you type never leaves this device.
Contrast ratio from 1:1 to 21:1, calculated with the WCAG 2 formula
Pass or fail for AA and AAA, normal and large text, and for icons and borders (3:1)
Live preview with body text, a large heading, a button outline and an icon
One click to use the nearest passing colour for AA or AAA
Translucent text is blended over the background first, as the browser draws it
Swap button to test light text on dark backgrounds
Grey text on white, white text on brand colours and placeholder text are the most common accessibility failures. Check them before launch.
Many tenders and public websites follow WCAG 2.1 AA (India's GIGW guidelines are based on it), which needs 4.5:1 for normal text.
Text on coloured backgrounds that is hard to read on a projector or a phone in sunlight usually has low contrast.
WCAG compares the exact ratio with the threshold, without rounding. A ratio of 4.48:1 is shown as 4.48:1 here and fails AA, even though some tools round it up to 4.5. The ratio is shown cut off, not rounded up, so a pass here is a real pass.
When a pair fails, the tool keeps your text colour's hue and colourfulness and moves only its lightness, darker or lighter, by the smallest step that reaches 4.5:1 or 7:1. Your design changes as little as possible. If no lightness of that hue can reach the target on your background, change the background instead.
Color Picker
Pick a colour or grab one from your screen; copy HEX, RGB, HSL, HSV or OKLCH
Color Blind Palette Checker
See a palette with each type of colour blindness and find look-alike colours
Color Palette Generator
Harmonies, tints, shades and a 50-950 scale from one colour, as CSS or Tailwind
Color Converter
Convert color formats
JSON Formatter
Format and validate JSON
JSON Sort Keys
Alphabetize JSON keys at every level
JSON Flatten
Nested JSON to dot-path keys
JSON Unflatten
Dot-path keys back to nested JSON
Built by Edesy
Edesy builds AI products for Indian businesses. Start self-serve, no demo call needed.
AI agents that answer and make phone calls 24/7. Handle appointments, inquiries and support in Indian and global languages.
₹50 free credit. No demo call needed.