PreviewingGo to this paletteOpen in generator
Code
/* Heather Purple — colorset.net */
:root {
--color-1: #B7A8C7;
--color-2: #C3B9D3;
--color-3: #CFCADF;
--color-4: #DBDBEB;
--color-5: #E7ECF7;
--color-bg: #E7ECF7;
--color-surface: #F0F3FA;
--color-border: #CDD3E2;
--color-text: #554862;
--color-muted: #6F647C;
--color-primary: #8F809E;
--color-on-primary: #000000;
--color-accent: #5C5068;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120D16;
--color-surface: #1C1720;
--color-border: #312B37;
--color-text: #E7ECF7;
--color-muted: #81868F;
--color-primary: #B7A8C7;
--color-on-primary: #120D16;
--color-accent: #CFCADF;
--color-on-accent: #120D16;
}
}
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 5 | adjusted for contrast · from #B7A8C7 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #B7A8C7 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #B7A8C7 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #B7A8C7 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.13:1 | AAA pass 4.5:1 | |
| Text on surface | 7.59:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.68:1 | AA pass 4.5:1 | |
| Label on primary | 5.75:1 | AA pass 4.5:1 | |
| Label on accent | 7.49:1 | AAA pass 4.5:1 | |
| Primary on background | 3.09:1 | AA Large pass 3:1 | |
| Accent on background | 6.33:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.20:1 | AAA pass 4.5:1 | |
| Text on surface | 14.87:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.24:1 | AA pass 4.5:1 | |
| Label on primary | 8.62:1 | AAA pass 4.5:1 | |
| Label on accent | 12.03:1 | AAA pass 4.5:1 | |
| Primary on background | 8.62:1 | AAA pass 3:1 | |
| Accent on background | 12.03: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 | #B7A8C7 (Text 1) | #C3B9D3 (Text 2) | #CFCADF (Text 3) | #DBDBEB (Text 4) | #E7ECF7 (Text 5) |
|---|---|---|---|---|---|
| #B7A8C7 | Same color | 1.19— | 1.39— | 1.63— | 1.88— |
| #C3B9D3 | 1.19— | Same color | 1.18— | 1.37— | 1.58— |
| #CFCADF | 1.39— | 1.18— | Same color | 1.17— | 1.35— |
| #DBDBEB | 1.63— | 1.37— | 1.17— | Same color | 1.16— |
| #E7ECF7 | 1.88— | 1.58— | 1.35— | 1.16— | Same color |
Shades
Shades and tints (50–950)
