Export

Code

/* Hazard Stripe — colorset.net */
:root {
  --color-1: #FFFF00;
  --color-2: #FFD700;
  --color-3: #FFA500;
  --color-4: #FF0000;
  --color-5: #000000;

  --color-bg: #F7F8E9;
  --color-surface: #EEEFE0;
  --color-border: #D5D7C4;
  --color-text: #000000;
  --color-muted: #4A4A4A;
  --color-primary: #EA0000;
  --color-on-primary: #FFFFFF;
  --color-accent: #797900;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #000000;
    --color-surface: #000000;
    --color-border: #090707;
    --color-text: #F6F8D2;
    --color-muted: #76775C;
    --color-primary: #EA0000;
    --color-on-primary: #FFFFFF;
    --color-accent: #FFFF00;
    --color-on-accent: #000000;
  }
}

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
Backgroundadjusted for contrast · from #FFD700from palette · color 5
Surfacederivedderived
Borderderivedderived
Textfrom palette · color 5adjusted for contrast · from #FFD700
Muted textderivedderived
Primaryadjusted for contrast · from #FF0000adjusted for contrast · from #FF0000
On primaryderivedderived
Accentadjusted for contrast · from #FFA500from palette · color 1
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background19.56:1AAA pass 4.5:1
Text on surface18.06:1AAA pass 4.5:1
Muted text on background8.25:1AAA pass 4.5:1
Label on primary4.67:1AA pass 4.5:1
Label on accent4.62:1AA pass 4.5:1
Primary on background4.35:1AA Large pass 3:1
Accent on background4.30:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background19.28:1AAA pass 4.5:1
Text on surface19.28:1AAA pass 4.5:1
Muted text on background4.56:1AA pass 4.5:1
Label on primary4.67:1AA pass 4.5:1
Label on accent19.56:1AAA pass 4.5:1
Primary on background4.50:1AA pass 3:1
Accent on background19.56: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#FFFF00 (Text 1)#FFD700 (Text 2)#FFA500 (Text 3)#FF0000 (Text 4)#000000 (Text 5)
#FFFF00Same color1.31—1.84—3.72AA Large19.56AAA
#FFD7001.31—Same color1.41—2.85—14.97AAA
#FFA5001.84—1.41—Same color2.02—10.63AAA
#FF00003.72AA Large2.85—2.02—Same color5.25AA
#00000019.56AAA14.97AAA10.63AAA5.25AASame color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#FFFF00#FFD700#FFA500#FF0000#000000

Variations

About Hazard Stripe

Hazard Stripe brings together two pale yellows, a light orange, a vivid red and a near-black (#FFFF00, #FFD700, #FFA500, #FF0000, #000000) in a warm, multi-color-led scheme. Pale yellow #FFFF00 and vivid red #FF0000 are 81° apart, so the palette has clear hue contrast without clashing. A 97-point lightness range (0% for #000000 to 97% for #FFFF00) gives strong value contrast, useful for text on background. Average chroma is 0.164, high for a palette, so the colors feel saturated and energetic; the most saturated color is #FF0000. As a UI theme it uses #EA0000 for primary actions and #797900 as the accent; dark mode sits on #000000 with #F6F8D2 text (19.3:1). With #FF0000 leading, good fits include sports and fitness apps, posters and bold landing pages.

Hazard Stripe color palette: #FFFF00, #FFD700, #FFA500, #FF0000, #000000
Share image for Hazard Stripe

Gradients in similar colors