PreviewingGo to this paletteOpen in generator
Code
/* Purple Grape Juice — colorset.net */
:root {
--color-1: #4B0082;
--color-2: #6A0DAD;
--color-3: #7B2C92;
--color-4: #9932CC;
--color-5: #BA55D3;
--color-bg: #FDF3FF;
--color-surface: #F4E9F6;
--color-border: #DCD0E0;
--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: #B49DBB;
--color-muted: #8F7C93;
--color-primary: #9932CC;
--color-on-primary: #FFFFFF;
--color-accent: #9445AB;
--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 #BA55D3 | adjusted for contrast · from #4B0082 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #4B0082 | adjusted for contrast · from #BA55D3 |
| Muted text | derived | derived |
| Primary | from palette · color 4 | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 1 | adjusted for contrast · from #9932CC |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.36:1 | AAA pass 4.5:1 | |
| Text on surface | 10.42:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01: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.28:1 | AA pass 3:1 | |
| Accent on background | 11.99:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.78:1 | AAA pass 4.5:1 | |
| Text on surface | 7.15:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 5.70:1 | AA pass 4.5:1 | |
| Label on accent | 5.68:1 | AA pass 4.5:1 | |
| Primary on background | 3.38:1 | AA Large pass 3:1 | |
| Accent on background | 3.39: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 | #4B0082 (Text 1) | #6A0DAD (Text 2) | #7B2C92 (Text 3) | #9932CC (Text 4) | #BA55D3 (Text 5) |
|---|---|---|---|---|---|
| #4B0082 | Same color | 1.40— | 1.61— | 2.27— | 3.29AA Large |
| #6A0DAD | 1.40— | Same color | 1.15— | 1.62— | 2.34— |
| #7B2C92 | 1.61— | 1.15— | Same color | 1.41— | 2.04— |
| #9932CC | 2.27— | 1.62— | 1.41— | Same color | 1.45— |
| #BA55D3 | 3.29AA Large | 2.34— | 2.04— | 1.45— | Same color |
Shades
Shades and tints (50–950)
