PreviewingGo to this paletteOpen in generator
Code
/* Slate Purple — colorset.net */
:root {
--color-1: #2F2F4F;
--color-2: #4B4B6F;
--color-3: #67678F;
--color-4: #8383AF;
--color-5: #9F9FCF;
--color-bg: #F5F6FF;
--color-surface: #EBECFB;
--color-border: #D2D3E5;
--color-text: #2F2F4F;
--color-muted: #676882;
--color-primary: #8383AF;
--color-on-primary: #000000;
--color-accent: #4B4B6F;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0E0E19;
--color-surface: #181824;
--color-border: #2C2C3B;
--color-text: #A0A1C3;
--color-muted: #80809B;
--color-primary: #8383AF;
--color-on-primary: #0E0E19;
--color-accent: #616286;
--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 #9F9FCF | adjusted for contrast · from #2F2F4F |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #9F9FCF |
| Muted text | derived | derived |
| Primary | from palette · color 4 | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #67678F |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.89:1 | AAA pass 4.5:1 | |
| Text on surface | 10.93:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 5.83:1 | AA pass 4.5:1 | |
| Label on accent | 8.28:1 | AAA pass 4.5:1 | |
| Primary on background | 3.35:1 | AA Large pass 3:1 | |
| Accent on background | 7.70:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.65: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.32:1 | AA pass 4.5:1 | |
| Label on accent | 5.83:1 | AA pass 4.5:1 | |
| Primary on background | 5.32:1 | AA pass 3:1 | |
| Accent on background | 3.29: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 | #2F2F4F (Text 1) | #4B4B6F (Text 2) | #67678F (Text 3) | #8383AF (Text 4) | #9F9FCF (Text 5) |
|---|---|---|---|---|---|
| #2F2F4F | Same color | 1.55— | 2.39— | 3.55AA Large | 5.08AA |
| #4B4B6F | 1.55— | Same color | 1.54— | 2.30— | 3.29AA Large |
| #67678F | 2.39— | 1.54— | Same color | 1.49— | 2.13— |
| #8383AF | 3.55AA Large | 2.30— | 1.49— | Same color | 1.43— |
| #9F9FCF | 5.08AA | 3.29AA Large | 2.13— | 1.43— | Same color |
Shades
Shades and tints (50–950)
