Skip to main content
Boletolibre

How to test a website in forced-colors mode

A site can pass a routine color check yet become hard to use when a visitor chooses a Windows contrast theme. Forced-colors mode replaces many of the page’s chosen colors with a limited palette and can remove visual effects that a design relies on. Use this guide to test the published page as a visitor would, record failures, and give the right owner enough evidence to fix them.

Boletolibre editorial team

Published

Two views of a website control: a normal theme and a forced-colors view with visible border, focus ring, and selected label.
Keep each control recognizable and its state understandable after the browser applies the visitor’s palette.

Start with the observation worksheet

Download the forced-colors website QA worksheet (Markdown, English)

Use one row per meaningful interaction, not one row per color. Record the page URL, the browser and test mode, the control or content at issue, what you expected to happen, what actually happened, and who can change it. A screenshot helps, but pair it with written steps so another person can reproduce the problem.

The worksheet is intentionally small enough for a CMS editor, designer, or developer to use together. It separates a content fix, such as adding visible words to an icon-only action, from a component fix, such as restoring a button boundary. It is a QA record, not a certificate of accessibility.

Know what forced colors changes

Forced-colors mode lets the browser apply a user-chosen palette instead of many author-specified colors. The CSS specification covers text, backgrounds, borders, outlines, and SVG color properties. It also sets box and text shadows to none, and removes CSS background images that do not use a URL, such as gradients. A photo or other URL-based image is a different case and may remain visible; do not assume every image disappears.[1]

This is not the same test as dark mode, a numeric color-contrast measurement, or a `prefers-contrast` preference. The `forced-colors: active` media query reports that the browser is enforcing a palette; it does not by itself mean the visitor requested the highest possible contrast. Test the result that is actually rendered.[2]

Turn on a representative test mode

On Windows 11, open Settings → Accessibility → Contrast themes, choose a theme, and apply it. Microsoft also documents how to switch it off. Test at least one light and one dark palette when available, because a component that works in one may fail in another. Record the chosen theme in the worksheet.[4]

For a quick inspection in Chrome, open DevTools, show the Rendering tab, and set ‘Emulate CSS media feature forced-colors’ to `forced-colors: active`. Return it to ‘No emulation’ afterward. Emulation is useful for finding problems on a machine without a Windows contrast theme. For release QA, repeat the task with an actual contrast theme in each target browser; Chrome emulation shows Chrome’s rendering only.[3]

Open the public URL, not only the CMS editor’s preview. Sign in or use a test account if the task needs one. Keep the same page and task open in ordinary mode first so you can compare what information or state the design originally conveyed.

Walk a complete visitor task

Choose a short path that matters: find an item, choose an option, fill a form, review an error, and reach a confirmation. Then repeat it with forced colors active. A decorative landing-page screenshot is not enough: controls may look fine until a menu expands, a tab is selected, or validation fails.

  • Find every actionable control. Look for buttons or fields whose edges were visible only through a shadow, gradient, or colored fill.
  • Use Tab and Shift+Tab. Confirm you can see where focus is at each step; W3C’s Focus Visible guidance describes the need for a visible keyboard-focus indicator.
  • Change states deliberately: selected tab or filter, checked box, expanded menu, disabled action, loading state, success, and error. The state must remain understandable without relying on the original brand color alone.
  • Read content over images and within badges. If a gradient or visual accent vanishes, the wording and reading order should still make sense.
  • Complete the task and check the final message. A visible ‘success’ or ‘error’ label is more robust than a green or red patch alone.

W3C’s Use of Color criterion addresses information conveyed by color alone. For this review, note the exact missing cue: ‘selected option has no visible label or shape,’ for example, is more actionable than ‘contrast looks bad.’[5][6]

Turn a finding into a precise fix

If words, labels, or status copy are missing, the content owner may be able to fix the page in the CMS. If the same button, tab, icon, or focus problem appears across pages, send it to the template or component owner. Include the URL, browser, contrast theme or emulation mode, keyboard steps, expected cue, observed cue, and a screenshot if available. Prioritize a blocked purchase, booking, sign-in, or form submission over a purely decorative change.

A developer should usually preserve the visitor’s palette and add the missing structural cue. A real border or outline can replace a shadow-only boundary; system-color keywords can give a targeted fallback color. The `forced-color-adjust: none` opt-out removes automatic adjustment for an element and should be used only when the author has carefully provided an appropriate alternative. Applying it to the whole page defeats the visitor’s choice.[1]

After the fix, retest the exact failing state in normal colors and forced colors, with keyboard navigation. Mark the worksheet row resolved only when the cue is visible and the task still completes. Repeat on other pages that share the component.

Know what this check does—and what comes next

Forced-colors review exposes missing visual cues and broken tasks under a user-selected palette. It does not replace checks for semantic HTML, screen-reader names, zoom and reflow, ordinary color contrast, or keyboard operation without forced colors. Keep those in the site’s broader accessibility review, and use this worksheet as one reproducible piece of evidence.

Sources and further reading

  1. CSS Color Adjustment Module Level 1, Forced Color PalettesW3C CSS Working Group · Accessed
  2. Media Queries Level 5, Detecting Forced Colors ModeW3C CSS Working Group · Accessed
  3. Emulate CSS media featuresChrome for Developers · Accessed
  4. Change color contrast in WindowsMicrosoft Support · Accessed
  5. Understanding SC 2.4.7: Focus VisibleW3C Web Accessibility Initiative · Accessed
  6. Understanding SC 1.4.1: Use of ColorW3C Web Accessibility Initiative · Accessed