PreviewingGo to this paletteOpen in generator
Code
/* Galaxy Swirl — colorset.net */
:root {
--color-1: #140F2E;
--color-2: #8E7CFF;
--color-3: #FF9EC4;
--color-4: #2D2654;
--color-5: #F1EEFF;
--color-bg: #F1EEFF;
--color-surface: #F8F7FF;
--color-border: #D8D5E9;
--color-text: #140F2E;
--color-muted: #65647E;
--color-primary: #8876F8;
--color-on-primary: #140F2E;
--color-accent: #C86D92;
--color-on-accent: #140F2E;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #140F2E;
--color-surface: #1E1A3A;
--color-border: #333148;
--color-text: #F1EEFF;
--color-muted: #8C8998;
--color-primary: #8E7CFF;
--color-on-primary: #140F2E;
--color-accent: #FF9EC4;
--color-on-accent: #140F2E;
}
}
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 #8E7CFF | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FF9EC4 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.19:1 | AAA pass 4.5:1 | |
| Text on surface | 17.35:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 5.27:1 | AA pass 4.5:1 | |
| Label on accent | 5.33:1 | AA pass 4.5:1 | |
| Primary on background | 3.07:1 | AA Large pass 3:1 | |
| Accent on background | 3.04:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.19:1 | AAA pass 4.5:1 | |
| Text on surface | 14.57:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.40:1 | AA pass 4.5:1 | |
| Label on primary | 5.69:1 | AA pass 4.5:1 | |
| Label on accent | 9.62:1 | AAA pass 4.5:1 | |
| Primary on background | 5.69:1 | AA pass 3:1 | |
| Accent on background | 9.62: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 | #140F2E (Text 1) | #8E7CFF (Text 2) | #FF9EC4 (Text 3) | #2D2654 (Text 4) | #F1EEFF (Text 5) |
|---|---|---|---|---|---|
| #140F2E | Same color | 5.69AA | 9.62AAA | 1.33— | 16.19AAA |
| #8E7CFF | 5.69AA | Same color | 1.69— | 4.27AA Large | 2.84— |
| #FF9EC4 | 9.62AAA | 1.69— | Same color | 7.21AAA | 1.68— |
| #2D2654 | 1.33— | 4.27AA Large | 7.21AAA | Same color | 12.14AAA |
| #F1EEFF | 16.19AAA | 2.84— | 1.68— | 12.14AAA | Same color |
Shades
Shades and tints (50–950)
