PreviewingGo to this paletteOpen in generator
Code
/* Pistachio Milk — colorset.net */
:root {
--color-1: #C7D9B7;
--color-2: #D5E5C7;
--color-3: #E1EFD3;
--color-4: #EDF7E3;
--color-5: #F8FFF0;
--color-bg: #F8FFF0;
--color-surface: #EFF6E7;
--color-border: #D5DECB;
--color-text: #475639;
--color-muted: #66735A;
--color-primary: #809071;
--color-on-primary: #000000;
--color-accent: #515D45;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0C1108;
--color-surface: #161B12;
--color-border: #2A3023;
--color-text: #F8FFF0;
--color-muted: #8A9183;
--color-primary: #C7D9B7;
--color-on-primary: #0C1108;
--color-accent: #E1EFD3;
--color-on-accent: #0C1108;
}
}
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 #C7D9B7 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #C7D9B7 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #C7D9B7 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #C7D9B7 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.73:1 | AAA pass 4.5:1 | |
| Text on surface | 7.15:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.93:1 | AA pass 4.5:1 | |
| Label on primary | 6.15:1 | AA pass 4.5:1 | |
| Label on accent | 7.00:1 | AAA pass 4.5:1 | |
| Primary on background | 3.34:1 | AA Large pass 3:1 | |
| Accent on background | 6.85:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.70:1 | AAA pass 4.5:1 | |
| Text on surface | 17.13:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.88:1 | AA pass 4.5:1 | |
| Label on primary | 12.77:1 | AAA pass 4.5:1 | |
| Label on accent | 15.91:1 | AAA pass 4.5:1 | |
| Primary on background | 12.77:1 | AAA pass 3:1 | |
| Accent on background | 15.91: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 | #C7D9B7 (Text 1) | #D5E5C7 (Text 2) | #E1EFD3 (Text 3) | #EDF7E3 (Text 4) | #F8FFF0 (Text 5) |
|---|---|---|---|---|---|
| #C7D9B7 | Same color | 1.13— | 1.25— | 1.35— | 1.46— |
| #D5E5C7 | 1.13— | Same color | 1.10— | 1.20— | 1.30— |
| #E1EFD3 | 1.25— | 1.10— | Same color | 1.09— | 1.18— |
| #EDF7E3 | 1.35— | 1.20— | 1.09— | Same color | 1.08— |
| #F8FFF0 | 1.46— | 1.30— | 1.18— | 1.08— | Same color |
Shades
Shades and tints (50–950)
