On this page
What this issue is
Your form validates input, then shows a problem by changing the field border or label to red. No words appear. The visitor sees a colour change and nothing else.
This breaks two WCAG (Web Content Accessibility Guidelines) rules. 1.4.1 Use of Colour says colour must not be the only way to show information. 3.3.1 Error Identification says that when an error is detected, the field in error is identified and the error is described to the user in text.
About 1 in 12 men and 1 in 200 women have some form of colour vision deficiency. Red on a white or grey field can be hard to see for many of them. Bright sunlight, low-quality screens and dark mode make it worse for everyone.
Why it costs you leads or sales
A visitor presses Submit, the page seems to do nothing, and they cannot tell why. Some retry, some give up. On a checkout or lead form, that is a lost order or enquiry that looks like normal drop-off in your analytics.
It also hurts people who can see the colour. A red border does not say whether the email is missing, malformed or already used. Text removes the guesswork. You also carry legal and procurement risk in markets where accessibility rules apply to your site.
- Fills in formEnters details, one field is invalid
- Presses SubmitValidation fails
- Red border onlyNo text says what is wrong
- Visitor is confusedCannot find or fix the error
- Lead or orderNever completed
The form rejects the input, but the only signal is a colour the visitor cannot see or understand.
Example: of 100 visitors who trigger a validation error, more retry successfully when the error is explained in text. Numbers are illustrative.
How to check if your site has it
Submit the form empty
Open the form in a normal browser window and press Submit with every field blank or invalid.
Look for words
Does each problem field show a sentence such as 'Enter a valid email address'? A red outline or red label alone is a fail.
Remove colour
In Chrome DevTools, open Rendering (Cmd/Ctrl+Shift+P, type 'Rendering') and set Emulate vision deficiencies to Achromatopsia. If you cannot tell which fields are wrong, colour is doing all the work.
Test with a screen reader
Use VoiceOver (Mac/iOS), NVDA (Windows) or TalkBack (Android). Check that the error text is read out. Missing announcements are covered separately in PRF-308 and PRF-309.
Run an automated scan
Tools such as Lighthouse or axe DevTools catch some contrast and label problems, but they often miss colour-only errors, so keep the manual test.
How to fix it
Every error needs three things: text that says what is wrong and how to fix it, an icon or symbol as a second visual cue, and a position next to the field. Keep the red if you like it, but make sure the error text itself has at least 4.5:1 contrast against its background.
Before
- Field border turns red
- No message
- Visitor guesses what is wrong
After
- Red border plus warning icon
- Text: 'Enter an email address like name@example.com'
- Message sits directly under the field
Check your form plugin
Gravity Forms, WPForms, Contact Form 7 and Fluent Forms all show text messages by default. If yours only shows red, a theme or custom CSS has probably hidden them (look for display:none on error classes).
Edit the messages
Set a specific message per field in the plugin's field settings (for example the 'Required field message' or validation message), instead of a generic one.
Fix hiding CSS
In Appearance > Customize > Additional CSS, remove rules that hide the plugin's error class, then add the error style from the code block below.
Open the theme code
Online Store > Themes > Edit code. Find the form snippet, for example the contact form, customer login or register template.
Output form errors
Make sure the template renders the errors with {{ form.errors | default_errors }} or loops over form.errors and prints each message as text.
Style the message
Add an icon and a readable colour in the theme's CSS file. Checkout error messages are controlled by Shopify, so test them separately.
Select the form block
In the Designer, select the Form Block and use the Navigator to find the Error Message element.
Write useful text
Edit the error message text, for example 'Something went wrong. Check the highlighted fields and try again.'
Add field-level messages
Webflow's native error box is form-wide. For per-field messages, add a text element under each field and show it with custom code or Interactions, and make sure it is visible, not just coloured.
Open the form builder
Sites > Forms > Builder, then select the field in the form.
Set required messages
Mark fields as required and check what the preview shows on a failed submit. If only the border changes, add a visible helper text line or use custom CSS/JS in the form's custom code area.
Open the form settings
In the Wix Editor, select the form, choose Settings, then the Error messages or Required field options.
Write the text
Customise the message for each field so it explains the fix. Preview and submit an empty form to confirm text appears.
Edit the form block
Open the Form Block settings and mark required fields. Squarespace shows a text message under invalid fields by default.
Check custom CSS
If errors vanish, look in Website > Custom CSS for rules hiding .field-error or similar classes and remove them.
Render a message element
Add a text element after each input and fill it on validation failure. Use the markup in the code block below.
Add an icon and set aria-invalid
Mark the input with aria-invalid="true" and show an icon next to the text. Linking and announcing the message is covered in PRF-308 and PRF-309.
<label for="email">Email address</label>
<input id="email" name="email" type="email" aria-invalid="true" aria-describedby="email-error">
<p id="email-error" class="field-error">
<span aria-hidden="true">⚠</span>
Enter an email address like name@example.com
</p>.field-error {
color: #b00020; /* about 6.5:1 on white */
font-size: 0.875rem;
margin: 4px 0 0;
}
input[aria-invalid="true"] {
border: 2px solid #b00020;
}The visitor submits, the field turns red, and no message explains the problem.
How to confirm it's fixed
- Submitting an empty form shows text next to every invalid field
- Each message says what is wrong and how to fix it
- An icon or symbol accompanies the colour change
- With Achromatopsia emulation on, you can still find every error
- Error text has at least 4.5:1 contrast against its background
- A screen reader reads the messages when you move to the field
- Fixing the field removes the message
- Works on mobile as well as desktop
How to prevent it happening again
Put error states in your design system, not in one-off page tweaks. Each input component should ship with its message slot, icon and colour pair. Then new forms inherit the pattern.
- Add 'invalid submit' to your form QA script for every new or edited form
- Include a colour-blind emulation pass in design review
- Run axe DevTools or Lighthouse on key pages after theme or plugin updates
- Re-test forms after changing form plugins, themes or custom CSS
- Keep error copy in one place so it stays specific and consistent
How FunnelGuard handles this
FunnelGuard does not check for colour-only form errors today. It is a possible future check, not a current feature.
What FunnelGuard does do is run your real lead forms, checkouts and booking steps on a schedule from the EU or the US with a robot visitor. It checks that each step works, that tracking hits reach ad and analytics platforms, and that test leads reach your inbox and CRM. If a form change breaks submission, you get one alert with a screenshot and a likely cause after a second-region re-check. That does not tell you whether your error messages are accessible.
To watch for this issue, add the invalid-submit test above to your release checklist, run axe DevTools or Lighthouse after changes, and do a periodic screen reader pass on your main forms.
Questions people ask
Why is showing form errors only in red a problem?
Colour alone cannot be seen by everyone. People with colour vision deficiency, people using screen readers and people on poor screens can miss it. WCAG 1.4.1 says colour must not be the only way to convey information.
What does WCAG say about form error messages?
WCAG 3.3.1 Error Identification requires that an automatically detected error is identified and described to the user in text. WCAG 1.4.1 Use of Colour requires another cue besides colour. Together they mean a red border alone fails.
How do I show form errors without relying on colour?
Put a text message next to the field that says what is wrong and how to fix it, and add an icon. Mark the input with aria-invalid="true" and link the message with aria-describedby. Keep the text contrast at 4.5:1 or higher.
How can I test whether my form errors rely on colour only?
Submit the form empty, then turn on Achromatopsia in Chrome DevTools under Rendering > Emulate vision deficiencies. If you cannot tell which fields have errors, or no words appear, your errors rely on colour alone.
Is a red border plus an asterisk enough?
No. An asterisk marks a field as required but does not describe the error. You still need text that explains what is wrong, such as 'Enter your phone number'.
Do form errors in red hurt conversions?
They can. Visitors who cannot tell what went wrong often abandon the form, and this loss shows up as ordinary drop-off. Clear text messages usually reduce retries and abandonment, though your results will depend on your form and audience.
Does FunnelGuard detect colour-only form errors?
No. FunnelGuard does not check this today, though it is a possible future check. It does monitor that your forms submit, tracking fires and test leads arrive, so use a manual test or a tool like axe DevTools for error accessibility.
Related issues
- PRF-308Form errors not announced to screen readers (no aria-live)Fix guide
- PRF-309Errors not linked to fields (no aria-describedby)Fix guide
- PRF-310Required fields indicated by colour onlyFix guide
- PRF-300Text colour contrast below 4.5:1Fix guide
- PRF-305Form inputs without labels (placeholder only)Fix guide
- PRF-313Form cannot be completed with keyboard onlyFix guide