PreviewingGo to this paletteOpen in generator
Code
/* Mauve Purple — colorset.net */
:root {
--color-1: #7B1FA2;
--color-2: #9C27B0;
--color-3: #BA68C8;
--color-4: #CE93D8;
--color-5: #E1BEE7;
--color-bg: #FDF3FF;
--color-surface: #F4E9F6;
--color-border: #DDD0DF;
--color-text: #624174;
--color-muted: #74667D;
--color-primary: #9C27B0;
--color-on-primary: #FFFFFF;
--color-accent: #9E7DA3;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #150A1A;
--color-surface: #1F1425;
--color-border: #35283C;
--color-text: #DCC2E0;
--color-muted: #8F7C92;
--color-primary: #A22FB7;
--color-on-primary: #FFFFFF;
--color-accent: #CE93D8;
--color-on-accent: #150A1A;
}
}
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 #E1BEE7 | adjusted for contrast · from #7B1FA2 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #7B1FA2 | adjusted for contrast · from #E1BEE7 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | adjusted for contrast · from #9C27B0 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #BA68C8 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.69:1 | AAA pass 4.5:1 | |
| Text on surface | 7.06:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 6.30:1 | AA pass 4.5:1 | |
| Label on accent | 5.92:1 | AA pass 4.5:1 | |
| Primary on background | 5.84:1 | AA pass 3:1 | |
| Accent on background | 3.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.77:1 | AAA pass 4.5:1 | |
| Text on surface | 10.83:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 5.79:1 | AA pass 4.5:1 | |
| Label on accent | 8.06:1 | AAA pass 4.5:1 | |
| Primary on background | 3.33:1 | AA Large pass 3:1 | |
| Accent on background | 8.06:1 | AAA 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 | #7B1FA2 (Text 1) | #9C27B0 (Text 2) | #BA68C8 (Text 3) | #CE93D8 (Text 4) | #E1BEE7 (Text 5) |
|---|---|---|---|---|---|
| #7B1FA2 | Same color | 1.30— | 2.31— | 3.43AA Large | 4.97AA |
| #9C27B0 | 1.30— | Same color | 1.77— | 2.64— | 3.82AA Large |
| #BA68C8 | 2.31— | 1.77— | Same color | 1.49— | 2.16— |
| #CE93D8 | 3.43AA Large | 2.64— | 1.49— | Same color | 1.45— |
| #E1BEE7 | 4.97AA | 3.82AA Large | 2.16— | 1.45— | Same color |
Shades
Shades and tints (50–950)
