FIELDNOTES / GUIDE

How to Evaluate Link Colors Against Text and Backgrounds

In this guide
AI-generated illustration; not taken on location · Illustration connecting link, text, and background color samples in three pairs.
AI-generated illustration; not taken on location · Compare each pair of colors when evaluating an inline link.AI-generated illustration

To evaluate an inline link, compare its color with the background, compare the surrounding text with that same background, and then compare the link with the surrounding text. These checks answer different questions: the first two concern readability, while the third helps you investigate whether the link stands out within a sentence.

A link can be readable against its background yet still be difficult to spot among nearby words. If the link does not stand out clearly, use a non-color cue such as an underline and review the result in its normal, hover, and keyboard-focus states. The steps below show how to organize the comparisons and revisit them after a color change.

Gather the three colors

Start with an inline link in its actual setting: a link embedded in a sentence, surrounded by ordinary text, with a background behind both. Choose one example to review first. If links appear in several settings, such as on different background colors, treat each setting as a separate comparison rather than assuming the first result applies everywhere.

Record three values:

  • Link color: the color of the linked words in their normal state.
  • Surrounding text color: the color of nearby words that are not links.
  • Background color: the color directly behind those words.

Keep the labels alongside the values so you can tell them apart later. For example, write “link,” “text,” and “background” in a small note, then add the corresponding color values. You do not need to decide which color is best yet; the goal is to capture the combination you are actually evaluating.

Find values you can use

If the colors are already supplied to you, copy their values into your notes. If you need to find them, a color picker may be useful. Check what input it accepts and whether it can provide a value for the particular color you want to inspect. A sample from an image or screenshot may not represent every part of the original display, so verify the values against the source if that is available to you.

Pay attention to the precise context when recording the background. If it changes behind the sentence, a single background value may not describe the whole link. Review representative locations separately, or ask whoever can inspect the original design which values should be checked.

Also note the text size and any visible styling, such as an existing underline. Later, you will need the size to interpret the background comparisons and the styling to judge how the link is presented to a reader. Keep the normal-state colors distinct from any colors shown when the link is hovered over or receives keyboard focus.

Check readability against the background

Use a contrast checker to compare the link color with the background color. Enter the two values in the fields the checker provides, then record the result with the label “link and background.” Consult the checker’s instructions to understand its inputs and output; do not assume that every tool presents results or guidance in the same way.

Next, repeat the process with the surrounding text color and the same background. Label this result “text and background.” Keeping both results matters because a readable link does not establish that the surrounding sentence is readable, and a readable sentence does not establish the same for its link.

Comparison What you are checking
Link and background Whether the linked words have enough contrast for the applicable text size.
Surrounding text and background Whether the nearby non-link words have enough contrast for the applicable text size.

Interpret each result in context

Use the guidance applicable to the text size you recorded. If the checker asks for size or presents different interpretations for different sizes, select the option that matches the text you are reviewing. If you are unsure which interpretation applies, check the relevant guidance or ask someone who can confirm the size and applicable criteria. A number on its own is not a complete decision without knowing how it should be interpreted.

If either pair needs improvement, identify which color you can reasonably change. For example, if the surrounding text works against the background but the link does not, you might consider a different link color while keeping a note of the current one. If the background is the element being reconsidered, both text comparisons need another look.

After making a candidate change, rerun the affected checks. Record the new values and results next to the originals so you can see what changed. Do not stop after improving the link against the background: the link still needs to be distinguishable from the surrounding text, which is a separate comparison.

Check whether the link stands out

Now compare the link color directly with the surrounding text color. Enter those two values into the checker, if it supports that comparison, and label the result “link and text.” This comparison concerns the difference in relative luminance between the link and the surrounding non-link text.

The purpose is different from the two background checks. Imagine that both the linked words and their neighbors are easy to read against the background, but their colors look very similar to each other. A reader may understand the sentence while overlooking the link. Checking link against text helps you investigate that distinction; checking either color against the background alone does not answer the same question.

Use the applicable guidance to interpret the link-to-text result. If a tool gives you a number without explaining what it means for identifying links, look for that guidance before making a judgment. Avoid treating a favorable result as proof that every reader will recognize the link in every setting. Consider the actual sentence and any visible cue as well as the numerical comparison.

What if the link is readable but hard to find?

Add a cue that does not depend on color, such as an underline, and review the sentence again. Ask a practical question: can someone identify the linked words before interacting with them? An underline can make the boundaries of the link more apparent, particularly when its color is close to the surrounding text.

Changing the link color is another possible adjustment, but it creates a new set of comparisons. A candidate that differs more from the surrounding text may produce a less useful result against the background. Recheck both pairs involving the link whenever its color changes.

If the surrounding text color changes instead, repeat its comparison with the background and its comparison with the link. If the background changes, repeat both background comparisons. This small habit prevents an improvement in one relationship from obscuring a problem in another.

Add cues and review the result

Review the link as a reader encounters it in a sentence. If color alone does not make it sufficiently recognizable, keep a visible non-color cue in the normal state. Underlining is one option: check that it is apparent across the linked words and that the link remains easy to read. If you are considering a different cue, examine whether it actually distinguishes the link from nearby text in that context.

Do not rely only on a cue that appears after interaction to solve a link-discovery problem. A reader first needs a way to notice the link. Once you have reviewed the normal state, move on to the states shown when a pointer hovers over the link and when the link receives keyboard focus.

Review hover and keyboard focus

If you can interact with the example, move a pointer over the link and observe what changes. Then use the keyboard to move focus to it and observe the focus presentation. Note whether the link and its current state are apparent in each case. If a state changes the link color or background, capture the colors in that state and repeat the relevant comparisons.

If you cannot operate the example yourself, ask for a view of each state or for the values and visible cues used in them. Do not assume that the normal-state result also describes hover or keyboard focus. Where several links or backgrounds use different styling, repeat the review for each distinct combination.

Make changes without losing track

A simple comparison log can keep the review manageable:

  1. List the link, surrounding text, and background values for one setting.
  2. Record the results for link against background, text against background, and link against text.
  3. Note the applicable text size, the visible non-color cue, and any guidance used to interpret the results.
  4. Change one candidate color or cue, then repeat the affected comparisons and inspect the link in context.
  5. Review the normal, hover, and keyboard-focus states, recording any state-specific colors or cues.

A palette generator may help you explore candidate colors if its available inputs and outputs suit your task. Treat a suggested color as a starting point: enter the chosen values into your comparisons and examine the final combination. The useful result is a link that readers can both read and recognize within the surrounding sentence.

← Return to the tools