PreviewingGo to this paletteOpen in generator
Code
/* Zen Purple — colorset.net */
:root {
--color-1: #F5F5DC;
--color-2: #E6E6FA;
--color-3: #D8BFD8;
--color-4: #C8C8FF;
--color-5: #B8B8FF;
--color-bg: #F5F5DC;
--color-surface: #FBFCED;
--color-border: #DDDCC0;
--color-text: #4C4A82;
--color-muted: #6B6C85;
--color-primary: #8786C9;
--color-on-primary: #000000;
--color-accent: #9C849C;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0E0D1E;
--color-surface: #171729;
--color-border: #2B2B41;
--color-text: #F5F5DC;
--color-muted: #8B8B74;
--color-primary: #B8B8FF;
--color-on-primary: #0E0D1E;
--color-accent: #D8BFD8;
--color-on-accent: #0E0D1E;
}
}
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 #B8B8FF |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #B8B8FF | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #B8B8FF | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #B8B8FF | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.27:1 | AAA pass 4.5:1 | |
| Text on surface | 7.76:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.62:1 | AA pass 4.5:1 | |
| Label on primary | 6.28:1 | AA pass 4.5:1 | |
| Label on accent | 6.19:1 | AA pass 4.5:1 | |
| Primary on background | 3.02:1 | AA Large pass 3:1 | |
| Accent on background | 3.06:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.33:1 | AAA pass 4.5:1 | |
| Text on surface | 15.93:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.52:1 | AA pass 4.5:1 | |
| Label on primary | 10.35:1 | AAA pass 4.5:1 | |
| Label on accent | 11.29:1 | AAA pass 4.5:1 | |
| Primary on background | 10.35:1 | AAA pass 3:1 | |
| Accent on background | 11.29: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 | #F5F5DC (Text 1) | #E6E6FA (Text 2) | #D8BFD8 (Text 3) | #C8C8FF (Text 4) | #B8B8FF (Text 5) |
|---|---|---|---|---|---|
| #F5F5DC | Same color | 1.11— | 1.53— | 1.44— | 1.67— |
| #E6E6FA | 1.11— | Same color | 1.38— | 1.30— | 1.50— |
| #D8BFD8 | 1.53— | 1.38— | Same color | 1.06— | 1.09— |
| #C8C8FF | 1.44— | 1.30— | 1.06— | Same color | 1.16— |
| #B8B8FF | 1.67— | 1.50— | 1.09— | 1.16— | Same color |
Shades
Shades and tints (50–950)
