Color converter and contrast checker

Convert color values and check text contrast as you type.

Use HEX, rgb(34, 34, 34), or hsl(0, 0%, 13%).

Check your colors to see the preview.

Text contrast ratio

Large text: at least 24px regular or about 18.7px bold.

Color values and readability

Readability checks

AA is the standard target. AAA is the stricter check.

Tell us what happened and what you expected. Please leave out personal information and private tool inputs.

These details describe your setup. They don’t include your name, email, or anything entered into the tool.

See the details included

Voting-limit status from this browser is included. Reports are stored by Netlify so I can investigate.

Make the words easy to see

Contrast is the light–dark difference between text and its background. Two colors can look different yet still be hard to read together. Stronger contrast helps people with low vision and makes faint text easier to distinguish.

Paste your text and background colors above. Use Color values and readability to see each color format and the individual checks.

What should I aim for?

Where the text appears Standard target (AA) Stricter target (AAA)
Body text, labels, and small captions 4.5:1 7:1
Large text: 24px regular or about 18.7px bold 3:1 4.5:1

When in doubt, use the normal-text target. A thin font can still look faint at a passing ratio. Darken the text or lighten the background, then check again. These targets come from W3C’s contrast guidance.

Try a quick squint check

Look at your finished design and squint slightly. Do the important words and headings still stand apart, or does everything blend together? This is a rough check of visual emphasis. It cannot determine a pass or fail or simulate someone else’s vision. Confirm the ratio here, then review the actual font, size, and layout.

Check the background behind the words

For text over a photo or gradient, check the weakest-contrast area behind the text, not just the endpoints. A solid backing can make the result more dependable. This tool measures two opaque, solid colors; it does not certify a whole design. The Gradient maker carries your colors over for experimenting.

How the number is calculated

The tool converts sRGB colors to relative luminance, then divides the lighter value plus 0.05 by the darker value plus 0.05. Black on white is 21:1; identical colors are 1:1. Pass/fail uses the full ratio before rounding. RGB and HSL display values are rounded.

FAQs

Which color formats work?

Use three- or six-digit HEX, RGB numbers from 0 to 255, or HSL with saturation and lightness percentages. Transparent colors, CSS color names, and wide-gamut color spaces are not supported.

What counts as large text?

For these WCAG checks, large text is at least 24 CSS pixels at regular weight, or approximately 18.7 CSS pixels bold. Smaller text needs the normal-text threshold.

Does a passing ratio make my page accessible?

No. This checks only the contrast between the two entered solid colors. Your actual typography, interactions, focus states, and content need separate checks.

Have an idea for a tool I should add? Send it in. I read every suggestion and choose which ones to build next.

For example: "Count the weekdays until a date, without holidays."

Please don't include your name, email, or anything personal. I don't need it. Voting-limit status from this browser is included.