PreviewingGo to this paletteOpen in generator
Code
/* Violet Slate Dusk — colorset.net */
:root {
--color-1: #483D8B;
--color-2: #6A5ACD;
--color-3: #7B68EE;
--color-4: #9370DB;
--color-5: #B0C4DE;
--color-bg: #F2F7FF;
--color-surface: #E8EEF6;
--color-border: #CDD6E1;
--color-text: #48437A;
--color-muted: #696982;
--color-primary: #7562E7;
--color-on-primary: #FFFFFF;
--color-accent: #7689A1;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0E0D1E;
--color-surface: #181729;
--color-border: #2C2B41;
--color-text: #B0C4DE;
--color-muted: #718399;
--color-primary: #7562E7;
--color-on-primary: #FFFFFF;
--color-accent: #635AAB;
--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 #B0C4DE | adjusted for contrast · from #483D8B |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #483D8B | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #7B68EE | adjusted for contrast · from #7B68EE |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #9370DB | adjusted for contrast · from #6A5ACD |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.27:1 | AAA pass 4.5:1 | |
| Text on surface | 7.63:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.95:1 | AA pass 4.5:1 | |
| Label on primary | 4.51:1 | AA pass 4.5:1 | |
| Label on accent | 5.86:1 | AA pass 4.5:1 | |
| Primary on background | 4.19:1 | AA Large pass 3:1 | |
| Accent on background | 3.33:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.77:1 | AAA pass 4.5:1 | |
| Text on surface | 9.88:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 4.51:1 | AA pass 4.5:1 | |
| Label on accent | 5.86:1 | AA pass 4.5:1 | |
| Primary on background | 4.25:1 | AA Large pass 3:1 | |
| Accent on background | 3.27: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 | #483D8B (Text 1) | #6A5ACD (Text 2) | #7B68EE (Text 3) | #9370DB (Text 4) | #B0C4DE (Text 5) |
|---|---|---|---|---|---|
| #483D8B | Same color | 1.71— | 2.18— | 2.41— | 5.09AA |
| #6A5ACD | 1.71— | Same color | 1.28— | 1.41— | 2.98— |
| #7B68EE | 2.18— | 1.28— | Same color | 1.10— | 2.33— |
| #9370DB | 2.41— | 1.41— | 1.10— | Same color | 2.11— |
| #B0C4DE | 5.09AA | 2.98— | 2.33— | 2.11— | Same color |
Shades
Shades and tints (50–950)
