How to show success and error without relying on color
A small dot next to each item: green when it synced, red when it failed. It looks tidy in the design file and it ships in an afternoon. For a meaningful slice of your users, though, those two dots are the same muddy brown. The National Eye Institute puts color vision deficiency at about 1 in 12 men, and the most common kind is exactly the one that makes red and green hard to tell apart. The fix isn’t a new palette. It’s making sure color is never the only thing carrying the message.
Why red and green are the worst pair to lean on
A 2012 review of worldwide prevalence puts inherited red-green deficiency at roughly 8% of men and 0.4% of women of European ancestry, and between 4% and 6.5% of Chinese and Japanese men. For those people, the difference between a typical “success” green and “error” red is mostly a difference in hue, and hue is the part they can’t see well. If the two colors also have similar lightness, which they usually do because designers balance them to look equally loud, nothing is left to separate them.
Color deficiency isn’t the only reason color fails, either. Sunlight on a phone screen washes out saturation. Bedtime modes and grayscale settings strip it entirely. A dim, cheap Android panel shifts it. Designing status that survives without color helps all of those people, not only the 1 in 12.
The accessibility standards say the same thing in one line. WCAG 1.4.1, Use of Color, is a Level A criterion, the most basic tier: color must not be the only visual means of conveying information, indicating an action or distinguishing an element. Color can still be there. It just needs a second channel next to it.
The second channel: shape, text, position or pattern
Every status in your app needs at least one non-color cue that a person could read in a black-and-white screenshot. In practice there are four to choose from:
- Shape. Different outlines for different meanings: a circle with a check for success, a triangle with an exclamation mark for a warning, an octagon or a circle with an X for an error. The outline matters more than the glyph inside it, because the outline is what survives at 12 points.
- Text. The word itself: “Synced”, “Failed”, “Draft”. Text is the most reliable cue and the one screen readers can speak.
- Position. Errors appear directly under the field they belong to, failed items move to the top of a list, the selected tab sits on a raised background.
- Pattern. Dashed versus solid lines, filled versus hollow markers. Mostly useful in charts.
Pick one that fits the space. A full-width banner has room for text. A 10-point dot in a dense list might only have room for a shape change. Either is fine as long as the states differ in something other than hue.
Component by component
The same few components cause nearly all the trouble. Here is what each one needs.
Status dots and badges. Replace the colored dot with a small icon whose shape changes per state, or put a one-word label beside it. If your list is too dense for either, keep the dot for the common, healthy state and show an icon only for the exceptions. A list of forty green dots and one red one is unreadable to a red-green deficient user; a list of forty plain rows and one row with a warning triangle is readable to everyone.
Form validation. A red border on an invalid field is the classic failure. Keep the border, but add the message in text directly under the field (“Enter an email address with an @”) and an error icon at the start of that message. The border also has to be visible against the background: WCAG’s non-text contrast criterion asks for 3:1 for the parts of a control people need to see. A pale pink border on white won’t reach it.
Up and down numbers. Finance and analytics screens love green for up and red for down. Add the sign and an arrow: “▲ +4.2%” and “▼ −1.8%”. The arrow does the work at a glance, the sign does it for screen readers, and the color becomes a bonus.
Charts. Label lines directly at their ends instead of relying on a color legend, vary the dash pattern or the marker shape between series, and avoid putting red and green series side by side at all. If you need two contrasting series colors, blue and orange stay distinct for the common red-green deficiencies and also differ in lightness.
Selection and toggles. A selected chip that only changes tint is invisible to some users. Add a check mark, a heavier weight or a filled background. iOS already offers an On/Off Labels setting that draws a line and a circle inside system switches; custom toggles should carry their own equivalent.
Links in body text. A link that is only a different color from the paragraph around it fails the same test. Underline it, at least until hover or focus on platforms that have them.
What the platform settings give you
iOS has a user setting called Differentiate Without Color, under Settings ›
Accessibility › Display & Text Size. Your app can read it: in UIKit through
UIAccessibility.shouldDifferentiateWithoutColor, and in SwiftUI through the
accessibilityDifferentiateWithoutColor environment value.
@Environment(\.accessibilityDifferentiateWithoutColor) private var noColor
var body: some View {
HStack {
if noColor { Image(systemName: item.failed ? "xmark.octagon" : "checkmark.circle") }
Circle().fill(item.failed ? .red : .green).frame(width: 8, height: 8)
}
}
Treat that flag as a way to add extra cues where space is tight, not as permission to skip the second channel by default. Most people who would benefit never turn it on, often because they don’t know it exists or don’t think of themselves as color blind. The default design should already work in grayscale; the setting is for going further.
The same idea now shows on your App Store page. Apple’s Accessibility Nutrition Labels include “Differentiate Without Color Alone”, and Apple’s guidance is that you should only claim a feature if users can complete all of your app’s common tasks with it. A status dot that only changes hue on your main screen is enough to make that claim untrue.
Test it in ten minutes
You don’t need a simulator plugin or a consultant. You need your phone and the three to five tasks people open your app to do.
- On iPhone, go to Settings › Accessibility › Display & Text Size › Color Filters, turn on Color Filters and choose Grayscale. Adding it to the Accessibility Shortcut lets you toggle it with a triple-click of the side button.
- On Android, Developer options has a “Simulate color space” setting with monochromacy and the common deficiencies. Accessibility settings also include color correction, though the exact path varies by manufacturer.
- Run each task in grayscale. Submit a form with a mistake in it. Make a sync fail by going offline. Open the chart screen. Select and deselect a filter. At each step, ask whether you could tell what happened without remembering which color means what.
- Write down every place you had to guess, and give each one a shape, a word or a position change.
Do the same pass over your store screenshots. A hero frame built around a red-and-green chart or a “before and after” distinguished only by tint is making its main point to most visitors and missing it for the rest. A headline that states the result in words fixes that, and it’s worth checking how your colors sit next to each other while you’re there.
None of this makes the interface less colorful. The green can stay green and the red can stay red. They just stop being the only thing holding the meaning up.