PreviewingGo to this paletteOpen in generator
Code
/* Violet Nebula — colorset.net */
:root {
--color-1: #581C87;
--color-2: #6B21A8;
--color-3: #7C3AED;
--color-4: #8B5CF6;
--color-5: #A78BFA;
--color-bg: #F7F5FF;
--color-surface: #EEEBFA;
--color-border: #D5D2E4;
--color-text: #4E3469;
--color-muted: #71667F;
--color-primary: #7C3AED;
--color-on-primary: #FFFFFF;
--color-accent: #8063CE;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #130B1C;
--color-surface: #1D1526;
--color-border: #32293E;
--color-text: #A59FC1;
--color-muted: #837F99;
--color-primary: #7C3AED;
--color-on-primary: #FFFFFF;
--color-accent: #A78BFA;
--color-on-accent: #130B1C;
}
}
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 #A78BFA | adjusted for contrast · from #581C87 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #581C87 | adjusted for contrast · from #A78BFA |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #8B5CF6 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.64:1 | AAA pass 4.5:1 | |
| Text on surface | 8.86:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 5.70:1 | AA pass 4.5:1 | |
| Label on accent | 4.57:1 | AA pass 4.5:1 | |
| Primary on background | 5.28:1 | AA pass 3:1 | |
| Accent on background | 4.24:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.63:1 | AAA pass 4.5:1 | |
| Text on surface | 7.01:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 5.70:1 | AA pass 4.5:1 | |
| Label on accent | 7.06:1 | AAA pass 4.5:1 | |
| Primary on background | 3.37:1 | AA Large pass 3:1 | |
| Accent on background | 7.06: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 | #581C87 (Text 1) | #6B21A8 (Text 2) | #7C3AED (Text 3) | #8B5CF6 (Text 4) | #A78BFA (Text 5) |
|---|---|---|---|---|---|
| #581C87 | Same color | 1.25— | 1.91— | 2.57— | 4.00AA Large |
| #6B21A8 | 1.25— | Same color | 1.53— | 2.06— | 3.20AA Large |
| #7C3AED | 1.91— | 1.53— | Same color | 1.35— | 2.09— |
| #8B5CF6 | 2.57— | 2.06— | 1.35— | Same color | 1.56— |
| #A78BFA | 4.00AA Large | 3.20AA Large | 2.09— | 1.56— | Same color |
Shades
Shades and tints (50–950)
