Sub topic 8
Adding cues beyond color
This chapter covers the "color not alone" rule: what it requires, how to apply it in a wireframe, and where designs commonly fail. It assumes you know the WCAG levels from the foundations chapter and have read the contrast chapter. You should also be comfortable with basic HTML and CSS.
What the rule requires
WCAG Success Criterion 1.4.1, Use of Color (Level A), says color must not be the only visual means of conveying information, indicating an action, prompting a response, or distinguishing a visual element.
Color can still carry meaning. The rule requires a second cue that does not depend on seeing the color. That cue can be text, an icon, a shape, a pattern, a position, or an underline.
This differs from contrast. Contrast asks whether a color pair is distinguishable from its background. Use of Color asks whether the meaning survives when the hue is lost. A red error message with 7:1 contrast still fails if red is the only thing that marks it as an error.
Who loses information when color carries meaning
- People with color vision deficiency. Red-green deficiency is the most common type and affects roughly 1 in 12 men. Red and green can look nearly identical.
- People using a monochrome display, high contrast mode, or a forced-colors setting that replaces your palette.
- People in bright sunlight, or using a low-quality screen or a grayscale print.
- Screen reader users. Color is not announced, so a color-only signal never reaches them.
The last group matters most for handoff. A visual second cue such as an icon does not help a screen reader user unless it also has a text equivalent. The chapter on text alternatives covers that.
The grayscale test
A fast check works at wireframe stage. Convert the design to grayscale, or squint at it, and ask whether every state is still distinguishable. Low-fidelity wireframes are often gray already, so you can design the second cue first and add color later.
Common places color carries meaning
| Pattern | Color-only version | Added cue |
|---|---|---|
| Form errors | Red border on the field | Error icon plus message text such as "Error: Enter an email address" |
| Required fields | Red label | Asterisk with a legend, or the word "required" |
| Status badges | Green, amber and red dots | Dot plus a word: "Paid", "Pending", "Overdue" |
| Links in body text | Blue text with no underline | Underline, or another cue with 3:1 contrast against surrounding text |
| Charts | Lines distinguished by hue | Direct labels, different line styles, or markers |
| Selected state | Highlighted background only | Check mark, bold text, or a border change |
| Calendar availability | Colored cells | Text, pattern, or symbol in each cell |
Links inside text
Links are the most frequent failure. If a link sits inside a paragraph and is distinguished only by color, WCAG requires the link color to have at least 3:1 contrast against the surrounding text. It also requires a second cue, such as an underline, when the link receives hover or keyboard focus.
Underlining links always is simpler and safer. In a wireframe, draw links in body text with an underline and note it. Links in navigation bars are exempt from this concern because their position and layout already identify them as links.
a {
color: #0b4fa8;
text-decoration: underline;
text-underline-offset: 0.15em;
}
a:hover,
a:focus-visible {
text-decoration-thickness: 3px;
}Errors: color, icon and text together
Form errors combine several rules. The field needs a visible message, a marker that is not only red, and a programmatic link to the input. The message should start with a word or icon that signals the error.
<label for="postcode">Postcode</label>
<input id="postcode" name="postcode" type="text"
aria-invalid="true" aria-describedby="postcode-error">
<p id="postcode-error" class="error">
<svg aria-hidden="true" width="16" height="16" viewBox="0 0 16 16">
<circle cx="8" cy="8" r="7" fill="none" stroke="currentColor" stroke-width="2"/>
<path d="M8 4v5M8 11v1" stroke="currentColor" stroke-width="2"/>
</svg>
<span>Error: Enter a postcode in the format SW1A 1AA.</span>
</p>Here the icon is decorative (aria-hidden="true") because the word "Error:" already carries the meaning in text. If you used an icon alone, it would need an accessible name.
.error {
color: #a30000;
display: flex;
gap: 0.5rem;
align-items: center;
}
input[aria-invalid="true"] {
border: 2px solid #a30000;
outline-offset: 2px;
}The thicker border changes shape as well as color. A 2px border against a 1px default border is a second visual cue, though a weak one on its own. The icon and text do the main work.
Charts and data visualization
Charts need the most planning because the information is dense. Options, from most to least robust:
- Label data directly on the chart, so no legend lookup is needed.
- Use different markers (circle, square, triangle) and line styles (solid, dashed) per series.
- Use patterns or textures in filled areas such as bars.
- Provide the underlying data in a table next to or behind the chart.
Adjacent colors in a chart or graphic that carry meaning also need 3:1 contrast against each other, under Non-text Contrast (1.4.11), unless a border or label separates them. Note which of these options you chose in the wireframe annotation.
Edge cases and gotchas
- Color words in instructions. "Click the green button" and "Fix the fields marked in red" fail for anyone who cannot perceive the color. Refer to the label or position instead: "Select Save" or "Fix the fields marked Error".
- Emphasis by color. Highlighting a changed value in red is information. Add text such as "Changed" or a symbol.
- Forced colors. In Windows High Contrast mode, background colors and shadows are often removed. A state signaled only by a background fill vanishes. Borders remain, so prefer border or outline changes for states.
- Icon-only cues. An icon that is not familiar, such as an unlabeled flag, does not clearly carry meaning. Pair icons with text when the meaning matters.
- Color plus position. A traffic-light layout where the active light is always in a known position can pass, but only if the position is clearly part of the design and also exposed in text. When in doubt, add a label.
- Disabled controls. Gray text alone marks a disabled state, and WCAG exempts inactive components from contrast rules. If users need to understand why something is disabled, add explanatory text.
Annotating the wireframe
Annotations from the annotation chapter should record the second cue for every color-coded element. A useful note has four parts: the element, the color meaning, the second cue, and the text equivalent.
- Element: invoice status badge.
- Color meaning: green, amber, red.
- Second cue: visible word inside the badge.
- Text equivalent: the visible word is read by screen readers, so no extra label is needed.
Because wireframes are often grayscale, a common practice is to draw the second cue explicitly and add a note such as "Color added in visual design must not replace this cue". That keeps the cue from being dropped when the palette arrives.
Checking your work
- Convert the wireframe or prototype to grayscale and review each state.
- Use a color vision simulator in your design tool or browser developer tools to preview protanopia, deuteranopia and tritanopia.
- Search the copy for color words used as instructions.
- Tab through the page with forced colors enabled and confirm that states remain visible.
- Use a screen reader or the accessibility tree to confirm that each cue has a text equivalent.
Exercise
A wireframe shows an order table where each row has a small dot, green for "shipped", orange for "delayed" and red for "cancelled". The dot has no other content. Name the WCAG criterion this breaks, then describe two changes that fix it and say how a screen reader user would get the status.
Show answer
It breaks 1.4.1 Use of Color (Level A), because color is the only means of conveying order status. Fix it by putting the status word next to or inside the dot ("Shipped", "Delayed", "Cancelled"), and by giving each status a distinct shape or icon, such as a check mark, clock and cross. A screen reader user gets the status from the visible word, which is read as normal text. If the dot were kept as an icon with no visible word, it would need an accessible name such as "Delayed", but visible text is the better choice because it also helps users who do not know the icon.
Exercise
A form says "Fields in red are required." What is wrong with this, and what should replace it?
Show answer
It relies on color to identify required fields, which fails 1.4.1 and excludes screen reader users and people with color vision deficiency. Replace it with a text cue, such as an asterisk on each required label and a legend "* required", or the word "required" in each label. Also add the required attribute to each input so assistive technology announces it.