PreviewingGo to this paletteOpen in generator
Code
/* Violet Galaxy — colorset.net */
:root {
--color-1: #2D1B69;
--color-2: #4C1D95;
--color-3: #7C3AED;
--color-4: #A855F7;
--color-5: #C084FC;
--color-bg: #F9F4FF;
--color-surface: #F1EAF9;
--color-border: #D9D1E2;
--color-text: #2C2458;
--color-muted: #686780;
--color-primary: #7C3AED;
--color-on-primary: #FFFFFF;
--color-accent: #9458CC;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0E0D1E;
--color-surface: #181729;
--color-border: #2C2B41;
--color-text: #AC9EBF;
--color-muted: #897D97;
--color-primary: #7C3AED;
--color-on-primary: #FFFFFF;
--color-accent: #655BAE;
--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 #C084FC | adjusted for contrast · from #2D1B69 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #2D1B69 | adjusted for contrast · from #C084FC |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #A855F7 | adjusted for contrast · from #7C3AED |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.94:1 | AAA pass 4.5:1 | |
| Text on surface | 11.92:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 5.70:1 | AA pass 4.5:1 | |
| Label on accent | 4.64:1 | AA pass 4.5:1 | |
| Primary on background | 5.27:1 | AA pass 3:1 | |
| Accent on background | 4.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.67:1 | AAA pass 4.5:1 | |
| Text on surface | 7.04:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 5.70:1 | AA pass 4.5:1 | |
| Label on accent | 5.74:1 | AA pass 4.5:1 | |
| Primary on background | 3.37:1 | AA Large pass 3:1 | |
| Accent on background | 3.34: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 | #2D1B69 (Text 1) | #4C1D95 (Text 2) | #7C3AED (Text 3) | #A855F7 (Text 4) | #C084FC (Text 5) |
|---|---|---|---|---|---|
| #2D1B69 | Same color | 1.30— | 2.50— | 3.60AA Large | 5.40AA |
| #4C1D95 | 1.30— | Same color | 1.92— | 2.77— | 4.15AA Large |
| #7C3AED | 2.50— | 1.92— | Same color | 1.44— | 2.16— |
| #A855F7 | 3.60AA Large | 2.77— | 1.44— | Same color | 1.50— |
| #C084FC | 5.40AA | 4.15AA Large | 2.16— | 1.50— | Same color |
Shades
Shades and tints (50–950)
