Color Contrast Checker
Check the WCAG contrast of text and background, get the nearest colors that pass, and test a whole palette in one grid.
Check the WCAG contrast of text and background, get the nearest colors that pass, and test a whole palette in one grid.
Used Color Contrast Checker? Share how it went to help others.
About this tool
Color Contrast Checker measures how well text stands out from its background, using the contrast ratio from the Web Content Accessibility Guidelines (WCAG). Enter two colors as hex codes, rgb(), hsl() or common names, or use the color pickers. The ratio runs from 1 : 1, no difference, to 21 : 1, black on white. You see which levels pass: AA needs 4.5 : 1 for normal text and 3 : 1 for large text, and also 3 : 1 for icons and the borders of form fields. AAA needs 7 : 1 for normal text and 4.5 : 1 for large text. Large means 24 px and up, or about 18.7 px and up when bold. The ratio is cut off, not rounded up, after two decimals, because 4.499 does not pass 4.5. A well-known example is #777 on white: it looks fine to many people but reaches only 4.47 : 1 and fails AA, while #767676 reaches 4.54 : 1 and passes. If your colors fail, the checker suggests the nearest color that passes, for the text and for the background, with the same hue made lighter or darker by the smallest amount. Press Use to try it. When no shade is enough it tells you to change the other color. Colors with transparency are handled: a see-through text color is first mixed with its background, as a browser does. The preview shows large text, normal text, small print and a button in your colors. To check a brand palette, paste up to 12 colors and every pair is shown in a grid with its ratio and level, so you can see which combinations are safe. The colors are remembered in this browser, and a share link opens the same pair for a colleague. Contrast is only one part of accessibility: do not use color alone to carry meaning, and test with real people when you can.

Type them or use the pickers.
See which WCAG levels pass.
Take the nearest color that passes.
Test up to 12 colors together.
Cut off, never rounded up to a pass.
Same hue, smallest change.
Every pair of up to 12 colors.
Mixed as a browser does it.
Readable for everyone
Choose text colors that can be read.
ExampleGrey #8a8f98 on white fails; the suggestion passes.
Find which pairs are safe.
ExamplePaste the palette and look for AA and AAA.
Solve contrast errors from a report.
ExampleEnter the two colors and press Use.
Check borders and icons against 3 : 1.
ExampleA light border on white may be invisible to some people.
Think of sunlight and small text.
ExampleAim for more than the minimum.
Make sure the last row can read.
ExampleYellow on white reaches only about 1.07 : 1.
Beyond the minimum
Long text is easier to read at 7 : 1 than at 4.5 : 1.
Hover, focus, disabled and placeholder text have colors too.
Measure the lightest and darkest part behind the text, or add a solid layer.
Add an icon or a word to errors and links.
Senior Software Engineer · Developer of Toolyconvert
Hemant developed Color Contrast Checker and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.
Last updated 25 November 2026
Featured on
Toolyconvert is listed on these product directories and launch platforms.