Skip to content
BENIBIX Learn

High Contrast Mode

Design📐 Design StandardsTokens and Themes

Also known as Forced Colors Mode, Contrast Themes, Windows High Contrast

A setting that swaps screen colors for a few strong ones. Things are easy to see.

Think of it like

It is like trading your crayons for a thick black pen. Every line is easy to see.

Example

Omar turns on high contrast in Windows. A website's pale gray button becomes a plain box with a bright border, so he can find it.

Why it matters

A button shown only with a shadow or a light tint can vanish in this mode. A real border keeps it on screen.

Definition

High contrast mode is a setting on a computer or phone that swaps the colors on screen for a small set of strong ones. Text, links, buttons and edges each get one color that the person picked. It helps people with low vision and people whose eyes get tired. On the web, the browser forces these colors onto the page, and CSS can check if the mode is on. Shadows and soft background colors are taken away.

Example code

css
@media (forced-colors: active) {
  .button {
    border: 2px solid ButtonText;
  }
}
In this mode the browser drops the shadow. So the button gets a real border, in the color the person chose.
High contrast mode drops the tint and the shadow. Only a real border is left.

Common mistake

Treating it like dark mode. The designer picks a dark theme, but the person picks the high contrast colors, and they replace the design.

Key takeaways

  1. 1
    The person picks. The design gives way.
  2. 2
    Shadows and tints go. Borders stay.
  3. 3
    Test it. Turn it on and look.

Compare