PreviewingGo to this paletteOpen in generator
Code
/* Dark Purple — colorset.net */
:root {
--color-1: #330033;
--color-2: #4D004D;
--color-3: #660066;
--color-4: #800080;
--color-5: #990099;
--color-bg: #FFF2FE;
--color-surface: #F5E9F4;
--color-border: #DFCFDD;
--color-text: #300530;
--color-muted: #796478;
--color-primary: #990099;
--color-on-primary: #FFFFFF;
--color-accent: #4D004D;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #180917;
--color-surface: #221322;
--color-border: #392738;
--color-text: #BA9DB7;
--color-muted: #927C91;
--color-primary: #AD26AC;
--color-on-primary: #FFFFFF;
--color-accent: #8A5388;
--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 #990099 | adjusted for contrast · from #330033 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #330033 | adjusted for contrast · from #990099 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #990099 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #990099 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.29:1 | AAA pass 4.5:1 | |
| Text on surface | 14.99:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 7.46:1 | AAA pass 4.5:1 | |
| Label on accent | 14.76:1 | AAA pass 4.5:1 | |
| Primary on background | 6.89:1 | AA pass 3:1 | |
| Accent on background | 13.62:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.88:1 | AAA pass 4.5:1 | |
| Text on surface | 7.26:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 5.75:1 | AA pass 4.5:1 | |
| Label on accent | 5.72:1 | AA pass 4.5:1 | |
| Primary on background | 3.35: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 | #330033 (Text 1) | #4D004D (Text 2) | #660066 (Text 3) | #800080 (Text 4) | #990099 (Text 5) |
|---|---|---|---|---|---|
| #330033 | Same color | 1.20— | 1.48— | 1.88— | 2.37— |
| #4D004D | 1.20— | Same color | 1.23— | 1.57— | 1.98— |
| #660066 | 1.48— | 1.23— | Same color | 1.27— | 1.60— |
| #800080 | 1.88— | 1.57— | 1.27— | Same color | 1.26— |
| #990099 | 2.37— | 1.98— | 1.60— | 1.26— | Same color |
Shades
Shades and tints (50–950)
