PreviewingGo to this paletteOpen in generator
Code
/* Purple Harmony — colorset.net */
:root {
--color-1: #6C5CE7;
--color-2: #A29BFE;
--color-3: #FD79A8;
--color-4: #FDCB6E;
--color-5: #00B894;
--color-bg: #FEF6E8;
--color-surface: #F4ECDF;
--color-border: #DDD4C3;
--color-text: #49477F;
--color-muted: #676882;
--color-primary: #6C5CE7;
--color-on-primary: #FFFFFF;
--color-accent: #996E00;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0D0D1E;
--color-surface: #171729;
--color-border: #2B2B41;
--color-text: #E4D1AF;
--color-muted: #8E8067;
--color-primary: #6C5CE7;
--color-on-primary: #FFFFFF;
--color-accent: #FDCB6E;
--color-on-accent: #0D0D1E;
}
}
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 #FDCB6E | adjusted for contrast · from #6C5CE7 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #6C5CE7 | adjusted for contrast · from #FDCB6E |
| Muted text | derived | derived |
| Primary | from palette · color 1 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #00B894 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.85:1 | AAA pass 4.5:1 | |
| Text on surface | 7.19:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 4.86:1 | AA pass 4.5:1 | |
| Label on accent | 4.58:1 | AA pass 4.5:1 | |
| Primary on background | 4.53:1 | AA pass 3:1 | |
| Accent on background | 4.27:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.84:1 | AAA pass 4.5:1 | |
| Text on surface | 11.79:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 4.86:1 | AA pass 4.5:1 | |
| Label on accent | 12.75:1 | AAA pass 4.5:1 | |
| Primary on background | 3.95:1 | AA Large pass 3:1 | |
| Accent on background | 12.75: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 | #6C5CE7 (Text 1) | #A29BFE (Text 2) | #FD79A8 (Text 3) | #FDCB6E (Text 4) | #00B894 (Text 5) |
|---|---|---|---|---|---|
| #6C5CE7 | Same color | 2.00— | 1.96— | 3.23AA Large | 1.92— |
| #A29BFE | 2.00— | Same color | 1.02— | 1.61— | 1.04— |
| #FD79A8 | 1.96— | 1.02— | Same color | 1.64— | 1.02— |
| #FDCB6E | 3.23AA Large | 1.61— | 1.64— | Same color | 1.68— |
| #00B894 | 1.92— | 1.04— | 1.02— | 1.68— | Same color |
Shades
Shades and tints (50–950)
