Check contrast using the actual foreground and background colors, then review the result in the real design. A passing pair is useful evidence for one requirement. It does not show whether the whole page works with a keyboard, has meaningful labels, or remains usable when enlarged.

Start with the colors the design really uses

The companion color contrast checker accepts opaque sRGB colors written as three- or six-digit hex values, such as #123 or #123456. It does not directly model transparency, gradients, background images, or other color spaces.

For a webpage, obtain the intended color values from its styles or design source. A screenshot’s antialiased edge pixels may not represent the underlying text color. The existing image color picker can help investigate a raster asset, but the sampled point and its background still need interpretation.

Read the relevant result

For the ordinary WCAG 2 text contrast thresholds, AA uses at least 4.5:1 for normal text and 3:1 for large text. AAA uses 7:1 and 4.5:1 respectively. Large text is at least 18 pt, or 14 pt bold, approximately 24 CSS px or 18.67 CSS px bold. Check the actual size and weight before choosing a category. See contrast minimum and contrast enhanced for scope and exceptions.

The tool also reports comparison with a 3:1 non-text threshold. Whether a specific control, icon, or graphic must meet that requirement depends on its function and adjacent colors. Non-text contrast needs that contextual judgment; the numerical result cannot supply it.

Check one pair, then its other states

  1. Enter the text color in Foreground color and its actual background in Background color.
  2. Choose Check contrast. Read the labeled AA, AAA, and non-text outcomes, rather than relying on the preview’s appearance alone.
  3. If the pair misses the needed threshold, adjust the design color deliberately and check again. Leave some margin instead of aiming for an exact boundary.
  4. Repeat for the relevant states: ordinary text, links, hover, focus, errors, and any changed background. Do not assume one passing pair covers all of them.
  5. Download a report if useful, naming which element and state it describes. Review the actual page at its intended size and with zoom.

Why a displayed 4.50 can still fail

An original near-threshold example
Foreground: #1B8577
Background: #FFFFFF
Computed ratio: approximately 4.498718759:1
Two-decimal display: 4.50:1
AA normal-text threshold: not met

The ratio is below 4.5 before rounding. Rounding is for display, not the pass/fail decision.

For a less subtle comparison, #777777 on white is approximately 4.478:1, while #767676 on white is approximately 4.542:1. The change is small visually but crosses the normal-text AA threshold. These are calculated examples for opaque sRGB pairs, not a recommendation to design every interface close to the limit.

Handle complicated backgrounds explicitly

For transparent text, first determine the actual composited color on the relevant background. For a gradient or image, identify the weakest relevant contrast where the text appears. One attractive sample point cannot represent the whole area. If the background changes, repeat the assessment for those states or change the design to provide a consistent readable surface.

Swapping foreground and background preserves the ratio, but can change how the design feels and how thin strokes appear. Font rendering and context deserve visual review even when the arithmetic passes. Avoid communicating pass/fail or another important state with color alone.

Use the report at the right scope

  • A color is rejected: supply an opaque three- or six-digit hex value. An eight-digit value includes alpha and is outside this tool’s scope.
  • The screenshot disagrees with the source colors: investigate opacity, overlays, antialiasing, and color handling before choosing which value to test.
  • Every displayed threshold passes: continue the other accessibility checks. Contrast does not cover structure, keyboard behavior, captions, or alternatives for images.

The companion tool calculates in the browser and does not submit your color values to a processing service. Its report is a focused technical check, not an accessibility certification or a guarantee of legal compliance.