PreviewingGo to this paletteOpen in generator
Code
/* Eggplant Violet — colorset.net */
:root {
--color-1: #301934;
--color-2: #4B0082;
--color-3: #663399;
--color-4: #8A2BE2;
--color-5: #9932CC;
--color-bg: #FAF4FF;
--color-surface: #F2EAF8;
--color-border: #DAD1E1;
--color-text: #301934;
--color-muted: #77647A;
--color-primary: #8A2BE2;
--color-on-primary: #FFFFFF;
--color-accent: #4B0082;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #301934;
--color-surface: #3C2440;
--color-border: #4E3D51;
--color-text: #C6B2D3;
--color-muted: #9C8EA7;
--color-primary: #9C44F7;
--color-on-primary: #FFFFFF;
--color-accent: #8A6E8E;
--color-on-accent: #000000;
}
}
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 #9932CC | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #9932CC |
| Muted text | derived | derived |
| Primary | from palette · color 4 | adjusted for contrast · from #8A2BE2 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #663399 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.80:1 | AAA pass 4.5:1 | |
| Text on surface | 13.62:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 5.96:1 | AA pass 4.5:1 | |
| Label on accent | 12.95:1 | AAA pass 4.5:1 | |
| Primary on background | 5.52:1 | AA pass 3:1 | |
| Accent on background | 11.99:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.15:1 | AAA pass 4.5:1 | |
| Text on surface | 7.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.20:1 | AA pass 4.5:1 | |
| Label on primary | 4.58:1 | AA pass 4.5:1 | |
| Label on accent | 4.70:1 | AA pass 4.5:1 | |
| Primary on background | 3.49:1 | AA Large pass 3:1 | |
| Accent on background | 3.58: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 | #301934 (Text 1) | #4B0082 (Text 2) | #663399 (Text 3) | #8A2BE2 (Text 4) | #9932CC (Text 5) |
|---|---|---|---|---|---|
| #301934 | Same color | 1.23— | 1.90— | 2.68— | 2.80— |
| #4B0082 | 1.23— | Same color | 1.54— | 2.17— | 2.27— |
| #663399 | 1.90— | 1.54— | Same color | 1.41— | 1.47— |
| #8A2BE2 | 2.68— | 2.17— | 1.41— | Same color | 1.04— |
| #9932CC | 2.80— | 2.27— | 1.47— | 1.04— | Same color |
Shades
Shades and tints (50–950)
