PreviewingGo to this paletteOpen in generator
Code
/* Plum Violet Dusk — colorset.net */
:root {
--color-1: #4B0082;
--color-2: #663399;
--color-3: #8A2BE2;
--color-4: #9370DB;
--color-5: #DDA0DD;
--color-bg: #FEF2FE;
--color-surface: #F5E9F5;
--color-border: #DECFDE;
--color-text: #402A5E;
--color-muted: #6F667E;
--color-primary: #8A2BE2;
--color-on-primary: #FFFFFF;
--color-accent: #99609A;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120B1C;
--color-surface: #1C1527;
--color-border: #31293F;
--color-text: #CAAECA;
--color-muted: #8F7A8F;
--color-primary: #8D30E5;
--color-on-primary: #FFFFFF;
--color-accent: #DDA0DD;
--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 #DDA0DD | adjusted for contrast · from #4B0082 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #4B0082 | adjusted for contrast · from #DDA0DD |
| Muted text | derived | derived |
| Primary | from palette · color 3 | adjusted for contrast · from #8A2BE2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #9370DB | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.31:1 | AAA pass 4.5:1 | |
| Text on surface | 10.44:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 5.96:1 | AA pass 4.5:1 | |
| Label on accent | 4.67:1 | AA pass 4.5:1 | |
| Primary on background | 5.49:1 | AA pass 3:1 | |
| Accent on background | 4.30:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.56:1 | AAA pass 4.5:1 | |
| Text on surface | 8.79:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.91:1 | AA pass 4.5:1 | |
| Label on primary | 5.70:1 | AA pass 4.5:1 | |
| Label on accent | 9.31:1 | AAA pass 4.5:1 | |
| Primary on background | 3.38:1 | AA Large pass 3:1 | |
| Accent on background | 9.31: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 | #4B0082 (Text 1) | #663399 (Text 2) | #8A2BE2 (Text 3) | #9370DB (Text 4) | #DDA0DD (Text 5) |
|---|---|---|---|---|---|
| #4B0082 | Same color | 1.54— | 2.17— | 3.44AA Large | 6.26AA |
| #663399 | 1.54— | Same color | 1.41— | 2.23— | 4.06AA Large |
| #8A2BE2 | 2.17— | 1.41— | Same color | 1.58— | 2.88— |
| #9370DB | 3.44AA Large | 2.23— | 1.58— | Same color | 1.82— |
| #DDA0DD | 6.26AA | 4.06AA Large | 2.88— | 1.82— | Same color |
Shades
Shades and tints (50–950)
