PreviewingGo to this paletteOpen in generator
Code
/* Sunset Racer — colorset.net */
:root {
--color-1: #FEF8EA;
--color-2: #F25914;
--color-3: #F0CF4C;
--color-4: #8C3436;
--color-5: #181928;
--color-bg: #FEF8EA;
--color-surface: #F5EFE1;
--color-border: #DDD6C5;
--color-text: #181928;
--color-muted: #686A7D;
--color-primary: #EE560D;
--color-on-primary: #181928;
--color-accent: #A28700;
--color-on-accent: #181928;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #181928;
--color-surface: #222433;
--color-border: #37394C;
--color-text: #FEF8EA;
--color-muted: #979285;
--color-primary: #F25914;
--color-on-primary: #181928;
--color-accent: #F0CF4C;
--color-on-accent: #181928;
}
}
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 #F25914 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #F25914 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.41:1 | AAA pass 4.5:1 | |
| Text on surface | 15.16:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 4.94:1 | AA pass 4.5:1 | |
| Label on accent | 4.97:1 | AA pass 4.5:1 | |
| Primary on background | 3.32:1 | AA Large pass 3:1 | |
| Accent on background | 3.30:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.41:1 | AAA pass 4.5:1 | |
| Text on surface | 14.49:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.60:1 | AA pass 4.5:1 | |
| Label on primary | 5.14:1 | AA pass 4.5:1 | |
| Label on accent | 11.36:1 | AAA pass 4.5:1 | |
| Primary on background | 5.14:1 | AA pass 3:1 | |
| Accent on background | 11.36: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 | #FEF8EA (Text 1) | #F25914 (Text 2) | #F0CF4C (Text 3) | #8C3436 (Text 4) | #181928 (Text 5) |
|---|---|---|---|---|---|
| #FEF8EA | Same color | 3.19AA Large | 1.44— | 7.46AAA | 16.41AAA |
| #F25914 | 3.19AA Large | Same color | 2.21— | 2.34— | 5.14AA |
| #F0CF4C | 1.44— | 2.21— | Same color | 5.16AA | 11.36AAA |
| #8C3436 | 7.46AAA | 2.34— | 5.16AA | Same color | 2.20— |
| #181928 | 16.41AAA | 5.14AA | 11.36AAA | 2.20— | Same color |
Shades
Shades and tints (50–950)
