PreviewingGo to this paletteOpen in generator
Code
/* Deep Purple — colorset.net */
:root {
--color-1: #4B0082;
--color-2: #5B1A92;
--color-3: #6B33A2;
--color-4: #7B4DB2;
--color-5: #8B66C2;
--color-bg: #F8F5FF;
--color-surface: #EFEBF9;
--color-border: #D7D1E3;
--color-text: #402A5E;
--color-muted: #6F667E;
--color-primary: #7B4DB2;
--color-on-primary: #FFFFFF;
--color-accent: #4B0082;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120B1C;
--color-surface: #1C1527;
--color-border: #31293F;
--color-text: #ACA0C2;
--color-muted: #887F99;
--color-primary: #7E50B5;
--color-on-primary: #FFFFFF;
--color-accent: #AE89E2;
--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 #8B66C2 | adjusted for contrast · from #4B0082 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #4B0082 | adjusted for contrast · from #8B66C2 |
| Muted text | derived | derived |
| Primary | from palette · color 4 | adjusted for contrast · from #7B4DB2 |
| On primary | derived | derived |
| Accent | from palette · color 1 | adjusted for contrast · from #8B66C2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.40:1 | AAA pass 4.5:1 | |
| Text on surface | 10.48:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 5.92:1 | AA pass 4.5:1 | |
| Label on accent | 12.95:1 | AAA pass 4.5:1 | |
| Primary on background | 5.50:1 | AA pass 3:1 | |
| Accent on background | 12.02:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.85:1 | AAA pass 4.5:1 | |
| Text on surface | 7.22:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 5.67:1 | AA pass 4.5:1 | |
| Label on accent | 6.86:1 | AA pass 4.5:1 | |
| Primary on background | 3.40:1 | AA Large pass 3:1 | |
| Accent on background | 6.86:1 | AA 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) | #5B1A92 (Text 2) | #6B33A2 (Text 3) | #7B4DB2 (Text 4) | #8B66C2 (Text 5) |
|---|---|---|---|---|---|
| #4B0082 | Same color | 1.24— | 1.62— | 2.19— | 2.95— |
| #5B1A92 | 1.24— | Same color | 1.31— | 1.77— | 2.38— |
| #6B33A2 | 1.62— | 1.31— | Same color | 1.35— | 1.82— |
| #7B4DB2 | 2.19— | 1.77— | 1.35— | Same color | 1.35— |
| #8B66C2 | 2.95— | 2.38— | 1.82— | 1.35— | Same color |
Shades
Shades and tints (50–950)
