PreviewingGo to this paletteOpen in generator
Code
/* Mystical Purple — colorset.net */
:root {
--color-1: #4B0082;
--color-2: #8B008B;
--color-3: #9932CC;
--color-4: #BA55D3;
--color-5: #DA70D6;
--color-bg: #FFF2FE;
--color-surface: #F5E9F4;
--color-border: #DFCFDD;
--color-text: #402A5E;
--color-muted: #6F667E;
--color-primary: #9932CC;
--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: #B79BB5;
--color-muted: #917B8F;
--color-primary: #9932CC;
--color-on-primary: #FFFFFF;
--color-accent: #DA70D6;
--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 #DA70D6 | adjusted for contrast · from #4B0082 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #4B0082 | adjusted for contrast · from #DA70D6 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | from palette · color 1 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.33:1 | AAA pass 4.5:1 | |
| Text on surface | 10.43:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 5.70:1 | AA pass 4.5:1 | |
| Label on accent | 12.95:1 | AAA pass 4.5:1 | |
| Primary on background | 5.26:1 | AA pass 3:1 | |
| Accent on background | 11.95:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.68:1 | AAA pass 4.5:1 | |
| Text on surface | 7.06:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 5.70:1 | AA pass 4.5:1 | |
| Label on accent | 6.67:1 | AA pass 4.5:1 | |
| Primary on background | 3.38:1 | AA Large pass 3:1 | |
| Accent on background | 6.67: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) | #8B008B (Text 2) | #9932CC (Text 3) | #BA55D3 (Text 4) | #DA70D6 (Text 5) |
|---|---|---|---|---|---|
| #4B0082 | Same color | 1.52— | 2.27— | 3.29AA Large | 4.48AA Large |
| #8B008B | 1.52— | Same color | 1.49— | 2.16— | 2.94— |
| #9932CC | 2.27— | 1.49— | Same color | 1.45— | 1.97— |
| #BA55D3 | 3.29AA Large | 2.16— | 1.45— | Same color | 1.36— |
| #DA70D6 | 4.48AA Large | 2.94— | 1.97— | 1.36— | Same color |
Shades
Shades and tints (50–950)
