Export

Code

/* Hazard Mode — colorset.net */
:root {
  --color-1: #171611;
  --color-2: #F0E331;
  --color-3: #E64343;
  --color-4: #4A483C;
  --color-5: #F4F2E7;

  --color-bg: #F4F2E7;
  --color-surface: #FAF9F3;
  --color-border: #DCD9CB;
  --color-text: #171611;
  --color-muted: #6A6962;
  --color-primary: #DB383A;
  --color-on-primary: #FFFFFF;
  --color-accent: #958C00;
  --color-on-accent: #171611;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #171611;
    --color-surface: #21201B;
    --color-border: #37352D;
    --color-text: #F4F2E7;
    --color-muted: #8E8D83;
    --color-primary: #DB383A;
    --color-on-primary: #FFFFFF;
    --color-accent: #F0E331;
    --color-on-accent: #171611;
  }
}

Color values

ColorHEXRGBHSLOKLCH
1
2
3
4
5

Roles & contrast

Original colors are kept; roles are adjusted only when needed for contrast.

RoleLight modeDark mode
Backgroundfrom palette · color 5from palette · color 1
Surfacederivedderived
Borderderivedderived
Textfrom palette · color 1from palette · color 5
Muted textderivedderived
Primaryadjusted for contrast · from #E64343adjusted for contrast · from #E64343
On primaryderivedderived
Accentadjusted for contrast · from #E64343from palette · color 2
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background16.13:1AAA pass 4.5:1
Text on surface17.17:1AAA pass 4.5:1
Muted text on background4.91:1AA pass 4.5:1
Label on primary4.53:1AA pass 4.5:1
Label on accent5.20:1AA pass 4.5:1
Primary on background4.03:1AA Large pass 3:1
Accent on background3.10:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background16.13:1AAA pass 4.5:1
Text on surface14.53:1AAA pass 4.5:1
Muted text on background5.42:1AA pass 4.5:1
Label on primary4.53:1AA pass 4.5:1
Label on accent13.57:1AAA pass 4.5:1
Primary on background4.00:1AA Large pass 3:1
Accent on background13.57:1AAA pass 3:1

Every color on every color

Rows are backgrounds and columns are text colors, using the actual palette colors. Ratios: AAA 7:1, AA 4.5:1, AA large text 3:1.

Every color on every color
Background / Text#171611 (Text 1)#F0E331 (Text 2)#E64343 (Text 3)#4A483C (Text 4)#F4F2E7 (Text 5)
#171611Same color13.57AAA4.53AA1.97—16.13AAA
#F0E33113.57AAASame color3.00AA Large6.89AA1.19—
#E643434.53AA3.00AA LargeSame color2.30—3.56AA Large
#4A483C1.97—6.89AA2.30—Same color8.19AAA
#F4F2E716.13AAA1.19—3.56AA Large8.19AAASame color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#171611#F0E331#E64343#4A483C#F4F2E7

Variations

About Hazard Mode

Warning-tape yellow and alarm red on black: loud, readable, unmistakably gamer. No single hue dominates Hazard Mode: red carries about 40% of the color weight, shared with yellow and neutral, and vivid red #E64343 sits in the middle of the range. The hues range across 80° of the wheel, pairing pale yellow #F0E331 with vivid red for lively contrast. Lightness runs from 20% to 96% (OKLCH), with #E64343 in between, a wide range that leaves room for readable text and clear backgrounds. Saturation is low (mean OKLCH chroma 0.085, peaking at 0.200 in #E64343); the colors feel soft and muted. In light mode #F4F2E7 becomes the background with #171611 text at 16.1:1, and #DB383A takes the primary role. Its high-contrast character, led by #E64343, suits illustration, data visualization and brand systems with many sub-brands.

Hazard Mode color palette: #171611, #F0E331, #E64343, #4A483C, #F4F2E7
Share image for Hazard Mode

Gradients in similar colors