PreviewingGo to this paletteOpen in generator
Code
/* Retro Racer — colorset.net */
:root {
--color-1: #120E1F;
--color-2: #FF4365;
--color-3: #00D9C0;
--color-4: #2E2745;
--color-5: #F4EEF7;
--color-bg: #F4EEF7;
--color-surface: #FAF6FC;
--color-border: #DDD4E1;
--color-text: #120E1F;
--color-muted: #656177;
--color-primary: #FB3F62;
--color-on-primary: #120E1F;
--color-accent: #008575;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120E1F;
--color-surface: #1C182A;
--color-border: #312C42;
--color-text: #F4EEF7;
--color-muted: #8C878F;
--color-primary: #FF4365;
--color-on-primary: #120E1F;
--color-accent: #00D9C0;
--color-on-accent: #120E1F;
}
}
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 5 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FF4365 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #00D9C0 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.62:1 | AAA pass 4.5:1 | |
| Text on surface | 17.73:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.22:1 | AA pass 4.5:1 | |
| Label on primary | 5.40:1 | AA pass 4.5:1 | |
| Label on accent | 4.55:1 | AA pass 4.5:1 | |
| Primary on background | 3.08:1 | AA Large pass 3:1 | |
| Accent on background | 3.99:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.62:1 | AAA pass 4.5:1 | |
| Text on surface | 15.18:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.39:1 | AA pass 4.5:1 | |
| Label on primary | 5.63:1 | AA pass 4.5:1 | |
| Label on accent | 10.54:1 | AAA pass 4.5:1 | |
| Primary on background | 5.63:1 | AA pass 3:1 | |
| Accent on background | 10.54: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 | #120E1F (Text 1) | #FF4365 (Text 2) | #00D9C0 (Text 3) | #2E2745 (Text 4) | #F4EEF7 (Text 5) |
|---|---|---|---|---|---|
| #120E1F | Same color | 5.63AA | 10.54AAA | 1.35— | 16.62AAA |
| #FF4365 | 5.63AA | Same color | 1.87— | 4.18AA Large | 2.95— |
| #00D9C0 | 10.54AAA | 1.87— | Same color | 7.83AAA | 1.58— |
| #2E2745 | 1.35— | 4.18AA Large | 7.83AAA | Same color | 12.34AAA |
| #F4EEF7 | 16.62AAA | 2.95— | 1.58— | 12.34AAA | Same color |
Shades
Shades and tints (50–950)
