Contrast themes

Also known as: high contrast mode

On this page 7

Contrast themes are an accessibility feature of Windows that replace the normal interface colors with a small, strictly defined palette of high-contrast colors, so that text, links, buttons and focus indicators remain clearly distinguishable for people with low vision, light sensitivity or certain reading difficulties. In Windows settings and personalization, they sit under Accessibility rather than among the decorative Windows themes.

In Windows 11 the feature is called contrast themes; earlier versions used the name high contrast mode, which many developers and documentation pages still use. Unlike an ordinary theme, a contrast theme overrides the colors that applications draw, provided the application respects system colors.

How contrast themes override colors

A contrast theme works by assigning fixed values to a set of system color slots that every well-behaved application reads instead of using its own colors. Windows defines slots for text and background, hyperlinks, inactive text, selected text and its background, and button text and face. When the theme is active, native controls, the shell and compliant applications draw only with those slots.

Web content follows the same model. Browsers based on Chromium and Firefox expose the active theme through the CSS forced-colors mode: the forced-colors: active media query matches, and author colors are replaced by CSS system colors such as Canvas, CanvasText, LinkText, GrayText, Highlight and ButtonText. The older -ms-high-contrast media feature is deprecated and should not be used in new code.

The table below maps the main color slots to their role and their CSS counterpart.

SlotUsed forCSS system color
TextBody text and labelsCanvasText
BackgroundWindow and page surfacesCanvas
HyperlinksLinks and link-like elementsLinkText
Inactive textDisabled controlsGrayText
Selected textSelection and focus highlightHighlight and HighlightText
Button textButton labels and bordersButtonText on ButtonFace
Main color slots in a contrast theme

Built-in contrast themes in Windows 11

Windows 11 ships four predefined contrast themes, chosen to cover both dark and light preferences. Each can be selected in Settings > Accessibility > Contrast themes, and each can be edited so that individual slots receive different colors.

ThemeBackgroundTypical user
AquaticBlack with cyan and yellow accentsLow vision, prefers dark surfaces
DesertWhite with dark textPrefers light surfaces, mild light sensitivity
DuskBlack with softer accentsLight sensitivity, long reading sessions
Night skyBlack with strong colored accentsSevere low vision
Predefined contrast themes

The keyboard shortcut Left Alt + Left Shift + Print Screen toggles the most recently used contrast theme, which helps a user who cannot read the Settings app in its default colors. Windows 10 offered comparable themes under the names High Contrast #1, #2, Black and White, and upgraded systems map them to the new set.

Contrast themes compared with other display aids

Contrast themes solve a different problem from other visual accessibility settings. They change which colors are used, whereas color filters transform all pixels, dark mode only switches the app palette, and Magnifier changes size. Many users combine two of these tools.

SettingWhat it changesEffect on images
Contrast themesInterface color slotsImages remain unchanged
Color filtersEvery pixel on screenImages are transformed too
Dark modeApp and system paletteNo change; contrast not guaranteed
MagnifierSize of screen contentEnlarged with the rest
Night lightColor temperatureWarmer tint everywhere
How contrast themes differ from related settings

The key distinction is that dark mode is a design preference, while a contrast theme is an accessibility guarantee: its default palettes reach contrast ratios well above the WCAG 2 minimum of 4.5:1 for normal text and typically exceed the enhanced 7:1 level.

Designing applications that respect contrast themes

An application supports contrast themes when it draws with system colors instead of hard-coded values. Native frameworks such as WinUI, WPF and Win32 common controls do this by default, but custom-drawn controls, canvas rendering and branded color schemes frequently break the user’s choice.

Developers can follow a short set of rules that cover most problems.

  • Use theme resources or system brushes for every foreground and background, never fixed hexadecimal values.
  • Never convey meaning by color alone; pair status colors with text, icons or patterns.
  • Keep visible borders and focus outlines, because filled backgrounds may disappear when colors are forced.
  • Provide icons that adapt, for example SVG images that use the current text color.
  • Test with every predefined theme, both dark and light, before release.

On the web, the correct pattern is to let the browser force colors and to add targeted adjustments inside the forced-colors media query only where meaning would otherwise be lost. The property forced-color-adjust: none opts an element out and should be reserved for content such as color pickers, where the original colors are the information.

Common problems with contrast themes

Most complaints about contrast themes come from applications that ignore the system palette, not from the feature itself. The following table lists typical symptoms and their usual causes.

SymptomLikely causeFix
Invisible textHard-coded text on a forced backgroundUse system or theme colors
Missing buttonsButton shown only by background fillAdd a visible border
Lost focus indicatorCustom focus drawn with a shadowUse an outline in Highlight
Unreadable iconsDark bitmap icons on a black backgroundUse adaptive vector icons
Wrong colors after togglingApp reads colors only at startupListen for theme change events
Symptoms, causes and fixes

Users who encounter such an application can try another contrast theme with the opposite background, report the defect to the vendor, or use Magnifier with color inversion for that window as a temporary workaround.

In simple terms

Contrast themes make Windows easier to see by painting everything in a few bold colors, such as bright yellow or white text on a black background. Soft grays, faint lines and pale buttons disappear and are replaced by sharp, clearly separated colors.

It is a little like swapping a pencil sketch for a drawing made with a thick black marker. The content is the same, but every line and word stands out, so people who struggle with faint or low-contrast screens can read and use their computer comfortably.

A practical example

An accounts clerk with advanced glaucoma works on a Windows 11 desktop where the default light interface makes gray labels and thin field borders almost invisible. The workplace accessibility adviser turns on the Night sky contrast theme and shows the clerk the Left Alt + Left Shift + Print Screen shortcut for switching it off when a colleague needs the screen.

Windows, the mail client and the browser immediately use yellow text, cyan links and white borders on black. One internal web form, however, shows blank buttons because its designers hard-coded white text on a colored fill. The adviser reports the defect, and the development team replaces the fixed colors with CSS system colors and adds visible borders inside a forced-colors media query.

After the update, every form field and button is clearly outlined for the clerk, data entry errors drop noticeably, and the same fix also helps other employees who rely on contrast themes.