PreviewingGo to this paletteOpen in generator
Code
/* Dusk Purple — colorset.net */
:root {
--color-1: #1A0033;
--color-2: #2E0854;
--color-3: #4B1283;
--color-4: #6B1FB1;
--color-5: #8E44AD;
--color-bg: #FBF4FF;
--color-surface: #F3EAF7;
--color-border: #DBD0E1;
--color-text: #190131;
--color-muted: #6B627B;
--color-primary: #6B1FB1;
--color-on-primary: #FFFFFF;
--color-accent: #2E0854;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120B1C;
--color-surface: #1C1527;
--color-border: #31293F;
--color-text: #B29EBD;
--color-muted: #8D7D95;
--color-primary: #8541CF;
--color-on-primary: #FFFFFF;
--color-accent: #725B96;
--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 #8E44AD | adjusted for contrast · from #1A0033 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #1A0033 | adjusted for contrast · from #8E44AD |
| Muted text | derived | derived |
| Primary | from palette · color 4 | adjusted for contrast · from #8E44AD |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #8E44AD |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.88:1 | AAA pass 4.5:1 | |
| Text on surface | 16.44:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.33:1 | AA pass 4.5:1 | |
| Label on primary | 8.55:1 | AAA pass 4.5:1 | |
| Label on accent | 16.42:1 | AAA pass 4.5:1 | |
| Primary on background | 7.93:1 | AAA pass 3:1 | |
| Accent on background | 15.24:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.81:1 | AAA pass 4.5:1 | |
| Text on surface | 7.18:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 5.75:1 | AA pass 4.5:1 | |
| Label on accent | 5.75:1 | AA pass 4.5:1 | |
| Primary on background | 3.35:1 | AA Large pass 3:1 | |
| Accent on background | 3.35: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 | #1A0033 (Text 1) | #2E0854 (Text 2) | #4B1283 (Text 3) | #6B1FB1 (Text 4) | #8E44AD (Text 5) |
|---|---|---|---|---|---|
| #1A0033 | Same color | 1.17— | 1.57— | 2.25— | 3.28AA Large |
| #2E0854 | 1.17— | Same color | 1.34— | 1.92— | 2.80— |
| #4B1283 | 1.57— | 1.34— | Same color | 1.43— | 2.09— |
| #6B1FB1 | 2.25— | 1.92— | 1.43— | Same color | 1.46— |
| #8E44AD | 3.28AA Large | 2.80— | 2.09— | 1.46— | Same color |
Shades
Shades and tints (50–950)
