PreviewingGo to this paletteOpen in generator
Code
/* Light Purple — colorset.net */
:root {
--color-1: #9370DB;
--color-2: #A380E5;
--color-3: #B390EF;
--color-4: #C3A0F9;
--color-5: #D3B0FF;
--color-bg: #F9F5FF;
--color-surface: #F0EAF9;
--color-border: #D8D1E3;
--color-text: #54437A;
--color-muted: #6D6680;
--color-primary: #8461CA;
--color-on-primary: #FFFFFF;
--color-accent: #523488;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #110C1D;
--color-surface: #1B1628;
--color-border: #302A40;
--color-text: #CABBDE;
--color-muted: #8A7F98;
--color-primary: #8461CA;
--color-on-primary: #FFFFFF;
--color-accent: #D3B0FF;
--color-on-accent: #110C1D;
}
}
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 #D3B0FF | adjusted for contrast · from #9370DB |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #9370DB | adjusted for contrast · from #D3B0FF |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #9370DB | adjusted for contrast · from #9370DB |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #9370DB | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.94:1 | AAA pass 4.5:1 | |
| Text on surface | 7.25:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 4.62:1 | AA pass 4.5:1 | |
| Label on accent | 9.52:1 | AAA pass 4.5:1 | |
| Primary on background | 4.30:1 | AA Large pass 3:1 | |
| Accent on background | 8.86:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.67:1 | AAA pass 4.5:1 | |
| Text on surface | 9.79:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.09:1 | AA pass 4.5:1 | |
| Label on primary | 4.62:1 | AA pass 4.5:1 | |
| Label on accent | 10.44:1 | AAA pass 4.5:1 | |
| Primary on background | 4.15:1 | AA Large pass 3:1 | |
| Accent on background | 10.44: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 | #9370DB (Text 1) | #A380E5 (Text 2) | #B390EF (Text 3) | #C3A0F9 (Text 4) | #D3B0FF (Text 5) |
|---|---|---|---|---|---|
| #9370DB | Same color | 1.21— | 1.46— | 1.74— | 2.05— |
| #A380E5 | 1.21— | Same color | 1.20— | 1.43— | 1.69— |
| #B390EF | 1.46— | 1.20— | Same color | 1.19— | 1.40— |
| #C3A0F9 | 1.74— | 1.43— | 1.19— | Same color | 1.18— |
| #D3B0FF | 2.05— | 1.69— | 1.40— | 1.18— | Same color |
Shades
Shades and tints (50–950)
