PreviewingGo to this paletteOpen in generator
Code
/* Purple Light — colorset.net */
:root {
--color-1: #F3E5F5;
--color-2: #E1BEE7;
--color-3: #CE93D8;
--color-4: #BA68C8;
--color-5: #AB47BC;
--color-bg: #F3E5F5;
--color-surface: #F7EEF8;
--color-border: #DCCCDE;
--color-text: #653D6C;
--color-muted: #746277;
--color-primary: #AB47BC;
--color-on-primary: #FFFFFF;
--color-accent: #8D818F;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #160A18;
--color-surface: #211423;
--color-border: #37273A;
--color-text: #F3E5F5;
--color-muted: #8C808E;
--color-primary: #AB47BC;
--color-on-primary: #FFFFFF;
--color-accent: #E1BEE7;
--color-on-accent: #160A18;
}
}
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 | from palette · color 1 | adjusted for contrast · from #AB47BC |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #AB47BC | from palette · color 1 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #BA68C8 | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.11:1 | AAA pass 4.5:1 | |
| Text on surface | 7.61:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.62:1 | AA pass 4.5:1 | |
| Label on primary | 4.82:1 | AA pass 4.5:1 | |
| Label on accent | 5.67:1 | AA pass 4.5:1 | |
| Primary on background | 3.98:1 | AA Large pass 3:1 | |
| Accent on background | 3.06:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.90:1 | AAA pass 4.5:1 | |
| Text on surface | 14.58:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.13:1 | AA pass 4.5:1 | |
| Label on primary | 4.82:1 | AA pass 4.5:1 | |
| Label on accent | 11.66:1 | AAA pass 4.5:1 | |
| Primary on background | 4.00:1 | AA Large pass 3:1 | |
| Accent on background | 11.66: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 | #F3E5F5 (Text 1) | #E1BEE7 (Text 2) | #CE93D8 (Text 3) | #BA68C8 (Text 4) | #AB47BC (Text 5) |
|---|---|---|---|---|---|
| #F3E5F5 | Same color | 1.36— | 1.97— | 2.94— | 3.98AA Large |
| #E1BEE7 | 1.36— | Same color | 1.45— | 2.16— | 2.92— |
| #CE93D8 | 1.97— | 1.45— | Same color | 1.49— | 2.02— |
| #BA68C8 | 2.94— | 2.16— | 1.49— | Same color | 1.35— |
| #AB47BC | 3.98AA Large | 2.92— | 2.02— | 1.35— | Same color |
Shades
Shades and tints (50–950)
