What to check
People need to see where to type or select an answer. Field borders, checkbox outlines, and radio-button outlines that identify the control should have at least 3:1 contrast against the colors beside them. Check both light and dark backgrounds when both are used.
Passing examples
These examples meet this check:
- A text field border measures at least 3:1 against the page background.
- An empty checkbox outline measures at least 3:1.
- An unselected radio button remains clearly visible.
- A field boundary remains visible in dark mode.
- An error-state border remains clear without removing the normal field boundary.
Failing examples
These examples need attention:
- A pale-gray border measures only 1.5:1 on white.
- Unchecked checkboxes disappear into the page background.
- Unselected radio buttons are almost invisible.
- Field borders disappear when dark mode is used.
- Only the placeholder shows where the field begins and ends.
Helpful note
A border is not required when another clear visual treatment identifies the field. Whatever identifies the control must be easy to see.
