PreviewingGo to this paletteOpen in generator
Code
/* Grape Purple — colorset.net */
:root {
--color-1: #6F2DA8;
--color-2: #8A2BE2;
--color-3: #9932CC;
--color-4: #9370DB;
--color-5: #BA55D3;
--color-bg: #F7F5FF;
--color-surface: #EEEBFA;
--color-border: #D6D2E4;
--color-text: #5C4379;
--color-muted: #716780;
--color-primary: #8A2BE2;
--color-on-primary: #FFFFFF;
--color-accent: #AD48C6;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #130B1C;
--color-surface: #1D1527;
--color-border: #32293E;
--color-text: #A9A1C3;
--color-muted: #867F9A;
--color-primary: #8D30E5;
--color-on-primary: #FFFFFF;
--color-accent: #AD48C6;
--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 #9370DB | adjusted for contrast · from #6F2DA8 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #6F2DA8 | adjusted for contrast · from #9370DB |
| Muted text | derived | derived |
| Primary | from palette · color 2 | adjusted for contrast · from #8A2BE2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #BA55D3 | adjusted for contrast · from #BA55D3 |
| On accent | derived | derived |
Contrast
| 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.92:1 | AA pass 4.5:1 | |
| Label on primary | 5.96:1 | AA pass 4.5:1 | |
| Label on accent | 4.65:1 | AA pass 4.5:1 | |
| Primary on background | 5.52:1 | AA pass 3:1 | |
| Accent on background | 4.31:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.85:1 | AAA pass 4.5:1 | |
| Text on surface | 7.21:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 5.70:1 | AA pass 4.5:1 | |
| Label on accent | 4.65:1 | AA pass 4.5:1 | |
| Primary on background | 3.38:1 | AA Large pass 3:1 | |
| Accent on background | 4.14: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 | #6F2DA8 (Text 1) | #8A2BE2 (Text 2) | #9932CC (Text 3) | #9370DB (Text 4) | #BA55D3 (Text 5) |
|---|---|---|---|---|---|
| #6F2DA8 | Same color | 1.35— | 1.41— | 2.13— | 2.04— |
| #8A2BE2 | 1.35— | Same color | 1.04— | 1.58— | 1.51— |
| #9932CC | 1.41— | 1.04— | Same color | 1.52— | 1.45— |
| #9370DB | 2.13— | 1.58— | 1.52— | Same color | 1.05— |
| #BA55D3 | 2.04— | 1.51— | 1.45— | 1.05— | Same color |
Shades
Shades and tints (50–950)
