FIELDNOTES / GUIDE

How to Check Contrast for Form Field Borders and Focus Indicators

On this page
AI-generated illustration; not taken on location · Illustrated form fields in resting and focused states beside a contrast checking and revision cycle.
AI-generated illustration; not taken on location · A conceptual overview of checking and revising form field contrast.AI-generated illustration

To check a form field’s contrast, first identify the visual feature that makes the field visible and the colors touching it. Then move keyboard focus to the field, identify what changes, and compare the focus indicator with each relevant neighboring color. Record the results and check them against the accessibility criteria that apply to your situation.

A contrast result is useful only when it describes the right pair of colors in the right state. A border, a field fill, and a focus indicator can each call for different comparisons. This guide walks through a repeatable way to find those pairs, obtain usable color values, and decide what to review after a change.

Identify what makes the field visible

Start with the field in its resting state, before it receives keyboard focus. Look at it in the form where a person would encounter it, including the area immediately around the field. Ask: if the label and any text inside the field were covered, which visual feature would tell me where the field begins and ends?

A visible border may define the edge. In another design, the field’s fill may distinguish it from the surrounding color without a border. Some fields may use more than one visual cue. Write down the feature you are assessing rather than assuming every field has a border that needs the same comparison.

Find the colors that meet

For a border, note the border color and the colors touching it on either side: the field’s interior and the area outside the field. For a boundary defined by fill, note the field fill and the surrounding color. Look around the whole edge. If part of the field sits against a different background, record that neighboring color separately.

A simple inventory can keep the comparisons clear:

Feature in the resting state First color to record Neighboring color to record
Visible border Border Field interior or outside background, as relevant
Boundary defined by fill Field fill Surrounding background
Edge crossing different surroundings Boundary feature Each different surrounding color

These rows are prompts for inspection, not a substitute for determining which comparisons the applicable criterion requires. A label, placeholder, or entered text can help someone understand a field, but do not mistake its text color for the color that defines the field’s boundary.

If the field’s colors change across its edge, note where each value comes from. If you cannot confidently identify a feature or its neighbors, keep that item open for review instead of selecting a convenient pair and treating the result as a complete assessment.

Inspect the focus indicator

Next, use the keyboard to move through the form until the field receives focus. Watch the field as focus arrives, then move focus away and back again if you need another look. Compare the focused appearance with the resting appearance you just recorded.

Look for the visible change that tells you which field has focus. Depending on the design, that might be a change around the field or a change to an existing feature. Describe what you actually see: for example, “the edge changes color” or “an additional outline appears.” If you cannot find a clear change, record that observation and investigate the focus appearance before attempting to assess it with a color pair.

Trace the indicator’s surroundings

Once you have located the indicator, follow it around the field. Note its color and every different color immediately next to the portions you need to assess. An indicator may meet the field on one side and the page background on another. It may also cross different backgrounds along its perimeter. Those situations can require separate comparisons; a single result for one portion should not stand in for the others.

Keep a second set of notes for the focused state. Include the field name, the indicator feature, its neighboring colors, and where each pair occurs. If focus changes the existing border, record both its resting and focused appearances. That makes it possible to investigate any applicable requirement concerning the change between states as well as requirements concerning adjacent colors.

For example, your notes might say: “Email field: focused outline against the form background; lower edge also touches a differently colored panel.” This is a description of what to check, not a claim that either comparison passes. Add the actual values once you have obtained them.

If the form includes multiple relevant controls, repeat the inspection for each distinct appearance. Do not assume that a result for one field covers another field whose background, border, or focus treatment differs.

Compare the relevant color pairs

Turn your notes into a list of color pairs before opening a checker. Label each pair with the field, state, feature, and location. This makes it easier to distinguish a resting border comparison from a focused indicator comparison and to revisit a result later.

For instance, a working list could contain “resting field fill versus surrounding background,” “focused outline versus surrounding background,” and “focused outline versus panel background.” If the applicable criterion also calls for a comparison between focused and unfocused appearances, add the relevant values for that comparison separately.

Obtain and enter values

Use the color values available to you from the design or the displayed form. A color picker may help you obtain a value if you can use one in your working environment; check its instructions to learn how it selects a color and what format it returns. Choose a point on the feature you intend to assess, then obtain the neighboring color separately. If an edge is difficult to sample, review the available design values or ask the person responsible for the form how to obtain the intended colors.

Enter the two values into an available contrast checker, following its instructions for accepted formats. Note the resulting ratio next to the pair in your list. Repeat for each pair you identified. If a value cannot be entered, check its format and the checker’s instructions rather than guessing a replacement. A palette generator, if available, may help you explore alternatives later; verify what it can do before relying on it for a decision.

Decide what the result means

A ratio alone does not establish whether the field satisfies an accessibility requirement. First identify the authoritative criterion that applies to the component, state, and comparison you are assessing. Check its current wording, scope, and any relevant conditions, then compare your result with the requirement. Also check whether a requirement asks you to evaluate a change between states or another aspect of the indicator that a color-pair result alone does not settle.

Record the criterion and your decision alongside each result. If you cannot verify which criterion applies, mark the assessment as unresolved and consult an appropriate accessibility specialist or authoritative guidance. Do not substitute a proposed interpretation for a verified requirement: draft discussions can contain unsupported information and may not represent consensus.

Revise and check again

If a result falls short of the verified criterion, use your notes to decide which colors to reconsider. For a boundary defined by its fill, that may mean exploring the relationship between the fill and its surroundings. For an indicator, consider the indicator color together with each adjacent color it meets. The useful change is the one that addresses the comparison that needs attention in the actual form.

Try one adjustment at a time and keep a record of the original and revised values. For example, if an outline meets both a page background and a panel background, enter the proposed outline color against each background separately. Improving one comparison does not by itself tell you the outcome of the other. If a proposed color creates a new problem elsewhere, revisit the combination rather than relying on the first improved result.

Repeat the full inspection

After making a change, look at the field in context again. Check its resting appearance, move keyboard focus to it, and check the focused appearance. Repeat the relevant color-pair measurements and any applicable comparison between states. If the change affects a shared color or treatment, inspect the other fields that use it as well.

Use your original inventory to avoid losing track of a portion of the field. In particular, revisit any edge where the surrounding color changes. Confirm that the values entered in the checker correspond to the revised feature and its actual neighbor, and record the new result with the same labels as before.

Consider other relevant states of the form too. If a field has a different appearance in another state, inspect that appearance and determine which criteria and comparisons apply. A result obtained for a resting field does not automatically resolve a question about its focused appearance, or vice versa.

Finish with a compact record someone else can follow: the field and state, the feature assessed, the two values, the location of the pair, the result, and the verified criterion used for the decision. Keep unresolved questions visible. If you cannot change the form yourself, this record gives the person responsible for it a concrete starting point for review and retesting.

← Return to the tools