Skip to content
Colors → RatioDeveloper tools

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.

Did this tool work for you?

Used Color Contrast Checker? Share how it went to help others.

About this tool

About Color Contrast Checker

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.

Color Contrast Checker tool

When to check contrast

Readable for everyone

Designing a page

Choose text colors that can be read.

ExampleGrey #8a8f98 on white fails; the suggestion passes.

Brand colors

Find which pairs are safe.

ExamplePaste the palette and look for AA and AAA.

Fixing an audit

Solve contrast errors from a report.

ExampleEnter the two colors and press Use.

Buttons and icons

Check borders and icons against 3 : 1.

ExampleA light border on white may be invisible to some people.

Mobile screens

Think of sunlight and small text.

ExampleAim for more than the minimum.

Slides and documents

Make sure the last row can read.

ExampleYellow on white reaches only about 1.07 : 1.

Contrast tips

Beyond the minimum

Aim higher for body text

Long text is easier to read at 7 : 1 than at 4.5 : 1.

Check every state

Hover, focus, disabled and placeholder text have colors too.

Text on photos

Measure the lightest and darkest part behind the text, or add a solid layer.

Not by color alone

Add an icon or a word to errors and links.

Convert a color

Change between HEX, RGB and HSL.

Open Color Converter

Color vision

See how an image looks with color blindness.

Open Color Blindness Simulator
Built & tested by

HemantInsights

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

Answers and guidanceFrequently Asked Questions
What contrast ratio do I need?
For WCAG AA, 4.5 : 1 for normal text and 3 : 1 for large text, icons and field borders. For AAA, 7 : 1 and 4.5 : 1.
What counts as large text?
About 24 px and larger, or about 18.7 px and larger in bold.
Why does #777 on white fail?
Its ratio is 4.47 : 1, just under 4.5. #767676 reaches 4.54 : 1.
How are the suggestions made?
The hue is kept and the color is made lighter or darker in small steps until the ratio is reached.
Can I check colors with transparency?
Yes. They are mixed with the background first. A see-through background is taken to lie on white.
Does disabled text need contrast?
WCAG does not require it for disabled controls and logos, but readable text still helps.
Are my colors sent anywhere?
No. A share link contains them only if you create one.
More tools for your workflowRelated Tools

Featured on

Toolyconvert is listed on these product directories and launch platforms.