Contents

Start with the background where your link will actually appear, choose a candidate link color, and check the two colors with a contrast checker. Then make the link recognizable without relying on color alone: an underline is a straightforward cue to look for.
A useful choice has to work in the page itself, not just as a swatch. Check the surrounding text, the link’s text size, and every background or link state where the color will be used. If a check raises a question you cannot answer, record it before settling on the color.
Start with the colors in context
Identify the page colors
Find an example of the link where it will be read. Note the color immediately behind the link and the color of the surrounding text. A link inside a colored panel, for example, needs to be considered against that panel rather than against a different background elsewhere on the page.
If you are choosing a color for more than one page or area, collect an example from each. A short list can keep the task manageable: write down the page or area, the background color, the surrounding text color, and the link color you want to try. You do not need to choose the final color before making the list.
Choose and record a candidate
Pick a color that suits the page and that you can test. If you have an existing color value, use it; if you are choosing visually, record the value associated with your selection so you can enter the same candidate in a contrast check. Keep the original value alongside any alternatives you try.
A color picker or palette generator may help you explore possibilities, but first check what the tool accepts and displays. Use the color values available to you rather than assuming that every tool uses the same input format. If you cannot find the exact background or text value, ask the person responsible for the page or check the page’s color information before treating the result as final.
For example, you might note “article text area” beside one background value and “colored callout” beside another. That gives you two separate situations to check. It also makes it easier to explain later why one link color worked in one area but needed a different treatment in another.
Test the link against its background
Enter the colors and read the result
In a contrast checker, use the candidate link color as the text color and the color immediately behind it as the background. Check that the values match the page context you recorded. The result is a contrast ratio based on the colors’ relative luminance; it gives you a way to assess that specific text-and-background pairing.
The ratio is useful only when paired with the applicable contrast requirement. Check which requirement applies to your situation and whether the link is considered normal or large text under that requirement. Do not assume a link qualifies as large just because it looks prominent. If the checker presents separate results for text sizes, confirm what those labels mean before deciding which result applies.
Keep a note of the candidate, background, result, and text-size category you used. If someone else needs to review the choice, they can see what was checked and repeat the same pairing. A result for one background does not answer the question for a link placed on another background.
Adjust and test again
If the candidate falls short of the applicable requirement, change the link color and run the check again against the same background. For a light background, you might try a darker candidate; for a dark background, you might try a lighter one. Record each candidate so you can compare the results and return to a version that worked.
Make one change at a time when exploring options. If you change both the link and background colors at once, note both changes and test the new pair together. If the background cannot be changed, keep it fixed while you explore link colors. If no candidate works across all the intended backgrounds, consider using different link colors for different contexts, then check each pairing separately.
A passing contrast result addresses the tested pairing and requirement. It is one part of the decision; readers also need a visible way to recognize the text as a link.
Make the link recognizable
Give readers a cue beyond color
A link embedded in a paragraph should be identifiable without requiring the reader to perceive its color. An underline is a practical cue: it marks the linked words in a way that is visible alongside the surrounding text. When reviewing a candidate, look at the link in a full sentence, not just as a colored sample.
Ask yourself: if the link and paragraph text appeared to be the same color, would the linked words still stand out as something a reader could follow? If the answer is unclear, add or strengthen a visible cue and review the sentence again. The goal is to let someone find the link without having to compare colors.
Consider the words used for the link as well. A descriptive phrase can help readers understand where the link is intended to lead. For example, a phrase such as “read the color guidance” gives more context than an isolated “here.” Check that the wording matches the destination before using it.
Check readability and recognition together
An underline helps identify a link, but you still need to check the link text against its background. Equally, a contrast result does not tell you whether the link is easy to distinguish from the surrounding paragraph without color. Look at both questions before accepting the choice.
If the page uses another visible cue, inspect it in context and ask whether it identifies the linked words clearly without color. Pay particular attention to paragraphs containing several links: readers should be able to tell where each linked phrase begins and ends. If the cue is difficult to interpret, an underline may provide a clearer treatment.
Review the choice across contexts
Repeat the check where the link appears
Return to the list of page areas you made at the start. For each one, check the link color against its actual background and look at how the link appears beside surrounding text. Include any differently colored panels or other areas in which the link may appear. If a page can be viewed with a different color scheme, check the link in that scheme too.
Also review the states relevant to the page. For example, if a link changes appearance when it is hovered over, focused, or visited, check the colors and visible cues used in those states. Confirm that the link remains readable and recognizable in each state you intend to use. If you cannot view or determine a state, note it for the person who can verify it.
This simple record can guide the review:
| Context | What to check | What to record |
|---|---|---|
| Link in a paragraph | Link color against the background and a cue beyond color | Color values, contrast result, and visible cue |
| Link on another background | The pairing used in that area | Background and link values, plus the result |
| A different link state | The colors and cue shown in that state | State, values, result, and any question to resolve |
Decide what is ready to use
Choose a candidate only after the relevant pairings have been checked against the applicable requirement and the links can be recognized without color alone. If one context fails, adjust the color or treatment for that context and check it again. If you do not know the applicable text-size category or cannot confirm an actual color, keep that item open for review.
Finally, share the selected values and the contexts in which they were checked with whoever will apply them. Include the underline or other visible cue in that handoff, so the decision covers both readability and recognition. For further guidance on color use, consult Section508.gov’s accessibility guidance.