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 form | Needs 3 to 1 against what is next to it? |
|---|---|
| Border of an empty text field | Yes, it is how a visitor finds the field |
| Outline of a button that has dark text inside | Usually no, the text identifies the control |
| Outline of a button with no fill and pale text | Yes, and the text needs its own text contrast |
| Check mark inside a checkbox | Yes, it shows state |
| Focus ring on the field being typed in | Yes, it shows state |
Check your own form in five minutes
- 1Open your contact page on a phone and turn the screen brightness down to about half.
- 2Hold the phone at arm's length and ask whether you can still point to every field.
- 3In a desktop browser, right-click a field border, choose Inspect and look at the border color value.
- 4Paste that value and the page background value into a free contrast checker and read the ratio.
- 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
- W3C Web Accessibility Initiative — Understanding Success Criterion 1.4.11: Non-text Contrast