Farbsprache
DeutschDE

Status colors that work without color too

Error, warning, success and info for light and dark. Every message gets an icon and a word, because color alone is not enough.

Status colors for light and dark · HTML pattern with icon and word · checked pairs · prompt for coding agents

Hex, rgb(), hsl() or oklch(). The color is part of the page address, which the web server receives on each visit. Your browser remembers the last color you used.

The accent color sets the tint of the surfaces and the check for confusion with red. The whole interface is under Website or app →

Starter palette
More options
Neutrals

Your palette

Palette

In grayscale, error and success are 2.3 apart in light mode and 22.9 in dark mode. Icon and word carry the meaning, not the color.

Light

  • Error error: text and icon#B6433C5.21:1 on background · meets 4.5:1
  • Error surface error: surface#FFEEEA
  • Warning warning: text and icon#723F008.29:1 on background · meets 4.5:1
  • Warning surface warning: surface#FFF1E2
  • Success success: text and icon#0073295.77:1 on background · meets 4.5:1
  • Success surface success: surface#E8F9EB
  • Info info: text and icon#004D9A7.95:1 on background · meets 4.5:1
  • Info surface info: surface#E7F5FF
More roles (3)
  • Background page background#FAFAFA
  • Surface cards, dialogs#FFFFFF
  • Text body text, headings#1F1F1F15.79:1 on background · meets 4.5:1

Dark

  • Error error: text and icon#D670665.58:1 on background · meets 4.5:1
  • Error surface error: surface#381F1C
  • Warning warning: text and icon#E5A14B8.36:1 on background · meets 4.5:1
  • Warning surface warning: surface#33230F
  • Success success: text and icon#90E9A312.60:1 on background · meets 4.5:1
  • Success surface success: surface#172C1C
  • Info info: text and icon#4D97DE5.96:1 on background · meets 4.5:1
  • Info surface info: surface#172839
More roles (3)
  • Background page background#141414
  • Surface cards, dialogs#1D1D1D
  • Text body text, headings#EBEBEB15.45:1 on background · meets 4.5:1

Status colors for light and dark · HTML pattern with icon and word · checked pairs · prompt for coding agents

How it looks

Simulation

The simulation approximates strong forms for an average observer. It does not replace testing with people who have color vision deficiency.

Light

Email
mara(at)example.comSend

Error: The address needs an @ sign.

Error: The payment failed.

Warning: Your mailbox is almost full.

Done: Your changes are saved.

Note: The site is under maintenance on Sunday.

ServiceStatus
PaymentsError
MailboxWarning
BackupDone
MaintenanceNote

Done: Copy created.

Dark

Email
mara(at)example.comSend

Error: The address needs an @ sign.

Error: The payment failed.

Warning: Your mailbox is almost full.

Done: Your changes are saved.

Note: The site is under maintenance on Sunday.

ServiceStatus
PaymentsError
MailboxWarning
BackupDone
MaintenanceNote

Done: Copy created.

Copy

More formats

CSS

/* Farbsprache · Gray · Status colors · calculated on 2026-10-31
   Exactly these hex values were checked. The OKLCH notes lead back to exactly the same hex values.
   Values and checks: https://grundhofer.github.io/farbsprache/en/status/?p=grau */
:root {
  color-scheme: light;
  --bg:             #FAFAFA; /* oklch(98.5% 0 0) · page background */
  --surface:        #FFFFFF; /* oklch(100% 0 0) · cards, dialogs */
  --text:           #1F1F1F; /* oklch(24% 0 0) · body text, headings */
  --danger:         #B6433C; /* oklch(54% 0.15 27) · error: text and icon */
  --danger-subtle:  #FFEEEA; /* oklch(96.1% 0.019 33.4) · error: surface */
  --warning:        #723F00; /* oklch(42.1% 0.097 62.0) · warning: text and icon */
  --warning-subtle: #FFF1E2; /* oklch(96.5% 0.025 69.4) · warning: surface */
  --success:        #007329; /* oklch(48.4% 0.142 147.5) · success: text and icon */
  --success-subtle: #E8F9EB; /* oklch(96.6% 0.026 150.8) · success: surface */
  --info:           #004D9A; /* oklch(42.7% 0.142 255.2) · info: text and icon */
  --info-subtle:    #E7F5FF; /* oklch(96.3% 0.020 238.7) · info: surface */
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg:             #141414; /* oklch(19% 0 0) · page background */
    --surface:        #1D1D1D; /* oklch(23% 0 0) · cards, dialogs */
    --text:           #EBEBEB; /* oklch(94% 0 0) · body text, headings */
    --danger:         #D67066; /* oklch(66% 0.13 27) · error: text and icon */
    --danger-subtle:  #381F1C; /* oklch(27% 0.04 27) · error: surface */
    --warning:        #E5A14B; /* oklch(76% 0.13 70) · warning: text and icon */
    --warning-subtle: #33230F; /* oklch(27% 0.04 71) · warning: surface */
    --success:        #90E9A3; /* oklch(86% 0.13 150) · success: text and icon */
    --success-subtle: #172C1C; /* oklch(27% 0.04 151) · success: surface */
    --info:           #4D97DE; /* oklch(66% 0.13 250) · info: text and icon */
    --info-subtle:    #172839; /* oklch(27.1% 0.039 249.5) · info: surface */
  }
}

HTML snippet

The snippet uses the variables from the CSS tab. Copy them as well. role="alert" is only on the error, so screen readers announce it right away.
<!-- Farbsprache · Gray · Status colors · calculated on 2026-10-31
     Needs the variables --danger, --danger-subtle and so on from the CSS export.
     Values and checks: https://grundhofer.github.io/farbsprache/en/status/?p=grau -->
<style>
.msg{display:flex;gap:.5em;align-items:flex-start;padding:.75em 1em;margin:0 0 .5em}
.msg svg{flex:none;width:1.25em;height:1.25em;margin-top:.1em}
.msg p{margin:0}
.msg-danger{color:var(--danger);background:var(--danger-subtle);border-left:4px solid var(--danger)}
.msg-warning{color:var(--warning);background:var(--warning-subtle);border-left:4px solid var(--warning)}
.msg-success{color:var(--success);background:var(--success-subtle);border-left:4px solid var(--success)}
.msg-info{color:var(--info);background:var(--info-subtle);border-left:4px solid var(--info)}
</style>
<div class="msg msg-danger" role="alert">
  <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M9 9l6 6M15 9l-6 6"/></svg>
  <p><strong>Error:</strong> The payment failed. Check the card number.</p>
</div>
<div class="msg msg-warning" role="status">
  <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 3 2 20h20Z"/><path d="M12 9v5"/><circle cx="12" cy="17" r="1" fill="currentColor" stroke="none"/></svg>
  <p><strong>Warning:</strong> Your mailbox is almost full.</p>
</div>
<div class="msg msg-success" role="status">
  <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7"/></svg>
  <p><strong>Done:</strong> Your changes are saved.</p>
</div>
<div class="msg msg-info" role="status">
  <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 11v6"/><circle cx="12" cy="7.5" r="1" fill="currentColor" stroke="none"/></svg>
  <p><strong>Note:</strong> The site is under maintenance on Sunday.</p>
</div>

Prompt for coding agents

Implement the following color system in this project. Use only these tokens and do not invent other colors. If a role is missing, ask or derive it from an existing one: change only the lightness L in OKLCH, keep hue and chroma, and check the contrast again.

# Status colors for a website or app, light and dark, matched to “Gray”

## Idea
Four status colors for error, warning, success and info, each with its own message surface. Within fixed lightness bands, they are as far apart as possible with normal vision and simulated red-green deficiency. No message shows its meaning through color alone: each has an icon and a word.

## Tokens
```css
:root {
  color-scheme: light;
  --bg:             #FAFAFA; /* oklch(98.5% 0 0) · page background */
  --surface:        #FFFFFF; /* oklch(100% 0 0) · cards, dialogs */
  --text:           #1F1F1F; /* oklch(24% 0 0) · body text, headings */
  --danger:         #B6433C; /* oklch(54% 0.15 27) · error: text and icon */
  --danger-subtle:  #FFEEEA; /* oklch(96.1% 0.019 33.4) · error: surface */
  --warning:        #723F00; /* oklch(42.1% 0.097 62.0) · warning: text and icon */
  --warning-subtle: #FFF1E2; /* oklch(96.5% 0.025 69.4) · warning: surface */
  --success:        #007329; /* oklch(48.4% 0.142 147.5) · success: text and icon */
  --success-subtle: #E8F9EB; /* oklch(96.6% 0.026 150.8) · success: surface */
  --info:           #004D9A; /* oklch(42.7% 0.142 255.2) · info: text and icon */
  --info-subtle:    #E7F5FF; /* oklch(96.3% 0.020 238.7) · info: surface */
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg:             #141414; /* oklch(19% 0 0) · page background */
    --surface:        #1D1D1D; /* oklch(23% 0 0) · cards, dialogs */
    --text:           #EBEBEB; /* oklch(94% 0 0) · body text, headings */
    --danger:         #D67066; /* oklch(66% 0.13 27) · error: text and icon */
    --danger-subtle:  #381F1C; /* oklch(27% 0.04 27) · error: surface */
    --warning:        #E5A14B; /* oklch(76% 0.13 70) · warning: text and icon */
    --warning-subtle: #33230F; /* oklch(27% 0.04 71) · warning: surface */
    --success:        #90E9A3; /* oklch(86% 0.13 150) · success: text and icon */
    --success-subtle: #172C1C; /* oklch(27% 0.04 151) · success: surface */
    --info:           #4D97DE; /* oklch(66% 0.13 250) · info: text and icon */
    --info-subtle:    #172839; /* oklch(27.1% 0.039 249.5) · info: surface */
  }
}
```

## Checked pairs
WCAG 2.2, calculated on exactly these hex values, checked unrounded, truncated to two decimals here.

Light
- Text, at least 4.5:1: text/bg 15.79 · text/surface 16.48
- Status, at least 4.5:1: danger/bg 5.21 · danger/surface 5.44 · danger/danger-subtle 4.84 · warning/bg 8.29 · warning/surface 8.65 · warning/warning-subtle 7.80 · success/bg 5.77 · success/surface 6.02 · success/success-subtle 5.50 · info/bg 7.95 · info/surface 8.30 · info/info-subtle 7.47

Dark
- Text, at least 4.5:1: text/bg 15.45 · text/surface 14.14
- Status, at least 4.5:1: danger/bg 5.58 · danger/surface 5.11 · danger/danger-subtle 4.61 · warning/bg 8.36 · warning/surface 7.65 · warning/warning-subtle 6.86 · success/bg 12.60 · success/surface 11.53 · success/success-subtle 10.16 · info/bg 5.96 · info/surface 5.45 · info/info-subtle 4.85

Use any other combination only after checking its contrast yourself.

## Rules
- Never show meaning through color alone. Add a word, an icon or a shape, for example where red and green stand for bad and good. (Standard: WCAG 2.2, 1.4.1; Failure F81, informative)
- Give text at least 4.5:1 against its surface, and large text from 24 px, or from 18.67 px in bold, at least 3:1. Do not round: #777777 on white has 4.47:1 and is not enough for text. (Standard: WCAG 2.2, 1.4.3)
- Give user interface components, their states and graphics needed for understanding at least 3:1 against adjacent colors. (Standard: WCAG 2.2, 1.4.11)
- Follow the common assignment: red for error, orange or yellow for warning, green for success, blue for info. It is learned, not universal: on Chinese stock exchanges, red stands for rising prices. (Convention)
- Use dark gray instead of black for background and surfaces in dark mode, here #141414. Material Design gives visible shadows and less eye strain as reasons but cites no study. (Convention)

## Known weak spots of this palette
- Light: With simulated red-green deficiency (deuteranopia), the status colors are only 6.0 apart, closest are warning and success. Okabe-Ito reaches 7.9. In grayscale, error and success are 2.3 apart. So an icon and a word are required.

## Avoid
- Status colors as decoration or for actions that are not a status.
- Status text on surfaces that are not checked above, such as the message surface of another status.
- Colored dots without a word, for example in tables.

## Check in the product
- List every text and surface pair you actually use and calculate it per WCAG 2.2 without rounding.
- Check transparency, images and gradients as the color that is finally visible.
- Look at every view in grayscale and with the “Deuteranopia” simulation of the browser developer tools.
- Check every message in grayscale: icon and word must carry the meaning on their own.
- Check that role="alert" is only on messages that need attention right away.
- At the end, name which pairs you checked and which you did not.

## Tip
Always give each meaning the same color, the same icon and the same word.

---
Source: Farbsprache, Status colors, starter palette Gray, calculated on 2026-10-31. Values and checks: https://grundhofer.github.io/farbsprache/en/status/?p=grau

Tailwind v4

/* Farbsprache · Gray · Status colors · calculated on 2026-10-31
   For Tailwind CSS v4. The values are variables and become utilities through @theme inline,
   such as text-danger, bg-danger-subtle, text-warning, bg-warning-subtle, text-success.
   Values and checks: https://grundhofer.github.io/farbsprache/en/status/?p=grau */
@import "tailwindcss";

:root {
  --bg: #FAFAFA; --surface: #FFFFFF;
  --text: #1F1F1F;
  --danger: #B6433C; --danger-subtle: #FFEEEA;
  --warning: #723F00; --warning-subtle: #FFF1E2;
  --success: #007329; --success-subtle: #E8F9EB;
  --info: #004D9A; --info-subtle: #E7F5FF;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414; --surface: #1D1D1D;
    --text: #EBEBEB;
    --danger: #D67066; --danger-subtle: #381F1C;
    --warning: #E5A14B; --warning-subtle: #33230F;
    --success: #90E9A3; --success-subtle: #172C1C;
    --info: #4D97DE; --info-subtle: #172839;
  }
}

@theme inline {
  --color-bg: var(--bg);
  --color-surface: var(--surface);
  --color-text: var(--text);
  --color-danger: var(--danger);
  --color-danger-subtle: var(--danger-subtle);
  --color-warning: var(--warning);
  --color-warning-subtle: var(--warning-subtle);
  --color-success: var(--success);
  --color-success-subtle: var(--success-subtle);
  --color-info: var(--info);
  --color-info-subtle: var(--info-subtle);
}

Design tokens (JSON)

DTCG 2025.10 format, for example for Style Dictionary or Figma plugins

Light

{
  "$description": "Farbsprache · Gray · Status colors · light · calculated on 2026-10-31 · https://grundhofer.github.io/farbsprache/en/status/?p=grau",
  "color": {
    "bg":             {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.9804, 0.9804, 0.9804], "alpha": 1, "hex": "#FAFAFA"}, "$description": "page background"},
    "surface":        {"$type": "color", "$value": {"colorSpace": "srgb", "components": [1, 1, 1], "alpha": 1, "hex": "#FFFFFF"}, "$description": "cards, dialogs"},
    "text":           {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.1216, 0.1216, 0.1216], "alpha": 1, "hex": "#1F1F1F"}, "$description": "body text, headings"},
    "danger":         {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.7137, 0.2627, 0.2353], "alpha": 1, "hex": "#B6433C"}, "$description": "error: text and icon"},
    "danger-subtle":  {"$type": "color", "$value": {"colorSpace": "srgb", "components": [1, 0.9333, 0.9176], "alpha": 1, "hex": "#FFEEEA"}, "$description": "error: surface"},
    "warning":        {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.4471, 0.2471, 0], "alpha": 1, "hex": "#723F00"}, "$description": "warning: text and icon"},
    "warning-subtle": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [1, 0.9451, 0.8863], "alpha": 1, "hex": "#FFF1E2"}, "$description": "warning: surface"},
    "success":        {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0, 0.451, 0.1608], "alpha": 1, "hex": "#007329"}, "$description": "success: text and icon"},
    "success-subtle": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.9098, 0.9765, 0.9216], "alpha": 1, "hex": "#E8F9EB"}, "$description": "success: surface"},
    "info":           {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0, 0.302, 0.6039], "alpha": 1, "hex": "#004D9A"}, "$description": "info: text and icon"},
    "info-subtle":    {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.9059, 0.9608, 1], "alpha": 1, "hex": "#E7F5FF"}, "$description": "info: surface"}
  },
  "$extensions": {
    "io.github.grundhofer.farbsprache": {
      "standard": "WCAG 2.2, contrast checked unrounded, truncated to 2 decimals here",
      "pairs": [
        {"fg": "text", "bg": "bg", "ratio": 15.79, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "text", "bg": "surface", "ratio": 16.48, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "danger", "bg": "bg", "ratio": 5.21, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "danger", "bg": "surface", "ratio": 5.44, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "danger", "bg": "danger-subtle", "ratio": 4.84, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "warning", "bg": "bg", "ratio": 8.29, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "warning", "bg": "surface", "ratio": 8.65, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "warning", "bg": "warning-subtle", "ratio": 7.8, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "success", "bg": "bg", "ratio": 5.77, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "success", "bg": "surface", "ratio": 6.02, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "success", "bg": "success-subtle", "ratio": 5.5, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "info", "bg": "bg", "ratio": 7.95, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "info", "bg": "surface", "ratio": 8.3, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "info", "bg": "info-subtle", "ratio": 7.47, "min": 4.5, "criterion": "1.4.3"}
      ],
      "decorative": []
    }
  }
}

Dark

{
  "$description": "Farbsprache · Gray · Status colors · dark · calculated on 2026-10-31 · https://grundhofer.github.io/farbsprache/en/status/?p=grau",
  "color": {
    "bg":             {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.0784, 0.0784, 0.0784], "alpha": 1, "hex": "#141414"}, "$description": "page background"},
    "surface":        {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.1137, 0.1137, 0.1137], "alpha": 1, "hex": "#1D1D1D"}, "$description": "cards, dialogs"},
    "text":           {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.9216, 0.9216, 0.9216], "alpha": 1, "hex": "#EBEBEB"}, "$description": "body text, headings"},
    "danger":         {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.8392, 0.4392, 0.4], "alpha": 1, "hex": "#D67066"}, "$description": "error: text and icon"},
    "danger-subtle":  {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.2196, 0.1216, 0.1098], "alpha": 1, "hex": "#381F1C"}, "$description": "error: surface"},
    "warning":        {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.898, 0.6314, 0.2941], "alpha": 1, "hex": "#E5A14B"}, "$description": "warning: text and icon"},
    "warning-subtle": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.2, 0.1373, 0.0588], "alpha": 1, "hex": "#33230F"}, "$description": "warning: surface"},
    "success":        {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.5647, 0.9137, 0.6392], "alpha": 1, "hex": "#90E9A3"}, "$description": "success: text and icon"},
    "success-subtle": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.0902, 0.1725, 0.1098], "alpha": 1, "hex": "#172C1C"}, "$description": "success: surface"},
    "info":           {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.302, 0.5922, 0.8706], "alpha": 1, "hex": "#4D97DE"}, "$description": "info: text and icon"},
    "info-subtle":    {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.0902, 0.1569, 0.2235], "alpha": 1, "hex": "#172839"}, "$description": "info: surface"}
  },
  "$extensions": {
    "io.github.grundhofer.farbsprache": {
      "standard": "WCAG 2.2, contrast checked unrounded, truncated to 2 decimals here",
      "pairs": [
        {"fg": "text", "bg": "bg", "ratio": 15.45, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "text", "bg": "surface", "ratio": 14.14, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "danger", "bg": "bg", "ratio": 5.58, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "danger", "bg": "surface", "ratio": 5.11, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "danger", "bg": "danger-subtle", "ratio": 4.61, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "warning", "bg": "bg", "ratio": 8.36, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "warning", "bg": "surface", "ratio": 7.65, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "warning", "bg": "warning-subtle", "ratio": 6.86, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "success", "bg": "bg", "ratio": 12.6, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "success", "bg": "surface", "ratio": 11.53, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "success", "bg": "success-subtle", "ratio": 10.16, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "info", "bg": "bg", "ratio": 5.96, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "info", "bg": "surface", "ratio": 5.45, "min": 4.5, "criterion": "1.4.3"},
        {"fg": "info", "bg": "info-subtle", "ratio": 4.85, "min": 4.5, "criterion": "1.4.3"}
      ],
      "decorative": []
    }
  }
}

Rationale

The status colors for “Gray” follow the common assignment: red for error, orange for warning, green for success and blue for info. Every status color reaches at least 4.5:1 per WCAG 2.2 (success criterion 1.4.3) on background, card and its own message surface, error on its surface 4.84:1 in light mode. Light and dark are calculated on their own, each in fixed lightness bands in which the colors are as far apart as possible with normal vision and simulated red-green deficiency. With simulated red-green deficiency (deuteranopia), warning and success are still only 6.0 apart in light mode, and in grayscale error and success are only 2.3 apart. So every message carries an icon and a word (1.4.1). Calculated with Farbsprache on 2026-10-31: https://grundhofer.github.io/farbsprache/en/status/?p=grau

Hex list

Farbsprache · Gray · Status colors · light · calculated on 2026-10-31
bg              #FAFAFA  page background
surface         #FFFFFF  cards, dialogs
text            #1F1F1F  body text, headings
danger          #B6433C  error: text and icon
danger-subtle   #FFEEEA  error: surface
warning         #723F00  warning: text and icon
warning-subtle  #FFF1E2  warning: surface
success         #007329  success: text and icon
success-subtle  #E8F9EB  success: surface
info            #004D9A  info: text and icon
info-subtle     #E7F5FF  info: surface

Farbsprache · Gray · Status colors · dark · calculated on 2026-10-31
bg              #141414  page background
surface         #1D1D1D  cards, dialogs
text            #EBEBEB  body text, headings
danger          #D67066  error: text and icon
danger-subtle   #381F1C  error: surface
warning         #E5A14B  warning: text and icon
warning-subtle  #33230F  warning: surface
success         #90E9A3  success: text and icon
success-subtle  #172C1C  success: surface
info            #4D97DE  info: text and icon
info-subtle     #172839  info: surface

Values and checks: https://grundhofer.github.io/farbsprache/en/status/?p=grau

Checked: 28 pairs, 28 pass

Light

PairContrastRequirementResult
Text on Background text/bg15.79:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #1F1F1F = 0.0137 · #FAFAFA = 0.9560 · (0.9560 + 0.05) / (0.0137 + 0.05) = 15.79:1

Text on Surface text/surface16.48:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #1F1F1F = 0.0137 · #FFFFFF = 1.0000 · (1.0000 + 0.05) / (0.0137 + 0.05) = 16.48:1

Error on Background danger/bg5.21:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #B6433C = 0.1429 · #FAFAFA = 0.9560 · (0.9560 + 0.05) / (0.1429 + 0.05) = 5.21:1

Error on Surface danger/surface5.44:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #B6433C = 0.1429 · #FFFFFF = 1.0000 · (1.0000 + 0.05) / (0.1429 + 0.05) = 5.44:1

Error on Error surface danger/danger-subtle4.84:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #B6433C = 0.1429 · #FFEEEA = 0.8835 · (0.8835 + 0.05) / (0.1429 + 0.05) = 4.84:1

Warning on Background warning/bg8.29:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #723F00 = 0.0713 · #FAFAFA = 0.9560 · (0.9560 + 0.05) / (0.0713 + 0.05) = 8.29:1

Warning on Surface warning/surface8.65:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #723F00 = 0.0713 · #FFFFFF = 1.0000 · (1.0000 + 0.05) / (0.0713 + 0.05) = 8.65:1

Warning on Warning surface warning/warning-subtle7.80:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #723F00 = 0.0713 · #FFF1E2 = 0.8966 · (0.8966 + 0.05) / (0.0713 + 0.05) = 7.80:1

Success on Background success/bg5.77:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #007329 = 0.1242 · #FAFAFA = 0.9560 · (0.9560 + 0.05) / (0.1242 + 0.05) = 5.77:1

Success on Surface success/surface6.02:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #007329 = 0.1242 · #FFFFFF = 1.0000 · (1.0000 + 0.05) / (0.1242 + 0.05) = 6.02:1

Success on Success surface success/success-subtle5.50:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #007329 = 0.1242 · #E8F9EB = 0.9091 · (0.9091 + 0.05) / (0.1242 + 0.05) = 5.50:1

Info on Background info/bg7.95:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #004D9A = 0.0764 · #FAFAFA = 0.9560 · (0.9560 + 0.05) / (0.0764 + 0.05) = 7.95:1

Info on Surface info/surface8.30:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #004D9A = 0.0764 · #FFFFFF = 1.0000 · (1.0000 + 0.05) / (0.0764 + 0.05) = 8.30:1

Info on Info surface info/info-subtle7.47:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #004D9A = 0.0764 · #E7F5FF = 0.8951 · (0.8951 + 0.05) / (0.0764 + 0.05) = 7.47:1

Dark

PairContrastRequirementResult
Text on Background text/bg15.45:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #EBEBEB = 0.8308 · #141414 = 0.0070 · (0.8308 + 0.05) / (0.0070 + 0.05) = 15.45:1

Text on Surface text/surface14.14:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #EBEBEB = 0.8308 · #1D1D1D = 0.0123 · (0.8308 + 0.05) / (0.0123 + 0.05) = 14.14:1

Error on Background danger/bg5.58:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #D67066 = 0.2684 · #141414 = 0.0070 · (0.2684 + 0.05) / (0.0070 + 0.05) = 5.58:1

Error on Surface danger/surface5.11:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #D67066 = 0.2684 · #1D1D1D = 0.0123 · (0.2684 + 0.05) / (0.0123 + 0.05) = 5.11:1

Error on Error surface danger/danger-subtle4.61:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #D67066 = 0.2684 · #381F1C = 0.0190 · (0.2684 + 0.05) / (0.0190 + 0.05) = 4.61:1

Warning on Background warning/bg8.36:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #E5A14B = 0.4266 · #141414 = 0.0070 · (0.4266 + 0.05) / (0.0070 + 0.05) = 8.36:1

Warning on Surface warning/surface7.65:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #E5A14B = 0.4266 · #1D1D1D = 0.0123 · (0.4266 + 0.05) / (0.0123 + 0.05) = 7.65:1

Warning on Warning surface warning/warning-subtle6.86:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #E5A14B = 0.4266 · #33230F = 0.0194 · (0.4266 + 0.05) / (0.0194 + 0.05) = 6.86:1

Success on Background success/bg12.60:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #90E9A3 = 0.6685 · #141414 = 0.0070 · (0.6685 + 0.05) / (0.0070 + 0.05) = 12.60:1

Success on Surface success/surface11.53:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #90E9A3 = 0.6685 · #1D1D1D = 0.0123 · (0.6685 + 0.05) / (0.0123 + 0.05) = 11.53:1

Success on Success surface success/success-subtle10.16:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #90E9A3 = 0.6685 · #172C1C = 0.0207 · (0.6685 + 0.05) / (0.0207 + 0.05) = 10.16:1

Info on Background info/bg5.96:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #4D97DE = 0.2898 · #141414 = 0.0070 · (0.2898 + 0.05) / (0.0070 + 0.05) = 5.96:1

Info on Surface info/surface5.45:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #4D97DE = 0.2898 · #1D1D1D = 0.0123 · (0.2898 + 0.05) / (0.0123 + 0.05) = 5.45:1

Info on Info surface info/info-subtle4.85:14.5:1 WCAG 2.2, 1.4.3passes ✓
Calculation

Luminance #4D97DE = 0.2898 · #172839 = 0.0200 · (0.2898 + 0.05) / (0.0200 + 0.05) = 4.85:1

With color vision deficiency

  • Light: Smallest distance between the status colors: 6.0 (warning/success, deuteranopia). Without optimization: 3.6.
  • Dark: Smallest distance between the status colors: 11.5 (error/warning, deuteranopia). Without optimization: 3.3.

For comparison: Okabe-Ito 7.9 · simple rainbow 2.8. Reference values, not an established limit.

Notes on this palette

  • Light: The status colors are closer together than Okabe-Ito with 7.9. The section “With color vision deficiency” names the closest pair and the view. In grayscale, error and success are 2.3 apart. So an icon and a word are required.

Not checked

your font sizes, status colors on surfaces other than background, card and their own message surface, transparency, images and gradients, your screen, mild forms of color vision deficiency, whether your readers share the color meanings

Rules (5)

  • Standard

    Never show meaning through color alone. Add a word, an icon or a shape, for example where red and green stand for bad and good.

    Sources: WCAG 2.2, 1.4.1 (full text) · Failure F81 (informative, full text)

  • Standard

    Give text at least 4.5:1 against its surface, and large text from 24 px, or from 18.67 px in bold, at least 3:1. Do not round: #777777 on white has 4.47:1 and is not enough for text.

    Sources: WCAG 2.2, 1.4.3 (full text)

  • Standard

    Give user interface components, their states and graphics needed for understanding at least 3:1 against adjacent colors.

    Sources: WCAG 2.2, 1.4.11 (full text)

  • Convention

    Follow the common assignment: red for error, orange or yellow for warning, green for success, blue for info. It is learned, not universal: on Chinese stock exchanges, red stands for rising prices.

    Sources: IBM Carbon, Status indicators (full text) · Marketplace 2015 (full text)

  • Convention

    Use dark gray instead of black for background and surfaces in dark mode, here #141414. Material Design gives visible shadows and less eye strain as reasons but cites no study.

    Sources: Material Components, Dark theme (full text)

Explained briefly

Why color alone is not enough Standard

Not everyone sees colors the same way. People with color vision deficiency confuse certain colors. People with partial sight often see colors in a limited way, and many older people see them poorly. Monochrome displays do not show them at all. That is why WCAG 2.2 requires that color is never the only means of showing a meaning.

Red #E04040 and green #40A040 are 30.8 apart with normal vision, but only 1.5 with simulated deuteranopia. For status messages this means: every message carries an icon and a word, such as “Error:”. An input with only a red border and no text is a known failure. The simulation is an approximation and does not replace testing with affected people.

More about this →

Color vision deficiency: who, how simulated, limits Research well supported

About 8% of men and 0.4% of women of European descent have an inherited red-green deficiency. A blue-yellow deficiency affects fewer than 1 in 10,000 people.

The page converts every color in linear RGB: protanopia and deuteranopia after Viénot, Brettel and Mollon 1999, tritanopia after Brettel, Viénot and Mollon 1997. A comparison of open methods recommends these for complete forms.

The models describe an average observer and strong forms. They were rarely validated with more than ten people. Mild forms, which are more common, are not shown here. So the simulation does not replace a test with people who have color vision deficiency. No palette is guaranteed to work for everyone.

More about this →

Does blue build trust? Research partly supported

People link colors to emotions very consistently, such as yellow with joy or light colors with positive feelings. This is well supported, but it concerns associations. Whether you feel that way when you look at a color is open (Jonauskaite and Mohr 2025).

That blue logos and stores seem more trustworthy is partly supported: studies from several labs back it, but there are counter-findings, and the field counts as young (Elliot 2015). A fixed effect of blue is unproven.

Conventions are reliable because they are agreed, such as red for errors. Check what is common in your industry and deviate from it only on purpose.

More about this →

Next

Values calculated at build time on October 31, 2026. Sources last retrieved on October 11, 2026.