PreviewingGo to this paletteOpen in generator
Code
/* Purple Dark — colorset.net */
:root {
--color-1: #4A148C;
--color-2: #6A1B9A;
--color-3: #7B1FA2;
--color-4: #8E24AA;
--color-5: #9C27B0;
--color-bg: #FDF3FF;
--color-surface: #F4E9F6;
--color-border: #DDD0DF;
--color-text: #423166;
--color-muted: #6D6780;
--color-primary: #9C27B0;
--color-on-primary: #FFFFFF;
--color-accent: #4A148C;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #110C1D;
--color-surface: #1B1628;
--color-border: #302A40;
--color-text: #B69DBA;
--color-muted: #907D93;
--color-primary: #A22FB7;
--color-on-primary: #FFFFFF;
--color-accent: #784EC4;
--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 #9C27B0 | adjusted for contrast · from #4A148C |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #4A148C | adjusted for contrast · from #9C27B0 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #9C27B0 |
| On primary | derived | derived |
| Accent | from palette · color 1 | adjusted for contrast · from #8E24AA |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.44:1 | AAA pass 4.5:1 | |
| Text on surface | 9.57:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 6.30:1 | AA pass 4.5:1 | |
| Label on accent | 11.86:1 | AAA pass 4.5:1 | |
| Primary on background | 5.84:1 | AA pass 3:1 | |
| Accent on background | 10.98:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.79:1 | AAA pass 4.5:1 | |
| Text on surface | 7.15:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 5.79:1 | AA pass 4.5:1 | |
| Label on accent | 5.70:1 | AA pass 4.5:1 | |
| Primary on background | 3.31:1 | AA Large pass 3:1 | |
| Accent on background | 3.37: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 | #4A148C (Text 1) | #6A1B9A (Text 2) | #7B1FA2 (Text 3) | #8E24AA (Text 4) | #9C27B0 (Text 5) |
|---|---|---|---|---|---|
| #4A148C | Same color | 1.26— | 1.45— | 1.69— | 1.88— |
| #6A1B9A | 1.26— | Same color | 1.14— | 1.33— | 1.49— |
| #7B1FA2 | 1.45— | 1.14— | Same color | 1.17— | 1.30— |
| #8E24AA | 1.69— | 1.33— | 1.17— | Same color | 1.12— |
| #9C27B0 | 1.88— | 1.49— | 1.30— | 1.12— | Same color |
Shades
Shades and tints (50–950)
