On example.com/orders, each row has a green or red dot next to the order number. Shipped is green. Delayed is red. There is no word, no icon, and no pattern. Someone who cannot tell those colors apart, or who hears the page instead of seeing it, cannot tell the two rows apart.
Web HIG tip #20 (Quick #60): Never rely on color alone to communicate meaning — pair with icon, text, or pattern.
Why it matters
Color is a useful cue. It is a poor only cue:
- A background color or fill is not exposed as an accessible name, so a color-only status can be silent to a screen reader
- Hue differences can be hard to see, including for people with color-vision deficiencies, in bright light, or on a monochrome or grayscale display
- Forced-colors and similar contrast settings can replace author background colors, which can erase a cue that lived only in a background. A color-only dot can vanish or become indistinguishable from the others. Text typically stays, in a system color
- A chart or filter that encodes meaning only as a swatch fails in the same way
Quick #60 is Quick-only guidance (no rule ID of its own). For errors, §2.5, Error UX Taxonomy is more specific: errors MUST NOT rely on color alone, and each error MUST include text and, where applicable, an icon or pattern. Required-field markers have a related Quick item (#55), which tip #4 already covered.
Before and after
These table cells use fill color as the only status:
<table> <tr> <th>Order</th> <th>Status</th> </tr> <tr> <td><a href="https://example.com/orders/1042">1042</a></td> <td><span class="dot dot-shipped"></span></td> </tr> <tr> <td><a href="https://example.com/orders/1043">1043</a></td> <td><span class="dot dot-delayed"></span></td> </tr> </table> <style> .dot { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 50%; } .dot-shipped { background: green; } .dot-delayed { background: crimson; } </style> Give the status a visible word. Keep color if it helps, and add a shape or pattern so the meaning does not depend on hue. This is a status-label illustration, not a complete orders table or a design system:
<table> <tr> <th>Order</th> <th>Status</th> </tr> <tr> <td><a href="https://example.com/orders/1042">1042</a></td> <td><span class="status status-shipped">Shipped</span></td> </tr> <tr> <td><a href="https://example.com/orders/1043">1043</a></td> <td><span class="status status-delayed">Delayed</span></td> </tr> </table> <style> .status { display: inline-block; padding: 0.15em 0.5em; border-inline-start: 0.35em solid; } .status-shipped { border-inline-start-style: solid; color: green; } .status-delayed { border-inline-start-style: dashed; color: crimson; } </style> The word "Shipped" or "Delayed" is what people read and what assistive technology can speak. The border style is a second non-color cue, not a substitute for the text. It is a modest visual backup; check that it still has enough contrast. In forced-colors, the border color is usually replaced, but a solid versus dashed style typically remains. A distinct icon shape can play that same visual backup role for sighted users, including people who cannot tell hues apart. If the icon is the only status, give it an accessible name, such as alt on an img or role="img" with aria-label. If the word is already there, mark the icon decorative, for example with aria-hidden="true". An unlabeled icon still leaves the status silent to a screen reader, even when the shape is clear on screen.
This snippet does not set a contrast procedure, a palette, or a component library. Check the text and non-text contrast of your own colors in each supported scheme. Do not treat a passing contrast check as proof that the meaning is also clear without hue.
Do this instead
- Put the meaning in visible text whenever you can: "Shipped", "Delayed", "In stock", or a specific error message
- Use color in addition to that text, not instead of it
- If space is tight and you use an icon, give it an accessible name, or keep visible text and mark the icon decorative
- A pattern, shape, or distinct border can back up color; it does not replace a name
- In error states, include a text message. A red outline or a red border alone is not enough
- If you support forced-colors or a high-contrast setting, look at the same statuses there. Author background colors may be replaced; the text should still be there
Quick check for your app
Open a test copy of example.com/orders, or any view that uses status, filters, or errors. Turn the display to grayscale, or look at a screenshot in grayscale, and see whether shipped and delayed (or success and failure) are still distinguishable. Then move through the same view with a screen reader your audience uses, and confirm each status or error has a name. If forced-colors is in your supported matrix, check that path too. Suitable automated checks can flag some contrast issues or missing names; they cannot tell you that every color-coded chart, badge, or error still makes sense without hue. Pair them with a manual pass. A green suite is evidence for what it actually exercised, not proof that color is never the only cue.
The Web HIG is an open set of guidelines for how the web should behave, not a component library. Design systems define how it looks. The Web HIG defines how it behaves.

