PreviewingGo to this paletteOpen in generator
Code
/* Hazard Tape — colorset.net */
:root {
--color-1: #F4F1E8;
--color-2: #FFC800;
--color-3: #E5322D;
--color-4: #8A877F;
--color-5: #161616;
--color-bg: #F4F1E8;
--color-surface: #FAF8F3;
--color-border: #DCD8CC;
--color-text: #161616;
--color-muted: #686868;
--color-primary: #E12E2A;
--color-on-primary: #FFFFFF;
--color-accent: #AC8600;
--color-on-accent: #161616;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #161616;
--color-surface: #202020;
--color-border: #383435;
--color-text: #F4F1E8;
--color-muted: #8F8C84;
--color-primary: #E12E2A;
--color-on-primary: #FFFFFF;
--color-accent: #FFC800;
--color-on-accent: #161616;
}
}
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 | from palette · color 1 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #E5322D | adjusted for contrast · from #E5322D |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #8A877F | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.02:1 | AAA pass 4.5:1 | |
| Text on surface | 17.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.93:1 | AA pass 4.5:1 | |
| Label on primary | 4.54:1 | AA pass 4.5:1 | |
| Label on accent | 5.31:1 | AA pass 4.5:1 | |
| Primary on background | 4.02:1 | AA Large pass 3:1 | |
| Accent on background | 3.02:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.02:1 | AAA pass 4.5:1 | |
| Text on surface | 14.43:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.39:1 | AA pass 4.5:1 | |
| Label on primary | 4.54:1 | AA pass 4.5:1 | |
| Label on accent | 11.65:1 | AAA pass 4.5:1 | |
| Primary on background | 3.99:1 | AA Large pass 3:1 | |
| Accent on background | 11.65: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 | #F4F1E8 (Text 1) | #FFC800 (Text 2) | #E5322D (Text 3) | #8A877F (Text 4) | #161616 (Text 5) |
|---|---|---|---|---|---|
| #F4F1E8 | Same color | 1.38— | 3.85AA Large | 3.18AA Large | 16.02AAA |
| #FFC800 | 1.38— | Same color | 2.80— | 2.31— | 11.65AAA |
| #E5322D | 3.85AA Large | 2.80— | Same color | 1.21— | 4.16AA Large |
| #8A877F | 3.18AA Large | 2.31— | 1.21— | Same color | 5.04AA |
| #161616 | 16.02AAA | 11.65AAA | 4.16AA Large | 5.04AA | Same color |
Shades
Shades and tints (50–950)
