On this page

To compare selected and unselected state colors, first identify what changes when an option is selected. Then compare the meaningful indicator in each state with the color directly beside it, and check any label against its own background. Finally, look for a clear cue beyond color, such as a checkmark or a text label.
A contrast result describes a particular pair of colors; it does not, by itself, answer every question about a control. Keep each result tied to the element you measured and consider which accessibility criterion applies to that element and its role. The workflow below helps you organize those comparisons, interpret them in context, and retest after a change.
Identify the control and its states
Start with one control that has a selected and an unselected state. It might be a choice in a group, a tab, or another option whose appearance changes when selected. Locate both states of the same kind of control so that you can compare like with like. If you can change the selection, observe what happens to the option that becomes selected and the one that is no longer selected.
List the visible changes
Note every element that appears to communicate selection. Depending on the control, this could include a colored fill, an outline, an icon, a shape, or a word such as “Selected.” Also note which elements stay the same. A label may remain in place while its background changes, for example, so it deserves a separate check in each state.
Write a short description before collecting values: “The selected option has a checkmark and a different fill; the unselected option has no checkmark.” This gives each later comparison a purpose. If there are several options, identify one selected option and at least one unselected option, then consider whether other options have different surroundings or labels that need their own review.
Ask: Which visible part tells me an option is selected, and what sits immediately beside that part? The answer guides the color pairs you collect. If the only apparent difference is color, record that observation for the selection-cue check as well.
Collect the colors that need comparison
For each state, collect the color of every meaningful indicator and the color immediately beside it. The relevant neighbor depends on what you are examining: an outline may meet the surrounding page or panel, while a checkmark may sit inside a filled option. Do not assume that a single background value applies to every part of the control.
Make a comparison list
Use a small table or note to keep the values and their roles together. Replace the descriptions below with the actual colors you observe or obtain:
| Element to check | Color to collect | Adjacent color to collect |
|---|---|---|
| Selected indicator | Checkmark, outline, or other meaningful mark | The color directly behind or beside that mark |
| Unselected indicator | Outline or other meaningful mark, if present | The color directly behind or beside that mark |
| Selected label | Label color | Background directly behind the label |
| Unselected label | Label color | Background directly behind the label |
You can also record the selected and unselected fills as a separate pair if you want to understand how different those two colors are. Keep that result distinct from checks against their surroundings.
Use a color picker if it helps you obtain the values, and enter values in a form accepted by the checker you choose. If a color is transparent or appears over multiple backgrounds, ask for or obtain the actual rendered colors for each relevant background. If you cannot determine them, record the uncertainty and seek the rendered values before treating a result as conclusive.
Compare state colors and surroundings
Enter one pair from your list into a contrast checker and record the result beside the description of that pair. Repeat for the selected indicator, the unselected indicator where relevant, and each label against its own background. If an indicator touches more than one surrounding color, consider each relevant boundary separately.
Read each result in context
Contrast ratios use relative luminance. A ratio tells you about the two colors entered into that calculation; it does not identify the role of the element for you. Record both the number and what it measures, such as “selected checkmark against selected fill” or “unselected label against unselected fill.” Without that context, the same number is difficult to use in a decision.
The applicable accessibility criterion depends on the element and its role. Check the relevant criterion for the particular indicator or text you are evaluating before deciding what a result means. Do not treat a result for an indicator as a result for the label, or assume that a selected-fill-versus-unselected-fill comparison settles whether either state is distinguishable from its surroundings.
For example, imagine a selected option with a checkmark inside a colored fill and a label next to the mark. One useful pair is the checkmark and the fill behind it; another is the label and its background. The unselected option may have a border that calls for a separate comparison with the color next to that border. These are different questions, even when some colors appear in more than one pair.
Keep a simple record of the pair, ratio, element, and criterion you checked. If you are unsure which criterion applies, note that question and consult the relevant accessibility guidance before making a compliance judgment.
Check selection without relying on color alone
After the color comparisons, look at the control as a person choosing between options. Can you identify the selected option from a visible cue as well as its color? Look for a checkmark, a change in shape, a text label, or another clear indicator. Describe the cue in your notes rather than assuming that a difference in fill is enough to explain the state.
Check the cue itself
A cue needs to be discernible where it appears. For a checkmark, compare its color with the color behind it. For a label, check the text against its background and consider whether the wording makes the state clear. For a shape change, look at the actual selected and unselected appearances and consider whether the difference is easy to recognize in context.
If you can change the selection, check that the cue follows the newly selected option and that the previous option is understandable as unselected. If the control cannot be changed during your review, inspect examples of both states if they are available. Note anything you cannot verify.
This check complements the contrast measurements. A clear label or icon communicates what a state means, while the relevant color comparisons help you assess whether the elements can be distinguished from their immediate surroundings. Treat the indicator and the text as separate parts of the review.
Adjust and retest
If a comparison is weak for the element and criterion you are checking, consider changing one of the colors in that pair. If a palette generator is available, you can use candidate colors as a starting point; check each candidate against the actual neighboring colors before deciding whether it helps. You can also explore a clearer indicator or label when the meaning of the state is hard to understand.
Retest the whole control
A change to one color can affect several comparisons. If you alter the selected fill, for example, repeat the checks for the checkmark and label against that fill, as well as any relevant boundary against the surrounding color. If you alter the unselected appearance, review its indicator, label, and adjacent colors too. Keep the selected and unselected results in the same record so you can see which checks belong to each state.
Use this sequence to make the review repeatable:
- Record the original pair, its ratio, and the element it describes.
- Choose a candidate change and identify every element that touches or sits on the changed color.
- Obtain the rendered values for the relevant backgrounds, then repeat the affected comparisons.
- Check the applicable criterion for each result and review label readability separately.
- Revisit the control as a whole: can you still recognize the selected option through a visible cue as well as color?
If a proposed change improves one comparison but leaves another unresolved, keep exploring rather than relying on the improved number alone. Save the final colors, results, and outstanding questions together. That record makes it easier to repeat the review if the control or its surroundings change later.