PreviewingGo to this paletteOpen in generator
Code
/* Heather Field — colorset.net */
:root {
--color-1: #E9E1EF;
--color-2: #CBBDDF;
--color-3: #AB9BCB;
--color-4: #AFC9B4;
--color-5: #8378A6;
--color-bg: #F8F6FA;
--color-surface: #EFECF1;
--color-border: #D7D3DA;
--color-text: #534872;
--color-muted: #6D6781;
--color-primary: #8378A6;
--color-on-primary: #000000;
--color-accent: #758E7A;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #100D1A;
--color-surface: #1A1725;
--color-border: #2F2B3D;
--color-text: #E9E1EF;
--color-muted: #867E8B;
--color-primary: #8378A6;
--color-on-primary: #100D1A;
--color-accent: #AFC9B4;
--color-on-accent: #100D1A;
}
}
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 #E9E1EF | adjusted for contrast · from #8378A6 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8378A6 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #8378A6 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.71:1 | AAA pass 4.5:1 | |
| Text on surface | 7.07:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 5.20:1 | AA pass 4.5:1 | |
| Label on accent | 5.91:1 | AA pass 4.5:1 | |
| Primary on background | 3.76:1 | AA Large pass 3:1 | |
| Accent on background | 3.31:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.06:1 | AAA pass 4.5:1 | |
| Text on surface | 13.81:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.91:1 | AA pass 4.5:1 | |
| Label on primary | 4.75:1 | AA pass 4.5:1 | |
| Label on accent | 10.81:1 | AAA pass 4.5:1 | |
| Primary on background | 4.75:1 | AA pass 3:1 | |
| Accent on background | 10.81: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 | #E9E1EF (Text 1) | #CBBDDF (Text 2) | #AB9BCB (Text 3) | #AFC9B4 (Text 4) | #8378A6 (Text 5) |
|---|---|---|---|---|---|
| #E9E1EF | Same color | 1.39— | 1.99— | 1.39— | 3.17AA Large |
| #CBBDDF | 1.39— | Same color | 1.43— | 1.00— | 2.28— |
| #AB9BCB | 1.99— | 1.43— | Same color | 1.43— | 1.59— |
| #AFC9B4 | 1.39— | 1.00— | 1.43— | Same color | 2.28— |
| #8378A6 | 3.17AA Large | 2.28— | 1.59— | 2.28— | Same color |
Shades
Shades and tints (50–950)
