Form field boundaries must have a 3:1 contrast
The edge of a text field, select or textarea must have a contrast of at least 3:1 with the background around it, so people can see where to click and type.
Readabler check
| Rule ID | rdb-non-text-contrast |
|---|---|
| Impact | Serious |
| Success criterion | 1.4.11 Non-text Contrast · AA |
| Standards | WCAG 2.1 · WCAG 2.2 · EN 301 549 |
| Fixed automatically |
Example
<style>
.field { border: 1px solid #e0e0e0; background: #ffffff; }
</style>
<label for="email">Email</label>
<input id="email" type="email" class="field">The field's faint border (1.3:1) disappears: visitors see a label floating over empty space.
<style>
.field { border: 1px solid #767676; background: #ffffff; }
</style>
<label for="email">Email</label>
<input id="email" type="email" class="field">The grey border (4.5:1) clearly shows where the email field starts and ends.
Why it matters
People with low vision, older visitors and anyone on a washed-out screen need to see where a form field is before they can use it. A very light border or a field with the same color as the page makes a checkout or booking form look like plain text, so people click around trying to find the input.
WCAG 2.1 asks for a 3:1 contrast for parts of the interface that people must see to use them, including the boundary of a field. A text field that cannot be found blocks the whole task, so this often decides whether a visitor can buy, book or sign up at all.
How to fix it
Make the field visible by at least one of these means, each with 3:1 against the background around the field.
A darker border. On white, #767676 or darker passes:
<style>
input, select, textarea { border: 1px solid #767676; }
</style>
A filled field. A field whose background contrasts 3:1 with the page needs no border:
<style>
.search { background: #e8e8e8; border: 0; } /* on a #4a4a4a header */
</style>
A box shadow can draw the edge instead of a border:
<style>
.field { border: 0; box-shadow: 0 0 0 1px #6b6b6b; }
</style>
Underline-only fields (Material style) are acceptable when the bottom line reaches 3:1, but full boxes are easier to recognize.
Check every place the form appears: a field that passes on white may fail on a light grey sidebar or in dark mode. Disabled fields are exempt, but keep them recognizable.
Checklist
- Give field borders 3:1 against the surrounding background.
- Or give the field a fill that contrasts 3:1 with the page.
- Check forms on colored panels and in dark mode.
- Do not rely on placeholder text to show where a field is.
How the check works
The check looks at visible text inputs, selects and textareas. It passes when the field's own fill has 3:1 against its parent's background, or when any border of at least 1px, or a box shadow, reaches 3:1. Otherwise it reports the best ratio found. Fields over background images are skipped. Checkboxes, buttons, focus indicators and icons are not covered: check those manually.
Resources
Updated October 27, 2026