PreviewingGo to this paletteOpen in generator
Code
/* Galaxy Purple — colorset.net */
:root {
--color-1: #4A148C;
--color-2: #7B1FA2;
--color-3: #9C27B0;
--color-4: #BA68C8;
--color-5: #E1BEE7;
--color-bg: #FDF3FF;
--color-surface: #F4E9F6;
--color-border: #DDD0DF;
--color-text: #423166;
--color-muted: #6D6780;
--color-primary: #9C27B0;
--color-on-primary: #FFFFFF;
--color-accent: #9E7DA3;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #110C1D;
--color-surface: #1B1628;
--color-border: #302A40;
--color-text: #DCC2E0;
--color-muted: #8F7C92;
--color-primary: #A22FB7;
--color-on-primary: #FFFFFF;
--color-accent: #784EC4;
--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 | adjusted for contrast · from #E1BEE7 | adjusted for contrast · from #4A148C |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #4A148C | adjusted for contrast · from #E1BEE7 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | adjusted for contrast · from #9C27B0 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #BA68C8 | adjusted for contrast · from #9C27B0 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.44:1 | AAA pass 4.5:1 | |
| Text on surface | 9.57:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 6.30:1 | AA pass 4.5:1 | |
| Label on accent | 5.92:1 | AA pass 4.5:1 | |
| Primary on background | 5.84:1 | AA pass 3:1 | |
| Accent on background | 3.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.73:1 | AAA pass 4.5:1 | |
| Text on surface | 10.77:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 5.79:1 | AA pass 4.5:1 | |
| Label on accent | 5.70:1 | AA pass 4.5:1 | |
| Primary on background | 3.31:1 | AA Large pass 3:1 | |
| Accent on background | 3.37: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 | #4A148C (Text 1) | #7B1FA2 (Text 2) | #9C27B0 (Text 3) | #BA68C8 (Text 4) | #E1BEE7 (Text 5) |
|---|---|---|---|---|---|
| #4A148C | Same color | 1.45— | 1.88— | 3.33AA Large | 7.19AAA |
| #7B1FA2 | 1.45— | Same color | 1.30— | 2.31— | 4.97AA |
| #9C27B0 | 1.88— | 1.30— | Same color | 1.77— | 3.82AA Large |
| #BA68C8 | 3.33AA Large | 2.31— | 1.77— | Same color | 2.16— |
| #E1BEE7 | 7.19AAA | 4.97AA | 3.82AA Large | 2.16— | Same color |
Shades
Shades and tints (50–950)
