Contents

To check a button border, first identify the colors that touch it on the inside and outside. Compare the border with each relevant adjacent color, then ask whether the button would still be recognizable without that border. The useful comparison is the one that helps you assess the visual information needed to identify the control.
A border can meet one color on its inner edge and a different color on its outer edge, so a single comparison may not answer the whole question. Look along the edge for changes, too. After checking the button’s boundary, consider any visual information needed to identify its states and check the label as text. Use the applicable accessibility guidance to interpret your results; a contrast ratio alone does not settle every question about a design.
Identify the colors around the border
Start with the button as it appears in the context you want to assess. Locate its border and follow the edge around the control. Note the border color, the color immediately inside it, and the color immediately outside it. These give you the starting points for two possible comparisons: border against interior, and border against surrounding background.
For example, if a button has a dark outline, a light interior, and a different-colored area around it, keep those three colors distinct in your notes. Calling both neighboring colors “the background” can make it easy to compare the outline with the wrong one. A useful sketch or written description can be as simple as “inside: light color; border: dark color; outside: surrounding color.”
Look along the whole edge
Check whether the same colors touch the border all the way around. A button may sit over a changing background, or its interior may vary from one area to another. If the color beside the border changes, mark the locations where you need separate comparisons. Describe each location clearly enough that you can return to it when reviewing the result.
Gradients, transparency, images, and antialiased edges can make it less obvious which colors to use. Rather than assuming one sampled point represents the whole edge, note where the appearance changes and ask how the rendered colors at those locations should be evaluated. If you have access to a color picker, check what it samples and what format it provides before relying on its output. If you are unsure which point is representative, record the uncertainty alongside the location and seek guidance on the particular design.
Keep the button label out of these initial border notes unless it touches the border and is relevant to the edge you are considering. The label has its own text contrast question, which you can address separately.
Measure adjacent color pairs
Once you have identified the colors, organize the comparisons around the edges they share. The border and the outside background form one pair; the border and the interior form another. Where either adjacent color changes along the border, list the additional locations you intend to check. This keeps a result tied to a visible part of the button instead of treating it as a score for the entire control.
| Comparison to consider | What to record | Question to carry forward |
|---|---|---|
| Border and outside color | The location, the two colors, and any reported ratio | Does this outer edge help identify the button? |
| Border and inside color | The location, the two colors, and any reported ratio | Does this inner edge help identify the button? |
| Border and a changed neighboring color | The changed location, the pair, and any reported ratio | Does the edge remain useful at this location? |
Use a contrast checker only after confirming which inputs it accepts and what its result represents. Enter or select the two colors for one adjacent pair if the checker supports that input, then record the reported contrast ratio with the pair and location. Repeat for the other relevant pairs. If a checker cannot represent a particular appearance or you cannot tell how it handles an input, keep that limitation in your notes rather than treating its result as a complete assessment.
Contrast ratios use relative luminance. A reported ratio helps you compare a particular pair, but its meaning for the button depends on which visual information is needed to identify the control. Do not assume that a favorable result for one edge establishes the result for every other edge.
For a practical record, use a row such as “outer edge, upper left: border color versus surrounding color; reported ratio: [result].” Add another row for the inner edge if it matters to recognition. Where the background varies, add rows for the locations you selected and explain why those points need review. Then consult the applicable guidance before deciding what the results mean.
Decide whether the border is needed
After measuring the relevant pairs, return to the question the numbers are meant to inform: would someone still be able to identify this as a button if the border were absent? Consider the control in its surrounding context rather than judging an isolated color swatch. The answer affects how relevant the border is to assessing the visual information needed to identify the control under the non-text contrast criterion.
A useful exercise is to imagine the same button without its outline, or compare it with a version where the outline has been removed if one is available. Look at the remaining visual cues and ask whether they still make the control recognizable. Then look at the version with the border and identify what the border adds. Write down the cue you are relying on, rather than simply marking the border as necessary or unnecessary without explanation.
Connect the answer to the measurements
If the border supplies information needed to identify the button, review the comparison or comparisons that show that information against the colors touching it. For example, if the outer boundary is the cue you are assessing, connect your outer-edge result to that observation. If a different portion of the edge is relevant, record that portion and its adjacent colors as well.
If the button seems identifiable without the border, describe the remaining cue and assess it under the applicable guidance. Avoid assuming that removing the border from consideration answers every accessibility question about the control. Likewise, if recognition depends on a combination of features and you cannot tell which comparison is decisive, record the uncertainty and seek a review of the design in context.
The Section508.gov guide to accessible color usage is an official starting point for checking the relevant guidance. Compare its requirements with the information your measurements actually cover before making a conclusion.
Check states and the button label separately
A button may present different visual information in different states. For each state you need to assess, ask what a person must be able to recognize and whether the relevant cue changes. If a border or another visual cue carries information needed to identify a state, note the adjacent colors in that state and consider the appropriate comparison. Do not assume that measurements taken in one appearance automatically describe another.
Make a short state-by-state record using the appearances available to you. For each one, write down the state, the visual cue being assessed, the colors that touch it, and the result of any relevant comparison. If the appearance changes across an edge, include the locations you checked. This record makes it easier to see whether you have assessed the information that matters in each case, and it gives a reviewer a clear place to start if a result is uncertain.
Review the label as text
The words on the button need their own check. Identify the label color and the color immediately behind the text, then use the applicable text contrast criterion to interpret the comparison. A border result addresses the pair you measured at the border; it does not by itself tell you whether the label meets the applicable text requirement. If the area behind the words changes, note that variation and determine which comparisons are appropriate.
Before finishing, review your notes with these questions:
- Which colors touch the border on each side, and where do they change?
- Which edge or other cue helps someone identify the button?
- Would that identification still be possible without the border?
- Does the visual information needed to identify a state change between the appearances you reviewed?
- Have you assessed the label against the color behind it using the applicable text guidance?
If any answer remains unclear, keep the unresolved point with the relevant measurement. That is more useful than treating a single ratio as a complete verdict on the button.