PreviewingGo to this paletteOpen in generator
Code
/* Slate Violet — colorset.net */
:root {
--color-1: #483D8B;
--color-2: #6A5ACD;
--color-3: #7B68EE;
--color-4: #9370DB;
--color-5: #B0A8D9;
--color-bg: #F7F5FF;
--color-surface: #EDEBFA;
--color-border: #D5D2E4;
--color-text: #48437A;
--color-muted: #696982;
--color-primary: #7562E7;
--color-on-primary: #FFFFFF;
--color-accent: #8880AF;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0E0D1E;
--color-surface: #181729;
--color-border: #2C2B41;
--color-text: #B0AACD;
--color-muted: #837F9A;
--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 #B0A8D9 | adjusted for contrast · from #483D8B |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #483D8B | adjusted for contrast · from #B0A8D9 |
| 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.25:1 | AAA pass 4.5:1 | |
| Text on surface | 7.57:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.93:1 | AA pass 4.5:1 | |
| Label on primary | 4.51:1 | AA pass 4.5:1 | |
| Label on accent | 5.75:1 | AA pass 4.5:1 | |
| Primary on background | 4.18:1 | AA Large pass 3:1 | |
| Accent on background | 3.38:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.66:1 | AAA pass 4.5:1 | |
| Text on surface | 7.94:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99: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) | #B0A8D9 (Text 5) |
|---|---|---|---|---|---|
| #483D8B | Same color | 1.71— | 2.18— | 2.41— | 4.08AA Large |
| #6A5ACD | 1.71— | Same color | 1.28— | 1.41— | 2.39— |
| #7B68EE | 2.18— | 1.28— | Same color | 1.10— | 1.87— |
| #9370DB | 2.41— | 1.41— | 1.10— | Same color | 1.69— |
| #B0A8D9 | 4.08AA Large | 2.39— | 1.87— | 1.69— | Same color |
Shades
Shades and tints (50–950)
