Colors for a website or app
Copy the palette or enter your own color. Every pair is checked again, light and dark.
Tokens for light and dark · checked color pairs · prompt for coding agents · rationale for your team
Your palette
In light mode #11697A stays the accent. White text on it reaches 6.31:1.
In dark mode #276876 is the accent, with light text: 5.30:1.
Dark: As a link color, the accent needs 4.5:1 on background and cards. #276876 has 2.91:1 and 2.66:1 there. So links and focus use the lighter #4E8D9C with 4.92:1 and 4.50:1.
Light
- Background page background
#F8FBFB - Surface cards, dialogs
#FFFFFF - Text body text, headings
#18212315.76:1 on background · meets 4.5:1 - Muted text metadata, help text
#60696B5.41:1 on background · meets 4.5:1 - Strong border inputs, checkboxes
#838C8F3.30:1 on background · meets 3:1 - Accent primary buttons
#11697A - Text for accent text on primary buttons
#FFFFFF6.31:1 on accent · meets 4.5:1 - Accent as text links, focus ring, selection
#11697A6.06:1 on background · meets 4.5:1
More roles (14)
- Inset surface set-off areas
#EDF1F2 - Subtle border dividers only, decorative
#D2D9DB1.37:1 on background · decorative only - Error error: text and icon
#B6433C5.23:1 on background · meets 4.5:1 - Error surface error: surface
#FFEEEA - Warning warning: text and icon
#723F008.31:1 on background · meets 4.5:1 - Warning surface warning: surface
#FFF1E2 - Success success: text and icon
#0073295.79:1 on background · meets 4.5:1 - Success surface success: surface
#E8F9EB - Info info: text and icon
#004D9A7.98:1 on background · meets 4.5:1 - Info surface info: surface
#E7F5FF - Chart series 1 chart series, at least 3:1 against the background
#11697A - Chart series 2 chart series, at least 3:1 against the background
#009E73 - Chart series 3 chart series, at least 3:1 against the background
#D55E00 - Chart series 4 chart series, at least 3:1 against the background
#0072B2
Dark
- Background page background
#101516 - Surface cards, dialogs
#191E1F - Text body text, headings
#E8ECED15.47:1 on background · meets 4.5:1 - Muted text metadata, help text
#8E95966.03:1 on background · meets 4.5:1 - Strong border inputs, checkboxes
#6970713.64:1 on background · meets 3:1 - Accent primary buttons
#276876 - Text for accent text on primary buttons
#E8ECED5.30:1 on accent · meets 4.5:1 - Accent as text links, focus ring, selection
#4E8D9C4.92:1 on background · meets 4.5:1
More roles (15)
- Inset surface set-off areas
#222729 - Subtle border dividers only, decorative
#33393A1.56:1 on background · decorative only - 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.35:1 on background · meets 4.5:1 - Warning surface warning: surface
#33230F - Success success: text and icon
#90E9A312.59:1 on background · meets 4.5:1 - Success surface success: surface
#172C1C - Info info: text and icon
#4D97DE5.95:1 on background · meets 4.5:1 - Info surface info: surface
#172839 - Chart series 1 chart series, at least 3:1 against the background
#4E8D9C - Chart series 2 chart series, at least 3:1 against the background
#F0E442 - Chart series 3 chart series, at least 3:1 against the background
#D55E00 - Chart series 4 chart series, at least 3:1 against the background
#56B4E9 - Chart series 5 chart series, at least 3:1 against the background
#E69F00
Tokens for light and dark · checked color pairs · prompt for coding agents · rationale for your team
How it looks
The simulation approximates strong forms for an average observer. It does not replace testing with people who have color vision deficiency.
Light
Create a new delivery
Enter the recipient and the date. There is more in the guide.
Error: This date does not exist.
Summary: three parcels, pickup in the morning.
Error: The payment failed.
Warning: The mailbox is almost full.
Done: Changes saved.
Note: Maintenance on Sunday.
| Delivery | Status |
|---|---|
| North depot | Done |
Dark
Create a new delivery
Enter the recipient and the date. There is more in the guide.
Error: This date does not exist.
Summary: three parcels, pickup in the morning.
Error: The payment failed.
Warning: The mailbox is almost full.
Done: Changes saved.
Note: Maintenance on Sunday.
| Delivery | Status |
|---|---|
| North depot | Done |
Copy
This input has no solution, so there is nothing to copy here. Change the input or pick a starter palette.
CSS
/* Farbsprache · Petrol · Website or app · 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/website/?p=petrol */
:root {
color-scheme: light;
--bg: #F8FBFB; /* oklch(98.6% 0.003 197.1) · page background */
--surface: #FFFFFF; /* oklch(100% 0 0) · cards, dialogs */
--surface-2: #EDF1F2; /* oklch(95.5% 0.004 214.3) · set-off areas */
--text: #182123; /* oklch(24.0% 0.013 212.7) · body text, headings */
--text-muted: #60696B; /* oklch(51.4% 0.012 212.5) · metadata, help text */
--border: #D2D9DB; /* oklch(88.1% 0.008 216.6) · dividers only, decorative */
--border-strong: #838C8F; /* oklch(63.4% 0.011 219.7) · inputs, checkboxes */
--accent: #11697A; /* oklch(48% 0.08 215) · primary buttons */
--on-accent: #FFFFFF; /* oklch(100% 0 0) · text on primary buttons */
--accent-text: #11697A; /* oklch(48% 0.08 215) · links, focus ring, selection */
--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: #101516; /* oklch(19.1% 0.008 211.1) · page background */
--surface: #191E1F; /* oklch(23.0% 0.008 211.1) · cards, dialogs */
--surface-2: #222729; /* oklch(26.9% 0.008 223.7) · set-off areas */
--text: #E8ECED; /* oklch(94.0% 0.005 214.3) · body text, headings */
--text-muted: #8E9596; /* oklch(66.4% 0.008 207.1) · metadata, help text */
--border: #33393A; /* oklch(33.9% 0.008 208.7) · dividers only, decorative */
--border-strong: #697071; /* oklch(53.9% 0.009 207.1) · inputs, checkboxes */
--accent: #276876; /* oklch(48.20% 0.0684 214.44) · primary buttons */
--on-accent: #E8ECED; /* oklch(94.0% 0.005 214.3) · text on primary buttons */
--accent-text: #4E8D9C; /* oklch(60.7% 0.069 214.9) · links, focus ring, selection */
--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 */
}
}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.
# Color system “Petrol” for a website or app, light and dark
## Idea
Slightly tinted neutrals carry the surfaces. A single accent (Petrol, #11697A) marks the most important action, links and focus. Status colors never appear alone, always with an icon and a word.
## Tokens
```css
:root {
color-scheme: light;
--bg: #F8FBFB; /* oklch(98.6% 0.003 197.1) · page background */
--surface: #FFFFFF; /* oklch(100% 0 0) · cards, dialogs */
--surface-2: #EDF1F2; /* oklch(95.5% 0.004 214.3) · set-off areas */
--text: #182123; /* oklch(24.0% 0.013 212.7) · body text, headings */
--text-muted: #60696B; /* oklch(51.4% 0.012 212.5) · metadata, help text */
--border: #D2D9DB; /* oklch(88.1% 0.008 216.6) · dividers only, decorative */
--border-strong: #838C8F; /* oklch(63.4% 0.011 219.7) · inputs, checkboxes */
--accent: #11697A; /* oklch(48% 0.08 215) · primary buttons */
--on-accent: #FFFFFF; /* oklch(100% 0 0) · text on primary buttons */
--accent-text: #11697A; /* oklch(48% 0.08 215) · links, focus ring, selection */
--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: #101516; /* oklch(19.1% 0.008 211.1) · page background */
--surface: #191E1F; /* oklch(23.0% 0.008 211.1) · cards, dialogs */
--surface-2: #222729; /* oklch(26.9% 0.008 223.7) · set-off areas */
--text: #E8ECED; /* oklch(94.0% 0.005 214.3) · body text, headings */
--text-muted: #8E9596; /* oklch(66.4% 0.008 207.1) · metadata, help text */
--border: #33393A; /* oklch(33.9% 0.008 208.7) · dividers only, decorative */
--border-strong: #697071; /* oklch(53.9% 0.009 207.1) · inputs, checkboxes */
--accent: #276876; /* oklch(48.20% 0.0684 214.44) · primary buttons */
--on-accent: #E8ECED; /* oklch(94.0% 0.005 214.3) · text on primary buttons */
--accent-text: #4E8D9C; /* oklch(60.7% 0.069 214.9) · links, focus ring, selection */
--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.76 · text/surface 16.39 · text/surface-2 14.41 · text-muted/bg 5.41 · text-muted/surface 5.62 · text-muted/surface-2 4.95 · accent-text/bg 6.06 · accent-text/surface 6.31 · on-accent/accent 6.31
- Status, at least 4.5:1: danger/bg 5.23 · danger/surface 5.44 · danger/danger-subtle 4.84 · warning/bg 8.31 · warning/surface 8.65 · warning/warning-subtle 7.80 · success/bg 5.79 · success/surface 6.02 · success/success-subtle 5.50 · info/bg 7.98 · info/surface 8.30 · info/info-subtle 7.47
- Controls, at least 3:1: border-strong/bg 3.30 · border-strong/surface 3.43
- Decorative only: border/bg 1.37
Dark
- Text, at least 4.5:1: text/bg 15.47 · text/surface 14.15 · text/surface-2 12.69 · text-muted/bg 6.03 · text-muted/surface 5.52 · text-muted/surface-2 4.95 · accent-text/bg 4.92 · accent-text/surface 4.50 · on-accent/accent 5.30
- Status, at least 4.5:1: danger/bg 5.58 · danger/surface 5.10 · danger/danger-subtle 4.61 · warning/bg 8.35 · warning/surface 7.64 · warning/warning-subtle 6.86 · success/bg 12.59 · success/surface 11.52 · success/success-subtle 10.16 · info/bg 5.95 · info/surface 5.45 · info/info-subtle 4.85
- Controls, at least 3:1: border-strong/bg 3.64 · border-strong/surface 3.33
- Decorative only: border/bg 1.56
Use any other combination only after checking its contrast yourself.
## Rules
- 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 the borders of inputs, checkboxes and unfilled buttons `--border-strong`. It reaches at least 3.30:1 in light mode and at least 3.33:1 in dark mode. Use `--border` only for dividers. (Standard: WCAG 2.2, 1.4.11; Understanding 1.4.11, informative)
- Underline links in body text. The link color has 2.59:1 against the text in light mode and 3.14:1 in dark mode. Without an underline it would need at least 3:1 against the text, and a cue that appears only on hover or focus is not enough. (Standard: WCAG 2.2, 1.4.1; Technique G183, informative; Failure F73, informative)
- Show the focus with `outline: 2px solid var(--accent-text); outline-offset: 2px;`, also on buttons with `--accent`. On background and surface the ring reaches at least 6.06:1 in light mode and at least 4.50:1 in dark mode. If the color behind the ring changes, use a two-color ring and still check it on images and gradients. (Standard: WCAG 2.2, 2.4.7 and 1.4.11; Understanding 2.4.7, informative; Technique C40, informative)
- 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)
- Use the accent only for the most important action of a view, for links and for focus. Do not color the background of several controls side by side. (Convention)
- Calculate the dark variant on its own and never create it by inverting. That is why light and dark values are separate in the export, and every pair is checked in both modes. (Convention)
## Known weak spots of this palette
- Dark: `--accent-text` on `--surface-2` has only 4.03:1. Do not place links or focus rings on `--surface-2`.
- Dark: The primary button surface (`--accent`) stands out from the background by only 2.91:1. That is allowed, because the label makes the button recognizable. If the button needs a border, use `--border-strong`.
- Light: The link color has only 2.59:1 against body text. Underline links in body text.
- 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
- More accent colors, gradients as decoration, default colors of the framework.
- Text in `--border`, in `--accent` or in status colors on surfaces that are not checked above.
## 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 the focus on bg, surface and accent, light and dark.
- At the end, name which pairs you checked and which you did not.
## Tip
Keep color out of everything that is not an action or a status. Then the accent stays a signal.
---
Source: Farbsprache, Website or app, starter palette Petrol, calculated on 2026-10-31. Values and checks: https://grundhofer.github.io/farbsprache/en/website/?p=petrolTailwind v4
/* Farbsprache · Petrol · Website or app · calculated on 2026-10-31
For Tailwind CSS v4. The values are variables and become utilities through @theme inline,
such as bg-bg, bg-surface, text-text, text-text-muted, border-border-strong.
Values and checks: https://grundhofer.github.io/farbsprache/en/website/?p=petrol */
@import "tailwindcss";
:root {
--bg: #F8FBFB; --surface: #FFFFFF; --surface-2: #EDF1F2;
--text: #182123; --text-muted: #60696B;
--border: #D2D9DB; --border-strong: #838C8F;
--accent: #11697A; --on-accent: #FFFFFF; --accent-text: #11697A;
--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: #101516; --surface: #191E1F; --surface-2: #222729;
--text: #E8ECED; --text-muted: #8E9596;
--border: #33393A; --border-strong: #697071;
--accent: #276876; --on-accent: #E8ECED; --accent-text: #4E8D9C;
--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-surface-2: var(--surface-2);
--color-text: var(--text);
--color-text-muted: var(--text-muted);
--color-border: var(--border);
--color-border-strong: var(--border-strong);
--color-accent: var(--accent);
--color-on-accent: var(--on-accent);
--color-accent-text: var(--accent-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 · Petrol · Website or app · light · calculated on 2026-10-31 · https://grundhofer.github.io/farbsprache/en/website/?p=petrol",
"color": {
"bg": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.9725, 0.9843, 0.9843], "alpha": 1, "hex": "#F8FBFB"}, "$description": "page background"},
"surface": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [1, 1, 1], "alpha": 1, "hex": "#FFFFFF"}, "$description": "cards, dialogs"},
"surface-2": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.9294, 0.9451, 0.949], "alpha": 1, "hex": "#EDF1F2"}, "$description": "set-off areas"},
"text": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.0941, 0.1294, 0.1373], "alpha": 1, "hex": "#182123"}, "$description": "body text, headings"},
"text-muted": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.3765, 0.4118, 0.4196], "alpha": 1, "hex": "#60696B"}, "$description": "metadata, help text"},
"border": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.8235, 0.851, 0.8588], "alpha": 1, "hex": "#D2D9DB"}, "$description": "dividers only, decorative"},
"border-strong": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.5137, 0.549, 0.5608], "alpha": 1, "hex": "#838C8F"}, "$description": "inputs, checkboxes"},
"accent": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.0667, 0.4118, 0.4784], "alpha": 1, "hex": "#11697A"}, "$description": "primary buttons"},
"on-accent": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [1, 1, 1], "alpha": 1, "hex": "#FFFFFF"}, "$description": "text on primary buttons"},
"accent-text": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.0667, 0.4118, 0.4784], "alpha": 1, "hex": "#11697A"}, "$description": "links, focus ring, selection"},
"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.76, "min": 4.5, "criterion": "1.4.3"},
{"fg": "text", "bg": "surface", "ratio": 16.39, "min": 4.5, "criterion": "1.4.3"},
{"fg": "text", "bg": "surface-2", "ratio": 14.41, "min": 4.5, "criterion": "1.4.3"},
{"fg": "text-muted", "bg": "bg", "ratio": 5.41, "min": 4.5, "criterion": "1.4.3"},
{"fg": "text-muted", "bg": "surface", "ratio": 5.62, "min": 4.5, "criterion": "1.4.3"},
{"fg": "text-muted", "bg": "surface-2", "ratio": 4.95, "min": 4.5, "criterion": "1.4.3"},
{"fg": "accent-text", "bg": "bg", "ratio": 6.06, "min": 4.5, "criterion": "1.4.3"},
{"fg": "accent-text", "bg": "surface", "ratio": 6.31, "min": 4.5, "criterion": "1.4.3"},
{"fg": "on-accent", "bg": "accent", "ratio": 6.31, "min": 4.5, "criterion": "1.4.3"},
{"fg": "border-strong", "bg": "bg", "ratio": 3.3, "min": 3, "criterion": "1.4.11"},
{"fg": "border-strong", "bg": "surface", "ratio": 3.43, "min": 3, "criterion": "1.4.11"},
{"fg": "danger", "bg": "bg", "ratio": 5.23, "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.31, "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.79, "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.98, "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": [{"fg": "border", "bg": "bg", "ratio": 1.37}]
}
}
}Dark
{
"$description": "Farbsprache · Petrol · Website or app · dark · calculated on 2026-10-31 · https://grundhofer.github.io/farbsprache/en/website/?p=petrol",
"color": {
"bg": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.0627, 0.0824, 0.0863], "alpha": 1, "hex": "#101516"}, "$description": "page background"},
"surface": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.098, 0.1176, 0.1216], "alpha": 1, "hex": "#191E1F"}, "$description": "cards, dialogs"},
"surface-2": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.1333, 0.1529, 0.1608], "alpha": 1, "hex": "#222729"}, "$description": "set-off areas"},
"text": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.9098, 0.9255, 0.9294], "alpha": 1, "hex": "#E8ECED"}, "$description": "body text, headings"},
"text-muted": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.5569, 0.5843, 0.5882], "alpha": 1, "hex": "#8E9596"}, "$description": "metadata, help text"},
"border": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.2, 0.2235, 0.2275], "alpha": 1, "hex": "#33393A"}, "$description": "dividers only, decorative"},
"border-strong": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.4118, 0.4392, 0.4431], "alpha": 1, "hex": "#697071"}, "$description": "inputs, checkboxes"},
"accent": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.1529, 0.4078, 0.4627], "alpha": 1, "hex": "#276876"}, "$description": "primary buttons"},
"on-accent": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.9098, 0.9255, 0.9294], "alpha": 1, "hex": "#E8ECED"}, "$description": "text on primary buttons"},
"accent-text": {"$type": "color", "$value": {"colorSpace": "srgb", "components": [0.3059, 0.5529, 0.6118], "alpha": 1, "hex": "#4E8D9C"}, "$description": "links, focus ring, selection"},
"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.47, "min": 4.5, "criterion": "1.4.3"},
{"fg": "text", "bg": "surface", "ratio": 14.15, "min": 4.5, "criterion": "1.4.3"},
{"fg": "text", "bg": "surface-2", "ratio": 12.69, "min": 4.5, "criterion": "1.4.3"},
{"fg": "text-muted", "bg": "bg", "ratio": 6.03, "min": 4.5, "criterion": "1.4.3"},
{"fg": "text-muted", "bg": "surface", "ratio": 5.52, "min": 4.5, "criterion": "1.4.3"},
{"fg": "text-muted", "bg": "surface-2", "ratio": 4.95, "min": 4.5, "criterion": "1.4.3"},
{"fg": "accent-text", "bg": "bg", "ratio": 4.92, "min": 4.5, "criterion": "1.4.3"},
{"fg": "accent-text", "bg": "surface", "ratio": 4.5, "min": 4.5, "criterion": "1.4.3"},
{"fg": "on-accent", "bg": "accent", "ratio": 5.3, "min": 4.5, "criterion": "1.4.3"},
{"fg": "border-strong", "bg": "bg", "ratio": 3.64, "min": 3, "criterion": "1.4.11"},
{"fg": "border-strong", "bg": "surface", "ratio": 3.33, "min": 3, "criterion": "1.4.11"},
{"fg": "danger", "bg": "bg", "ratio": 5.58, "min": 4.5, "criterion": "1.4.3"},
{"fg": "danger", "bg": "surface", "ratio": 5.1, "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.35, "min": 4.5, "criterion": "1.4.3"},
{"fg": "warning", "bg": "surface", "ratio": 7.64, "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.59, "min": 4.5, "criterion": "1.4.3"},
{"fg": "success", "bg": "surface", "ratio": 11.52, "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.95, "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": [{"fg": "border", "bg": "bg", "ratio": 1.56}]
}
}
}Rationale
The palette “Petrol” uses a single accent (#11697A) for the most important action, links and focus. All text pairs reach at least 4.5:1 per WCAG 2.2 (success criterion 1.4.3), body text on background 15.76:1. Input borders reach at least 3.30:1 in light mode and at least 3.33:1 in dark mode and so meet 1.4.11. Links are underlined, because the link color has only 2.59:1 against body text in light mode. Status messages carry an icon and a word, because color alone is not enough (1.4.1) and the status colors are only 6.0 apart in light mode with simulated red-green deficiency (deuteranopia). The dark variant is calculated on its own and not inverted. Calculated with Farbsprache on 2026-10-31: https://grundhofer.github.io/farbsprache/en/website/?p=petrolHex list
Farbsprache · Petrol · Website or app · light · calculated on 2026-10-31
bg #F8FBFB page background
surface #FFFFFF cards, dialogs
surface-2 #EDF1F2 set-off areas
text #182123 body text, headings
text-muted #60696B metadata, help text
border #D2D9DB dividers only, decorative
border-strong #838C8F inputs, checkboxes
accent #11697A primary buttons
on-accent #FFFFFF text on primary buttons
accent-text #11697A links, focus ring, selection
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 · Petrol · Website or app · dark · calculated on 2026-10-31
bg #101516 page background
surface #191E1F cards, dialogs
surface-2 #222729 set-off areas
text #E8ECED body text, headings
text-muted #8E9596 metadata, help text
border #33393A dividers only, decorative
border-strong #697071 inputs, checkboxes
accent #276876 primary buttons
on-accent #E8ECED text on primary buttons
accent-text #4E8D9C links, focus ring, selection
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/website/?p=petrolChecked: 46 pairs, 46 pass
Light
| Pair | Contrast | Requirement | Result |
|---|---|---|---|
Text on Background text/bg | 15.76:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #182123 = 0.0140 · #F8FBFB = 0.9592 · (0.9592 + 0.05) / (0.0140 + 0.05) = 15.76:1 |
Text on Surface text/surface | 16.39:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #182123 = 0.0140 · #FFFFFF = 1.0000 · (1.0000 + 0.05) / (0.0140 + 0.05) = 16.39:1 |
Text on Inset surface text/surface-2 | 14.41:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #182123 = 0.0140 · #EDF1F2 = 0.8733 · (0.8733 + 0.05) / (0.0140 + 0.05) = 14.41:1 |
Muted text on Background text-muted/bg | 5.41:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #60696B = 0.1365 · #F8FBFB = 0.9592 · (0.9592 + 0.05) / (0.1365 + 0.05) = 5.41:1 |
Muted text on Surface text-muted/surface | 5.62:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #60696B = 0.1365 · #FFFFFF = 1.0000 · (1.0000 + 0.05) / (0.1365 + 0.05) = 5.62:1 |
Muted text on Inset surface text-muted/surface-2 | 4.95:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #60696B = 0.1365 · #EDF1F2 = 0.8733 · (0.8733 + 0.05) / (0.1365 + 0.05) = 4.95:1 |
Accent as text on Background accent-text/bg | 6.06:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #11697A = 0.1163 · #F8FBFB = 0.9592 · (0.9592 + 0.05) / (0.1163 + 0.05) = 6.06:1 |
Accent as text on Surface accent-text/surface | 6.31:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #11697A = 0.1163 · #FFFFFF = 1.0000 · (1.0000 + 0.05) / (0.1163 + 0.05) = 6.31:1 |
Text for accent on Accent on-accent/accent | 6.31:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #FFFFFF = 1.0000 · #11697A = 0.1163 · (1.0000 + 0.05) / (0.1163 + 0.05) = 6.31:1 |
Strong border on Background border-strong/bg | 3.30:1 | 3:1 WCAG 2.2, 1.4.11 | passes ✓CalculationLuminance #838C8F = 0.2556 · #F8FBFB = 0.9592 · (0.9592 + 0.05) / (0.2556 + 0.05) = 3.30:1 |
Strong border on Surface border-strong/surface | 3.43:1 | 3:1 WCAG 2.2, 1.4.11 | passes ✓CalculationLuminance #838C8F = 0.2556 · #FFFFFF = 1.0000 · (1.0000 + 0.05) / (0.2556 + 0.05) = 3.43:1 |
Error on Background danger/bg | 5.23:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #B6433C = 0.1429 · #F8FBFB = 0.9592 · (0.9592 + 0.05) / (0.1429 + 0.05) = 5.23:1 |
Error on Surface danger/surface | 5.44:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #B6433C = 0.1429 · #FFFFFF = 1.0000 · (1.0000 + 0.05) / (0.1429 + 0.05) = 5.44:1 |
Error on Error surface danger/danger-subtle | 4.84:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #B6433C = 0.1429 · #FFEEEA = 0.8835 · (0.8835 + 0.05) / (0.1429 + 0.05) = 4.84:1 |
Warning on Background warning/bg | 8.31:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #723F00 = 0.0713 · #F8FBFB = 0.9592 · (0.9592 + 0.05) / (0.0713 + 0.05) = 8.31:1 |
Warning on Surface warning/surface | 8.65:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #723F00 = 0.0713 · #FFFFFF = 1.0000 · (1.0000 + 0.05) / (0.0713 + 0.05) = 8.65:1 |
Warning on Warning surface warning/warning-subtle | 7.80:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #723F00 = 0.0713 · #FFF1E2 = 0.8966 · (0.8966 + 0.05) / (0.0713 + 0.05) = 7.80:1 |
Success on Background success/bg | 5.79:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #007329 = 0.1242 · #F8FBFB = 0.9592 · (0.9592 + 0.05) / (0.1242 + 0.05) = 5.79:1 |
Success on Surface success/surface | 6.02:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #007329 = 0.1242 · #FFFFFF = 1.0000 · (1.0000 + 0.05) / (0.1242 + 0.05) = 6.02:1 |
Success on Success surface success/success-subtle | 5.50:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #007329 = 0.1242 · #E8F9EB = 0.9091 · (0.9091 + 0.05) / (0.1242 + 0.05) = 5.50:1 |
Info on Background info/bg | 7.98:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #004D9A = 0.0764 · #F8FBFB = 0.9592 · (0.9592 + 0.05) / (0.0764 + 0.05) = 7.98:1 |
Info on Surface info/surface | 8.30:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #004D9A = 0.0764 · #FFFFFF = 1.0000 · (1.0000 + 0.05) / (0.0764 + 0.05) = 8.30:1 |
Info on Info surface info/info-subtle | 7.47:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #004D9A = 0.0764 · #E7F5FF = 0.8951 · (0.8951 + 0.05) / (0.0764 + 0.05) = 7.47:1 |
Decorative only
- Subtle border on Background: 1.37:1
Dark
| Pair | Contrast | Requirement | Result |
|---|---|---|---|
Text on Background text/bg | 15.47:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #E8ECED = 0.8326 · #101516 = 0.0070 · (0.8326 + 0.05) / (0.0070 + 0.05) = 15.47:1 |
Text on Surface text/surface | 14.15:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #E8ECED = 0.8326 · #191E1F = 0.0123 · (0.8326 + 0.05) / (0.0123 + 0.05) = 14.15:1 |
Text on Inset surface text/surface-2 | 12.69:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #E8ECED = 0.8326 · #222729 = 0.0195 · (0.8326 + 0.05) / (0.0195 + 0.05) = 12.69:1 |
Muted text on Background text-muted/bg | 6.03:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #8E9596 = 0.2945 · #101516 = 0.0070 · (0.2945 + 0.05) / (0.0070 + 0.05) = 6.03:1 |
Muted text on Surface text-muted/surface | 5.52:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #8E9596 = 0.2945 · #191E1F = 0.0123 · (0.2945 + 0.05) / (0.0123 + 0.05) = 5.52:1 |
Muted text on Inset surface text-muted/surface-2 | 4.95:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #8E9596 = 0.2945 · #222729 = 0.0195 · (0.2945 + 0.05) / (0.0195 + 0.05) = 4.95:1 |
Accent as text on Background accent-text/bg | 4.92:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #4E8D9C = 0.2307 · #101516 = 0.0070 · (0.2307 + 0.05) / (0.0070 + 0.05) = 4.92:1 |
Accent as text on Surface accent-text/surface | 4.50:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #4E8D9C = 0.2307 · #191E1F = 0.0123 · (0.2307 + 0.05) / (0.0123 + 0.05) = 4.50:1 |
Text for accent on Accent on-accent/accent | 5.30:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #E8ECED = 0.8326 · #276876 = 0.1164 · (0.8326 + 0.05) / (0.1164 + 0.05) = 5.30:1 |
Strong border on Background border-strong/bg | 3.64:1 | 3:1 WCAG 2.2, 1.4.11 | passes ✓CalculationLuminance #697071 = 0.1578 · #101516 = 0.0070 · (0.1578 + 0.05) / (0.0070 + 0.05) = 3.64:1 |
Strong border on Surface border-strong/surface | 3.33:1 | 3:1 WCAG 2.2, 1.4.11 | passes ✓CalculationLuminance #697071 = 0.1578 · #191E1F = 0.0123 · (0.1578 + 0.05) / (0.0123 + 0.05) = 3.33:1 |
Error on Background danger/bg | 5.58:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #D67066 = 0.2684 · #101516 = 0.0070 · (0.2684 + 0.05) / (0.0070 + 0.05) = 5.58:1 |
Error on Surface danger/surface | 5.10:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #D67066 = 0.2684 · #191E1F = 0.0123 · (0.2684 + 0.05) / (0.0123 + 0.05) = 5.10:1 |
Error on Error surface danger/danger-subtle | 4.61:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #D67066 = 0.2684 · #381F1C = 0.0190 · (0.2684 + 0.05) / (0.0190 + 0.05) = 4.61:1 |
Warning on Background warning/bg | 8.35:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #E5A14B = 0.4266 · #101516 = 0.0070 · (0.4266 + 0.05) / (0.0070 + 0.05) = 8.35:1 |
Warning on Surface warning/surface | 7.64:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #E5A14B = 0.4266 · #191E1F = 0.0123 · (0.4266 + 0.05) / (0.0123 + 0.05) = 7.64:1 |
Warning on Warning surface warning/warning-subtle | 6.86:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #E5A14B = 0.4266 · #33230F = 0.0194 · (0.4266 + 0.05) / (0.0194 + 0.05) = 6.86:1 |
Success on Background success/bg | 12.59:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #90E9A3 = 0.6685 · #101516 = 0.0070 · (0.6685 + 0.05) / (0.0070 + 0.05) = 12.59:1 |
Success on Surface success/surface | 11.52:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #90E9A3 = 0.6685 · #191E1F = 0.0123 · (0.6685 + 0.05) / (0.0123 + 0.05) = 11.52:1 |
Success on Success surface success/success-subtle | 10.16:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #90E9A3 = 0.6685 · #172C1C = 0.0207 · (0.6685 + 0.05) / (0.0207 + 0.05) = 10.16:1 |
Info on Background info/bg | 5.95:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #4D97DE = 0.2898 · #101516 = 0.0070 · (0.2898 + 0.05) / (0.0070 + 0.05) = 5.95:1 |
Info on Surface info/surface | 5.45:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #4D97DE = 0.2898 · #191E1F = 0.0123 · (0.2898 + 0.05) / (0.0123 + 0.05) = 5.45:1 |
Info on Info surface info/info-subtle | 4.85:1 | 4.5:1 WCAG 2.2, 1.4.3 | passes ✓CalculationLuminance #4D97DE = 0.2898 · #172839 = 0.0200 · (0.2898 + 0.05) / (0.0200 + 0.05) = 4.85:1 |
Decorative only
- Subtle border on Background: 1.56: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
- Dark:
--accent-texton--surface-2has only 4.03:1. Do not place links or focus rings on--surface-2. - Dark: The primary button surface (
--accent) stands out from the background by only 2.91:1. That is allowed, because the label makes the button recognizable. If the button needs a border, use--border-strong. - Light: The link color has only 2.59:1 against body text. Underline links in body text.
- 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, transparency, images and gradients, hover and active states, color pairs outside the table, your screen, mild forms of color vision deficiency
Rules (7)
- 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 the borders of inputs, checkboxes and unfilled buttons
--border-strong. It reaches at least 3.30:1 in light mode and at least 3.33:1 in dark mode. Use--borderonly for dividers.Sources: WCAG 2.2, 1.4.11 (full text) · Understanding 1.4.11 (informative, full text)
- Standard
Underline links in body text. The link color has 2.59:1 against the text in light mode and 3.14:1 in dark mode. Without an underline it would need at least 3:1 against the text, and a cue that appears only on hover or focus is not enough.
Sources: WCAG 2.2, 1.4.1 (full text) · Technique G183 (informative, full text) · Failure F73 (informative, full text)
- Standard
Show the focus with
outline:2pxsolidvar(--accent-text);outline-offset:2px;, also on buttons with--accent. On background and surface the ring reaches at least 6.06:1 in light mode and at least 4.50:1 in dark mode. If the color behind the ring changes, use a two-color ring and still check it on images and gradients.Sources: WCAG 2.2, 2.4.7 (full text) · WCAG 2.2, 1.4.11 (full text) · Understanding 2.4.7 (informative, full text) · Technique C40 (informative, full text)
- 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)
- Convention
Use the accent only for the most important action of a view, for links and for focus. Do not color the background of several controls side by side.
Sources: Apple Human Interface Guidelines, Color (full text)
- Convention
Calculate the dark variant on its own and never create it by inverting. That is why light and dark values are separate in the export, and every pair is checked in both modes.
Sources: Apple Human Interface Guidelines, Dark Mode (full text)
Explained briefly
What the contrast ratio measures Standard
The contrast ratio compares the lightness of two colors, more precisely their relative luminance. It ranges from identical colors up to 21:1 for black on white. WCAG 2.2 requires at least 4.5:1 for text and at least 3:1 for large text.
The threshold applies without rounding. Gray #777777 on white reaches 4.47:1 and so misses 4.5:1, even if a rounded display suggests otherwise. That is why this site truncates every contrast value instead of rounding it. The formula knows only luminance: a strong red and a gray of the same luminance have the same contrast against white.
When a border needs 3:1 Standard
An input is often recognizable only by its border. Then the border is the feature of the control and needs at least 3:1 against the adjacent color. Gray #949494 on white reaches 3.03:1 and so sits just above the limit.
A button with a label needs no border, because the text shows that it is there. Dividers between cards are decoration and need no 3:1. That is why this site delivers two border colors: a strong one for inputs and checkboxes, a subtle one for dividers only. The focus ring is such a feature too and needs 3:1.
Why links are underlined Standard
A link in body text must be recognizable without color vision too. An underline is the most reliable cue. Without it, the link color needs at least 3:1 against the surrounding text per technique G183, and both colors still need 4.5:1 against the background.
That leaves little room. Black text and blue #0072B2 on white manage it: the blue has 4.04:1 against the text and 5.18:1 against the background. With text in #333333 on white, however, no link color meets both. A cue that only appears on hover or focus is not enough.
Why the site calculates in OKLCH Research partly supported
OKLCH describes a color with three values: lightness L, chroma C and hue h. Unlike HSL or HSV, L predicts fairly well how light a color looks. Yellow #FFFF00 has an OKLCH lightness of 0.968, blue #0000FF only 0.452, although both have the same lightness in HSL.
That is why this site changes only L for contrast. Hue and chroma stay as far as sRGB can show them at the new lightness. It calculates per CSS Color 4. What is checked and copied, however, is always the hex value. The OKLCH note stands next to it as a comment and leads back to exactly the same hex value.
Dark mode: own values instead of inversion Convention
A dark palette is not created by inverting. Apple describes dimmer backgrounds and brighter foregrounds for Dark Mode. They are not necessarily inversions of the light colors, and Apple recommends a bright and a dim variant for each custom color. That is why this site calculates dark mode on its own: background and surfaces get fixed dark lightness values, the accent a little less chroma, and every pair is checked again.
That the background is dark gray rather than black follows the example of Material Design and is not a legibility finding. Material justifies dark gray with shadows and eye strain but cites no study. The Farbsprache site itself uses #0B0B0B in dark mode, like its sister project Bildsprache.
Next
Values calculated at build time on October 31, 2026. Sources last retrieved on October 11, 2026.