Contents

To compare tab colors, check each label against the background immediately behind it, then check whether the selected tab is recognizable among its neighbors. These are separate questions: a label can be readable while the selection is hard to spot, or a prominent selection cue can sit beside text that is difficult to read.
Start by recording the colors for both states. Use the contrast guidance relevant to your situation to assess each label and background pair, and look for a selection cue such as an underline or border. Finally, review keyboard focus and any other relevant states in the context where the tabs will appear.
Collect the colors for each tab state
Begin with a small inventory of what you can actually see. For a selected tab and an unselected neighbor, identify the label color and the color directly behind the label. If the tab has its own filled background, use that background for the label pair. If it is transparent, look at the surface showing through behind it.
| What to record | Selected tab | Unselected tab |
|---|---|---|
| Label color | Record the displayed label color | Record the displayed label color |
| Background behind the label | Record the tab background or underlying surface | Record the tab background or underlying surface |
| Selection cue | Note any underline, border, shape, or other cue | Note what appears in the corresponding area |
Use the color values available to you, and keep the notation consistent so that you can enter the pairs accurately. If you need to obtain a value from an image or screen, check whether the color picker you plan to use supports that input and how it reports its result. For a transparent tab, make sure the value represents the visible surface behind the label, rather than treating transparency itself as a background color.
Carbon provides an example of why the distinction matters: its unselected line-tab background is transparent, while its selected and unselected contained tabs use different contextual background tokens. Carbon also assigns primary text to selected line-tab labels and secondary text to unselected ones. Those choices are a useful prompt to collect both pairs; they do not establish the colors used by your own tabs.
If the surface behind a transparent tab changes between themes or contexts, record a separate pair for each version you intend to use.
Compare each label with its background
Check the selected label against its own background, then repeat the process for the unselected label and its background. Comparing the two label colors with each other answers a different question and does not tell you whether either label is easy to read.
For each pair, enter the foreground and background values into a contrast checker that accepts your color format. Before relying on an output, confirm what the checker measures, how it identifies the foreground and background, and which contrast guidance it applies. Keep the result beside the pair in your notes, along with the guidance you are using to judge it.
For example, if a selected label sits on a filled tab and its neighbor sits on the surrounding surface, enter those as two separate combinations. Record the actual values rather than just writing “dark text” or “light background”; that makes it easier to repeat the check after a change.
Decide what to adjust
If a pair does not meet the guidance you are applying, or is difficult to read in context, consider changing the label, the background, or both. Change one part at a time when practical, record the new values, and run the comparison again. A palette generator may help you explore alternatives if it accepts the inputs you have and provides outputs you can use; verify its features before choosing it for the task.
Read the actual labels after checking the numbers. Compare a short label and a longer one, and look at the text at its intended size. A numerical result is useful for assessing the pair, but it does not by itself answer whether the selected state is apparent. Once you have adjusted a pair, repeat the selection and focus checks too: changing a color may affect how nearby cues appear.
Make the selected tab recognizable
Place the selected tab beside its unselected neighbors and ask a simple question: can you tell which one is selected without relying on the color difference? Look at the whole tab, including the area below and around its label, rather than judging the label in isolation.
An underline, a border, or a distinct tab shape can provide an additional cue. The cue needs to be visible against the area next to it and associated clearly with the selected label. If the underline blends into a nearby divider, for example, consider changing the cue or its surroundings and checking the result again. If more than one tab has a similar border, check that the selected treatment still stands out.
Carbon illustrates one combination: its selected line tab has an interactive bottom border, and its tab typography table specifies semibold selected labels and regular unselected labels. These are examples of ways a tab set can communicate state; they are not a substitute for checking your own labels and cues in context.
Try a color-independent review
Cover the color values in your notes and look at the tab set itself. Ask someone viewing it to point out the selected tab based on its visible treatment. If the answer is uncertain, note what caused the uncertainty: perhaps the cue is too subtle, appears on every tab, or is separated from the label it should identify. Revise the treatment and repeat the check with the tabs in their normal arrangement.
After changing a selection cue, revisit both label and background pairs. A stronger underline can clarify selection, but it does not repair a label that remains difficult to read.
Review focus and other interaction states
Selection and keyboard focus answer different questions. The selected tab indicates the current selection; focus shows where keyboard interaction is directed. Review them separately, including a situation in which focus is on a different tab from the selected one, if that situation is possible in the tab set you are assessing.
Use the keyboard to move through the available controls and watch for the focus indicator. Can you see where focus is? Can you still identify the selected tab at the same time? If the two cues look alike or overlap, consider a focus treatment that remains distinct from the selection cue. Check its visibility against the surfaces and borders next to it, not just against the tab label.
Then examine other states that are relevant to the tabs. If a hover appearance is available, move the pointer over selected and unselected tabs and check that the labels remain readable and selection remains apparent. If tabs can be disabled, review that appearance too: note whether its label and state can be understood in context, and apply the guidance relevant to your situation.
Record the color pairs and visible cues for any state that changes them. For instance, a hover background may create a new label and background pair that was not covered by the resting-state check. Repeat the appropriate contrast comparison for that pair, then look at it alongside its neighbors.
If you cannot reach or inspect a state, note that as an item to verify with the person or process responsible for the tab set. Avoid assuming that a resting-state result covers interactions you have not seen.
Recheck the finished tab set
Bring the checks together in the setting where the tabs are intended to appear. Review the selected and unselected labels, the selection cue, and keyboard focus as a complete set. Then repeat the review in each available theme, because a transparent tab may reveal a different surface and a cue may appear differently against a new background.
Check a narrow layout as well as a wider one. If tabs overflow, inspect the version that actually appears: can you find the selected tab, read the visible labels, and follow focus? If the selected tab or its cue is outside the visible area, record that observation and check how a reader is expected to find it. Do not assume that a result from a wide layout carries over unchanged.
Keep a compact record for each version you reviewed:
- The theme or context and the state being checked.
- The label and background values, including the surface behind a transparent tab.
- The contrast result and the guidance used to interpret it.
- The selection and focus cues, plus any issue that still needs attention.
When you revise a value or cue, update the record and recheck the affected states. Finish by asking whether a reader can comfortably identify the labels, recognize the selected tab without depending on color, and distinguish keyboard focus from selection. Those answers, together with your recorded comparisons, provide a practical basis for deciding whether the tab set is ready to use.