Skip to content
OddsockLocal
Local
Text color#202134
Background color#ffffff
Text color#202134
Background color#ffffff
ReadyRuns in this browser. Nothing is uploaded.

How to use

  1. Put the text color in the first field and the background in the second.
  2. Read the ratio, then the line that matches the size you are shipping. Normal text needs 4.5 to 1 for AA.
  3. If the type is large or the color is only a control boundary, the 3 to 1 line is the one that applies.
  4. Retest the lightest and darkest spots if the real background is a photo or a gradient.

What is Contrast checker?

A pair of colors can look fine on a bright monitor and fail the moment the text is small. WCAG 2 contrast is a ratio of relative luminance. AA for normal text is 4.5 to 1. AA for large text and for interface controls is 3 to 1. AAA for normal text is 7 to 1, and AAA for large text is 4.5 to 1. Large text means roughly 18pt and up, or 14pt bold and up. This page computes the ratio and marks each of those four bars pass or fail.

Read more

The opening pair is text #202134 on background #ffffff. The ratio is 15.81 to 1, about 15.8 to 1, and every bar passes, including AAA for normal text. That is a near-black ink on white, which is why it clears so easily. The interesting failures are the brand colors: a mid teal on white, a white label on a bright yellow, a gray on a slightly different gray. Swap the two fields if you had the ink and the paper backwards. The ratio is the same either way. The words 'text' and 'background' are for you, not for the math.

The checker sees flat colors. It does not see a photo behind the letters, a text-shadow, or a gradient stop under only half the word. If the type sits on an image, sample the lightest and darkest pixels that actually touch the glyphs and run both pairs.

Use cases

  • A designer checks body copy, #202134 on white, and sees it clear AAA.
  • A brand teal is tested as a button label before anyone codes the hover state.
  • A dark-mode pair is tested in both directions, light text on the dark surface and the reverse.
  • A gray placeholder is checked and fails AA, which is why placeholders should not carry essential text.
  • A large hero line at a lower ratio is confirmed against the 3 to 1 bar rather than the 4.5 to 1 bar.

Near-black ink on white

Text #202134, background #ffffff.

Contrast: 15.81:1. AA normal text: Pass. AA large text and controls: Pass. AAA normal text: Pass. AAA large text: Pass.

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

4.5 to 1 for normal text, and 3 to 1 for large text and for meaningful interface boundaries. AAA raises normal text to 7 to 1 and large text to 4.5 to 1.