PreviewingGo to this paletteOpen in generator
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
| Color | HEX | RGB | HSL | OKLCH |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 |
Roles & contrast
Original colors are kept; roles are adjusted only when needed for contrast.
| Role | Light mode | Dark mode |
|---|---|---|
| Background | adjusted for contrast · from #FFD700 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | adjusted for contrast · from #FFD700 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FF0000 | adjusted for contrast · from #FF0000 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FFA500 | from palette · color 1 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 19.56:1 | AAA pass 4.5:1 | |
| Text on surface | 18.06:1 | AAA pass 4.5:1 | |
| Muted text on background | 8.25:1 | AAA pass 4.5:1 | |
| Label on primary | 4.67:1 | AA pass 4.5:1 | |
| Label on accent | 4.62:1 | AA pass 4.5:1 | |
| Primary on background | 4.35:1 | AA Large pass 3:1 | |
| Accent on background | 4.30:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 19.28:1 | AAA pass 4.5:1 | |
| Text on surface | 19.28:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.56:1 | AA pass 4.5:1 | |
| Label on primary | 4.67:1 | AA pass 4.5:1 | |
| Label on accent | 19.56:1 | AAA pass 4.5:1 | |
| Primary on background | 4.50:1 | AA pass 3:1 | |
| Accent on background | 19.56:1 | AAA 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.
| Background / Text | #FFFF00 (Text 1) | #FFD700 (Text 2) | #FFA500 (Text 3) | #FF0000 (Text 4) | #000000 (Text 5) |
|---|---|---|---|---|---|
| #FFFF00 | Same color | 1.31— | 1.84— | 3.72AA Large | 19.56AAA |
| #FFD700 | 1.31— | Same color | 1.41— | 2.85— | 14.97AAA |
| #FFA500 | 1.84— | 1.41— | Same color | 2.02— | 10.63AAA |
| #FF0000 | 3.72AA Large | 2.85— | 2.02— | Same color | 5.25AA |
| #000000 | 19.56AAA | 14.97AAA | 10.63AAA | 5.25AA | Same color |
Shades
Shades and tints (50–950)
