PreviewingGo to this paletteOpen in generator
Code
/* Violet Spark — colorset.net */
:root {
--color-1: #8A2BE2;
--color-2: #9540E8;
--color-3: #A055EE;
--color-4: #AB6AF4;
--color-5: #B67FFA;
--color-bg: #F8F5FF;
--color-surface: #F0EBF9;
--color-border: #D8D1E3;
--color-text: #5A447A;
--color-muted: #706780;
--color-primary: #8A2BE2;
--color-on-primary: #FFFFFF;
--color-accent: #9159D1;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120B1C;
--color-surface: #1C1527;
--color-border: #31293F;
--color-text: #AB9EC0;
--color-muted: #887E98;
--color-primary: #8D30E5;
--color-on-primary: #FFFFFF;
--color-accent: #B67FFA;
--color-on-accent: #120B1C;
}
}
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 #B67FFA | adjusted for contrast · from #8A2BE2 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8A2BE2 | adjusted for contrast · from #B67FFA |
| Muted text | derived | derived |
| Primary | from palette · color 1 | adjusted for contrast · from #8A2BE2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #A055EE | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.67:1 | AAA pass 4.5:1 | |
| Text on surface | 7.06:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.95:1 | AA pass 4.5:1 | |
| Label on primary | 5.96:1 | AA pass 4.5:1 | |
| Label on accent | 4.61:1 | AA pass 4.5:1 | |
| Primary on background | 5.53:1 | AA pass 3:1 | |
| Accent on background | 4.28:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.69:1 | AAA pass 4.5:1 | |
| Text on surface | 7.07:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 5.70:1 | AA pass 4.5:1 | |
| Label on accent | 6.79:1 | AA pass 4.5:1 | |
| Primary on background | 3.38:1 | AA Large pass 3:1 | |
| Accent on background | 6.79:1 | AA 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 | #8A2BE2 (Text 1) | #9540E8 (Text 2) | #A055EE (Text 3) | #AB6AF4 (Text 4) | #B67FFA (Text 5) |
|---|---|---|---|---|---|
| #8A2BE2 | Same color | 1.19— | 1.43— | 1.73— | 2.10— |
| #9540E8 | 1.19— | Same color | 1.20— | 1.46— | 1.77— |
| #A055EE | 1.43— | 1.20— | Same color | 1.21— | 1.47— |
| #AB6AF4 | 1.73— | 1.46— | 1.21— | Same color | 1.21— |
| #B67FFA | 2.10— | 1.77— | 1.47— | 1.21— | Same color |
Shades
Shades and tints (50–950)
