PreviewingGo to this paletteOpen in generator
Code
/* Starfield Magenta — colorset.net */
:root {
--color-1: #08061A;
--color-2: #D946EF;
--color-3: #60A5FA;
--color-4: #241C45;
--color-5: #EEE8FF;
--color-bg: #EEE8FF;
--color-surface: #F4F1FF;
--color-border: #D6CFE9;
--color-text: #08061A;
--color-muted: #5A5A73;
--color-primary: #C128D7;
--color-on-primary: #FFFFFF;
--color-accent: #3176C7;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #08061A;
--color-surface: #110F25;
--color-border: #242439;
--color-text: #EEE8FF;
--color-muted: #847E93;
--color-primary: #D946EF;
--color-on-primary: #08061A;
--color-accent: #60607C;
--color-on-accent: #FFFFFF;
}
}
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 #D946EF | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #60A5FA | adjusted for contrast · from #60A5FA |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.76:1 | AAA pass 4.5:1 | |
| Text on surface | 17.95:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.60:1 | AA pass 4.5:1 | |
| Label on primary | 4.61:1 | AA pass 4.5:1 | |
| Label on accent | 4.62:1 | AA pass 4.5:1 | |
| Primary on background | 3.87:1 | AA Large pass 3:1 | |
| Accent on background | 3.88:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.76:1 | AAA pass 4.5:1 | |
| Text on surface | 15.75:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.12:1 | AA pass 4.5:1 | |
| Label on primary | 5.78:1 | AA pass 4.5:1 | |
| Label on accent | 6.07:1 | AA pass 4.5:1 | |
| Primary on background | 5.78:1 | AA pass 3:1 | |
| Accent on background | 3.29:1 | AA Large 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 | #08061A (Text 1) | #D946EF (Text 2) | #60A5FA (Text 3) | #241C45 (Text 4) | #EEE8FF (Text 5) |
|---|---|---|---|---|---|
| #08061A | Same color | 5.78AA | 7.86AAA | 1.26— | 16.76AAA |
| #D946EF | 5.78AA | Same color | 1.36— | 4.58AA | 2.90— |
| #60A5FA | 7.86AAA | 1.36— | Same color | 6.22AA | 2.13— |
| #241C45 | 1.26— | 4.58AA | 6.22AA | Same color | 13.28AAA |
| #EEE8FF | 16.76AAA | 2.90— | 2.13— | 13.28AAA | Same color |
Shades
Shades and tints (50–950)
