Checklist Guide

Form Borders and Button Outlines That Do Not Vanish on a Contact Page

Short answer

Any border, outline or icon a visitor needs to find a form field or button should contrast with its surroundings at 3 to 1 or better. A faint grey box on a white page looks tidy to a designer, but a patient with low vision may not see the field exists.

By Gio LaRocheUpdated 5 min read
Get my free auditor call (561) 291-2681

The form that looks empty

Many contact forms are styled as a white page with fields outlined in a very light grey, and the Send button as a pale outline with no fill. On a good monitor in a dim room that looks calm. On a phone in sunlight, or for a visitor with low vision, the fields can fade into the page and the form looks like a heading with nothing under it.

That matters for a practice because the contact form is where a new patient tells you they exist. If they cannot see where to type, they do not type.

What the W3C asks for

The Non-text Contrast criterion, which we read in full, sets a floor of 3 to 1 between a visual cue and the colors next to it. It applies to the visual information a person needs to identify a control and know how to operate it, plus indicators of state, such as whether a box is checked or a field is focused. The W3C also says to treat the ratio as a threshold with no rounding, so a measured 2.999 to 1 does not pass.

Two useful clarifications from the same page. First, a control does not need a visible boundary if it has other visible content that makes it recognizable, such as a button with clear text. Second, inactive controls, such as a greyed-out Send button before the form is filled, are exempt.

Part of the formNeeds 3 to 1 against what is next to it?
Border of an empty text fieldYes, it is how a visitor finds the field
Outline of a button that has dark text insideUsually no, the text identifies the control
Outline of a button with no fill and pale textYes, and the text needs its own text contrast
Check mark inside a checkboxYes, it shows state
Focus ring on the field being typed inYes, it shows state

Check your own form in five minutes

  1. 1Open your contact page on a phone and turn the screen brightness down to about half.
  2. 2Hold the phone at arm's length and ask whether you can still point to every field.
  3. 3In a desktop browser, right-click a field border, choose Inspect and look at the border color value.
  4. 4Paste that value and the page background value into a free contrast checker and read the ratio.
  5. 5Repeat for the button outline, the checkbox and the focus ring.

What to ask for if a border fails

You rarely need a redesign. Darken the border one or two shades, or give the field a faintly tinted background that stands apart from the page. The W3C adds that very thin lines can render fainter than their stated color because of anti-aliasing, so a slightly thicker border is a safer choice than a thin one.

Related checks that are easy to confuse

Text contrast is a separate rule from this one, covered in our ten-minute color contrast check. The two share a tool, so you can run both in one sitting. Fields also need visible labels, as we explain in the guide to accessible intake forms. This page does not give legal advice and no color change guarantees compliance.

Frequently asked questions

Do placeholder words inside a field fix a faint border?

No. Placeholder text disappears as soon as someone types and is often pale grey, which fails text contrast on its own. A visible border or background that stands out from the page tells a visitor the field exists, and a separate label above it says what to type.

Does the 3 to 1 rule apply to a button with dark text on a light fill?

The text still needs the normal text contrast. The button's own edge usually does not need 3 to 1 when the text inside identifies it as a button, because the W3C says a boundary is not required when other visible content makes the control recognizable.

What color ratio is 3 to 1 in plain terms?

It is a measured ratio between two colors, not a color name. Mid-grey on white is often close to the line, and darker greys pass comfortably. A free contrast checker takes two color values and prints the ratio, so you do not need to judge it by eye.

Does a pale disabled button count against us?

The W3C exempts controls that are inactive. A Send button that is greyed out until the required fields are filled falls under that exception. Once it becomes active, its identifying cues need to meet the ratio, so check the active state as well.

Will darker borders hurt the look of the page?

A one or two shade change is rarely noticeable to someone who sees well and makes a real difference to someone who does not. Show your designer both versions on a phone outdoors or at low brightness before deciding, and keep the version you can see.

Sources

Keep reading

Ready to Grow Your Practice?

Primara is now accepting new independent practices nationwide. Most new engagements begin within one week.

Send Us a Message

We respond within one business day.

* Required field

We'll call to confirm your consultation.

No spam, ever. HIPAA-aware agency. We respond within one business day. For urgent inquiries, call (561) 291-2681.

Founder-LedHIPAA-AwareServing Practices Nationwide