PreviewingGo to this paletteOpen in generator
Code
/* Space Purple — colorset.net */
:root {
--color-1: #191970;
--color-2: #4B0082;
--color-3: #8A2BE2;
--color-4: #9370DB;
--color-5: #DDA0DD;
--color-bg: #FEF2FE;
--color-surface: #F5E9F5;
--color-border: #DECFDE;
--color-text: #1D2557;
--color-muted: #636A83;
--color-primary: #8A2BE2;
--color-on-primary: #FFFFFF;
--color-accent: #191970;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0A0E1F;
--color-surface: #14182A;
--color-border: #272C42;
--color-text: #CAAECA;
--color-muted: #927D92;
--color-primary: #8D30E5;
--color-on-primary: #FFFFFF;
--color-accent: #4E5FBA;
--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 #DDA0DD | adjusted for contrast · from #191970 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #191970 | adjusted for contrast · from #DDA0DD |
| Muted text | derived | derived |
| Primary | from palette · color 3 | adjusted for contrast · from #8A2BE2 |
| On primary | derived | derived |
| Accent | from palette · color 1 | adjusted for contrast · from #9370DB |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.30:1 | AAA pass 4.5:1 | |
| Text on surface | 12.28:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 5.96:1 | AA pass 4.5:1 | |
| Label on accent | 14.85:1 | AAA pass 4.5:1 | |
| Primary on background | 5.49:1 | AA pass 3:1 | |
| Accent on background | 13.68:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.51:1 | AAA pass 4.5:1 | |
| Text on surface | 8.73:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.09:1 | AA pass 4.5:1 | |
| Label on primary | 5.70:1 | AA pass 4.5:1 | |
| Label on accent | 5.72:1 | AA pass 4.5:1 | |
| Primary on background | 3.37:1 | AA Large pass 3:1 | |
| Accent on background | 3.35: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 | #191970 (Text 1) | #4B0082 (Text 2) | #8A2BE2 (Text 3) | #9370DB (Text 4) | #DDA0DD (Text 5) |
|---|---|---|---|---|---|
| #191970 | Same color | 1.15— | 2.49— | 3.95AA Large | 7.17AAA |
| #4B0082 | 1.15— | Same color | 2.17— | 3.44AA Large | 6.26AA |
| #8A2BE2 | 2.49— | 2.17— | Same color | 1.58— | 2.88— |
| #9370DB | 3.95AA Large | 3.44AA Large | 1.58— | Same color | 1.82— |
| #DDA0DD | 7.17AAA | 6.26AA | 2.88— | 1.82— | Same color |
Shades
Shades and tints (50–950)
