Developer Guide

How to Check Color Contrast for WCAG AA and AAA (Free Online Checker)

Light grey text on a white page can look fine on your monitor and be almost unreadable on a phone in sunlight. The ToolTiny Color Contrast Checker gives the exact contrast ratio of any text and background color, shows which WCAG levels the pair passes, and suggests the closest colors that do. This guide follows a 58-second screen recording; every color value and ratio below is the one shown on screen.

WCAG Contrast Levels at a Glance

The tool checks five things at once. These are the limits it showed on its five cards:

CheckNeedsWCAG criterion
AA Normal Text4.5:11.4.3
AA Large Text3:11.4.3
AA UI & Icons3:11.4.11
AAA Normal Text7:11.4.6
AAA Large Text4.5:11.4.6

Large text means 24px regular or 18.66px bold and bigger. The preview in the tool shows both sizes.

Watch the Whole Process

The recording opens the tool from the Developer menu, clicks through the nine presets, scrolls to the 21.00:1 result for white on black, then picks a red text color and a cream background by hand. That pair gives 3.45:1, and the recording ends on the closest passing colors.

How to Check Color Contrast, Step by Step

  1. Open the Developer menu

    On the ToolTiny home page, move the mouse over Developer in the top bar. The menu lists Color Palette Generator, Base64 / Hash Encoder, Password Generator, Code Minify / Beautify, JSON / XML Formatter, Screen Ruler, IP / WHOIS Checker and Color Contrast Checker.

    Developer menu open in the top bar of the ToolTiny home page
    Developer menu
  2. Choose Color Contrast Checker

    Click Color Contrast Checker at the bottom of the list, or go straight to tooltiny.com/color-contrast-checker.html.

    Color Contrast Checker highlighted at the bottom of the Developer menu
    Developer → Color Contrast Checker
  3. Look at the tool page

    The Color pair box has Quick presets, a Text / foreground color field and a Background color field. It opens with white text (#ffffff) on a black background (#000000). Each field shows its color as HEX, RGB and HSL. The page accepts HEX (3, 4, 6 or 8 digits), rgb(), hsl() and CSS color names.

    Color Contrast Checker page with Quick presets and white text on black background fields
    The Color Contrast Checker page
  4. Try a quick preset

    Click a preset to load a ready-made pair. We started with Dark on White, which fills in #1e293b text on a #ffffff background. The other presets are White on Dark, Blue Link, Error Red, Success, Warning, Low contrast, White on Blue and OLED Black.

    Dark on White preset selected with text color 1e293b and background ffffff
    Dark on White preset
  5. See how the other presets look

    In the recording we clicked through all nine presets. Every click changes the fields and the preview at once. Success, for example, gives #065f46 text on a #d1fae5 background.

    Success preset with text color 065f46 on background d1fae5 and a green preview
    Success preset: #065f46 on #d1fae5
  6. Check the live preview

    Scroll down to Contrast results. The preview shows your pair the way readers will see it: large text at 24px regular and 18.66px bold, normal text at 16px, small text at 13px, a button, an input field, two icons and a link. Here it is white on black (OLED Black). Copy result and Copy link sit at the top right of this box.

    Contrast results preview with large text, normal text, small text, button, input field and link in white on black
    Live preview of the pair
  7. Read the ratio and the five checks

    Under the preview, the big number is the contrast ratio: 21.00:1 for white on black, with the note “Excellent: passes AAA for all text.” The bar runs from 1:1 (no contrast) to 21:1 and is marked at 3, AA 4.5 and AAA 7. Five cards show what the pair passes: AA Normal Text (needs 4.5:1, WCAG 1.4.3), AA Large Text (3:1, WCAG 1.4.3), AA UI & Icons (3:1, WCAG 1.4.11), AAA Normal Text (7:1, WCAG 1.4.6) and AAA Large Text (4.5:1, WCAG 1.4.6). All five are green here.

    Contrast ratio 21.00 to 1 with five green cards for AA and AAA checks
    21.00:1: all five checks pass
  8. Open the color picker

    To test your own colors, click the small color swatch at the left of the text color field. A picker opens with a color area, a hue slider, an eyedropper and R, G and B boxes (255, 255, 255 for white). You can also type a value straight into the field.

    Color picker open under the text color field with R G B values 255 255 255
    Click the swatch to open the picker
  9. Pick a text color

    Drag in the color area. We chose a red: #df4949, shown as rgb(223, 73, 73) and hsl(0 70% 58%). The R, G and B boxes read 223, 73 and 73, and the preview text turns red at once.

    Picker showing red 223 73 73 and the text color field changed to df4949
    Text color: #df4949
  10. Pick a background color

    Open the Background color picker the same way. While we dragged it the preview background moved from black through yellow, dark olive and grey to a pale cream. We stopped at #f0eed5, which is rgb(240, 238, 213).

    Background color picker with cream color f0eed5 and R G B 240 238 213
    Background color: #f0eed5
  11. Read the new result

    The ratio is now 3.45:1, with the note “Only for large text, icons and UI parts. Too low for normal text.” AA Normal Text fails (needs 4.5:1), AA Large Text and AA UI & Icons pass (3:1), and both AAA cards fail. The orange bar stops just past the 3 mark.

    Contrast ratio 3.45 to 1 with two passing and three failing WCAG cards
    3.45:1: large text and UI only
  12. Use the closest passing colors

    Because the pair fails AA for normal text, the tool suggests two fixes that keep your hue and change only the lightness, as little as possible: #d02525 (AA, text darker by 10%, 4.50:1) and #9a1b1b (AAA, text darker by 22.5%, 7.02:1). Click one to apply it; we did not click one in the recording. Below them, Color vision simulation shows how the pair looks to people with the three most common types of color blindness.

    Closest passing colors d02525 AA 4.50 and 9a1b1b AAA 7.02 and the Color vision simulation heading
    Closest passing colors

Our Two Test Pairs

PairRatioAA normalAA largeAA UIAAA normalAAA large
#ffffff on #00000021.00:1PassPassPassPassPass
#df4949 on #f0eed53.45:1FailPassPassFailFail
#d02525 on #f0eed5 (suggested)4.50:1Suggested for AA
#9a1b1b on #f0eed5 (suggested)7.02:1Suggested for AAA

The ratios, the pass and fail results and the two suggested colors are the ones the tool showed in the recording.

Good to Know

Follow ToolTiny for short tutorials

One-minute clips on converting, repairing and editing documents, images and text.

Tips

Check your colors now

Type or pick two colors and get the WCAG result instantly. Free, private, no sign-up.

Open Color Contrast Checker

Related ToolTiny Tools

Frequently Asked Questions

What is a color contrast ratio?
It compares how light the lighter color is with how light the darker color is. The scale runs from 1:1 (no contrast) to 21:1 (black on white). The checker shows it as a number such as 21.00:1 or 3.45:1.
What contrast ratio do I need to pass WCAG?
For level AA, normal text needs 4.5:1, large text needs 3:1 and user interface parts and icons need 3:1. For level AAA, normal text needs 7:1 and large text needs 4.5:1. The checker shows all five checks as green or red cards.
What counts as large text?
WCAG treats text as large from 24px regular or 18.66px bold. The preview in the tool shows both sizes so you can see the difference.
Which color formats can I type in?
HEX with 3, 4, 6 or 8 digits, rgb(), hsl() and CSS color names such as navy. Transparent colors are blended over the background, as a browser would show them.
What are the closest passing colors?
When a pair fails a level, the tool suggests colors that keep your hue and change only the lightness, as little as possible. In our test, #df4949 on #f0eed5 (3.45:1) got #d02525 for AA (4.50:1) and #9a1b1b for AAA (7.02:1). Click one to apply it.
Why did a pair with 3.45:1 still show some green cards?
Large text and UI parts only need 3:1, so 3.45:1 passes those two checks. It fails AA for normal text, which needs 4.5:1, and both AAA checks.
Does the tool help with color blindness?
It has a Color vision simulation section that shows how the pair looks to people with the three most common types of color blindness. The contrast ratio itself is based on lightness, so it changes little, but colors that look different to you may look alike to them.
Can I share or save a result?
Yes. Copy result and Copy link are at the top right of the Contrast results box, so you can paste the numbers into a ticket or send a link to the same pair.
Is my data uploaded anywhere?
No. The checker only does arithmetic on the two colors in your browser. It needs no account and no file upload.
Is passing contrast enough for accessibility?
No. Contrast is one part of accessible design. Also make sure information is not given by color alone, and that text stays readable when it is resized.
Is the Color Contrast Checker free?
Yes. It is free, needs no sign-up and works in any modern browser on desktop or mobile.