Color · Made a little simpler

Form Error Color Accessibility Checker

Compare the contrast of an error message, icon, and field border. Preview an invalid email field with text or visual cues, then save the measurements and CSS.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device
Error cues besides color

Enter a domain after the @ sign.

Contrast and error identification

PairRatioThreshold and result
Message against background4.00:1Normal text AA 4.5:1 · Below threshold
Normal text AAA 7:1 · Below threshold
Large text AA 3:1 · Passes threshold
Large text AAA 4.5:1 · Below threshold
Icon or pattern against background4.00:1Essential graphics 3:1 · Passes threshold
Border against field fill4.00:1Essential boundary 3:1 · Passes threshold
Border against surrounding background4.00:1Essential boundary 3:1 · Passes threshold

2 of 4 additional cues enabled.

  • Use of color (1.4.1). The sample has a non-color cue that reaches its contrast threshold.
  • Error identification (3.3.1). The sample uses visible text associated with the field.
  • Use a stronger foreground for the normal-size message. Check the selected colors again.

These checks use the displayed solid colors and cue choices. Review the wording, announcing behavior, and full form separately.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

Form Error Color Accessibility Checker: how to use it

  1. Choose an error color preset or enter the foreground, surrounding background and field fill.
  2. Enable the cues your design uses. Switch the email preview between valid and invalid, then try Preview without hue.
  3. Check the separate text, graphic and border measurements. Copy or download the error report and preview CSS.

Limits and notes

The sample uses solid opaque surfaces with a shared error foreground that may be translucent. Results use unrounded sRGB ratios and the selected cues. Review your real field text, layout, screen-reader announcements and keyboard interactions separately.

How your privacy works →

Form Error Color Accessibility Checker: common questions

What contrast should an inline error message have?

Normal-size text needs at least 4.5:1 against its background for WCAG AA. The large-text threshold is 3:1. Essential graphics and state boundaries use a separate 3:1 check.

Why does the tool check the border twice?

The border touches the field fill and the surrounding background. A border can meet 3:1 against one adjacent surface and fall below it against the other.

Does adding a visible icon describe the error?

An icon can indicate the error state without relying on hue. Use a text description that identifies the field and explains the problem. The sample associates that text with the invalid input.

How are transparent foregrounds measured?

The message and icon blend over the surrounding color. The preview paints its border over the field fill and measures that resulting border against both adjacent surfaces.

Does Preview without hue change the report?

The grayscale filter applies to the preview. The report uses the original form colors and records their raw contrast ratios.

Guides