zemixtools

Color contrast checker

Enter two colours and see at once whether text, headings and buttons are readable, with the nearest shade that passes when they are not.

  • No sign-up
  • No upload
  • No waiting
Live sample
Bread baked before sunrise
Body text at 18 pixels. This is the size most of your visitors read for most of the time.
Small print at 15 pixels, such as captions and form hints.
Book a tableSee the menu
HEX, RGB, HSL and OKLCH all work.

Contrast ratio

3.0:1
  • Normal text4.5:1 for AA · 7:1 for AAA
  • Large text3:1 for AA · 4.5:1 for AAA
  • Icons and controls3:1 for AA

Keep the background, adjust the text

    Keep the text, adjust the background

      Sent from your device: 0 bytesSwitch off the internet and it still works.

      S swapC copy CSSL copy link
      Two women choosing colours together at a studio table
      Example
      Example

      Brand colours that stay readable

      • Aa8.0:1 · AAA#C0BAA9 / #18252E
      • Aa5.1:1 · AA#C0BAA9 / #3F443F
      AaAa#947665 3.7:1 → #A38574 4.5:1
      Pairs from this photo’s palette, checked here. The near miss gets the closest shade that passes.
      From the studio

      What we do on client work

      1. We aim for AA on every piece of body text, and for AAA on articles and other long reading pages.

      2. We check buttons, form borders and icons against 3:1 as well. They are the parts teams forget, and the parts people need to find.

      3. When a brand colour fails, we keep its hue and move only the lightness. Clients rarely notice the change; readers do.

      How to check colour contrast

      1. Type or paste the text colour and the background colour. HEX, RGB, HSL and OKLCH all work, and the swatch opens your system colour picker.
      2. Read the ratio and the three checks: normal text, large text, and icons with controls.
      3. If a check fails, take the nearest passing shade for the text or for the background and apply it with one click.
      4. Copy the result as CSS, or copy the link to share the exact pair with your team.

      What AA and AAA mean

      WCAG 2 measures contrast as a ratio from 1:1 to 21:1. Normal text needs at least 4.5:1 for level AA and 7:1 for level AAA. Large text, from 24 px regular or about 19 px bold, needs 3:1 for AA and 4.5:1 for AAA.

      Icons, input borders, focus rings and other parts of the interface need 3:1 against what surrounds them. Logos and purely decorative elements are exempt.

      How the nearest shade is found

      The checker keeps the hue of your colour and walks its lightness, in a colour space that follows human vision, until the pair passes. It then offers the step that changes the colour least, so the brand still feels like itself.

      Questions people ask

      Which contrast ratio do I need for body text?

      At least 4.5:1 for WCAG AA, which most laws and guidelines refer to. Aim for 7:1, level AAA, on long reading pages.

      What counts as large text?

      Text of 24 px or more at regular weight, or about 19 px and more in bold. Large text needs 3:1 for AA and 4.5:1 for AAA.

      Do buttons and icons need contrast too?

      Yes. Under WCAG 2.1, icons, input borders and the visible parts of controls need at least 3:1 against the colours next to them.

      Are my colours sent anywhere?

      No. The ratio is calculated in your browser. The colours only appear in the page address so you can copy and share the link if you want to.

      Is this the same as the new APCA method?

      No. This checker uses WCAG 2.x, the standard in current accessibility law. APCA is a candidate for a future version and gives different numbers.