In short: forced colors mode - best known as Windows High Contrast - lets a user impose a limited palette of their choosing on every site and app. The browser enforces it at paint time: author colors, box-shadows and most background images are overridden, and your page is redrawn in system colors. For some low-vision users this is the difference between reading a page and not reading it. Your job is not to design for it separately, but to stop relying on styling the user agent is allowed to take away.
What is forced colors mode?
It is an operating-system feature: the user picks a small set of colors (text, background, links, buttons, highlights) and the browser forces them everywhere. The forced-colors CSS media query reports whether it is active, and the browser exposes the user's palette through CSS system color keywords like Canvas, CanvasText and ButtonText. Because the override happens at paint time, your cascade still runs - the browser simply wins the last word on color-related properties.
What typically breaks?
| Pattern | What forced colors does | Fix |
|---|---|---|
| Focus ring drawn with box-shadow | box-shadow is forced to none - focus becomes invisible | Add a real border or outline; MDN's example swaps shadow for a ButtonText border |
| Icons as CSS background images | Background images are commonly stripped | Use inline SVG with currentColor, or provide a text fallback |
| Button shown only by background color | Background is replaced by the user's palette | Give buttons a border so their shape survives recoloring |
| Meaning carried by color alone | Your hues are gone, so color-only meaning is gone | WCAG 1.4.1: add text, icons or patterns alongside color |
How do you test in ten minutes?
- Minutes 0-2: turn on a Windows High Contrast theme (Settings > Accessibility > Contrast themes), or emulate
forced-colors: activein Chrome DevTools' Rendering panel. - Minutes 2-6: tab through your main flows. Can you always see focus? Do buttons still look like buttons? Do form errors still read as errors?
- Minutes 6-9: check icons and charts: anything delivered as a background image, and anything whose meaning was a hue.
- Minute 10: note what vanished. Each item is usually a color-only or shadow-only pattern - fix the pattern, not the theme.
When should you use the media query?
MDN's guidance is clear: do not build a separate forced-colors design. Use @media (forced-colors: active) for small, targeted repairs where the default forced rendering genuinely fails - the classic case being a focus indicator that lived only in a box-shadow. If a component needs its own colors to make sense (a color picker, a map), forced-color-adjust: none opts that element out, but use it sparingly: opting out of the user's palette is opting out of the reason they turned the feature on. Our contrast ratios piece covers the neighboring ground - contrast you control, rather than contrast the user controls.
Frequently asked questions
Is forced colors mode covered by WCAG?
Not as a named success criterion. It falls out of general principles: information must not be conveyed by color alone (1.4.1), and text needs sufficient contrast (1.4.3). If your UI breaks when the user's palette replaces yours - focus rings vanishing, icons disappearing - the underlying issue is usually reliance on color, shadow or imagery that the user agent is allowed to override.
What breaks most often in forced colors mode?
Focus styles drawn only with box-shadow (forced to none), icons delivered as CSS background images (often removed), buttons that relied on a background color alone, and text whose contrast came from your palette rather than the user's. Anything that only existed as a color difference tends to vanish.
Should I design a separate forced-colors theme?
No. MDN's guidance is that the media feature exists for small tweaks where the default forced rendering works poorly - adding a visible border where a box-shadow carried the meaning, for example. Overriding the user's chosen palette with your own colors defeats the purpose of the feature.
General information, not legal advice.
From the same small team: Memory Quest, a free memory-training game for Android, on Google Play.