PreviewingGo to this paletteOpen in generator
Code
/* Mocha Cream — colorset.net */
:root {
--color-1: #8B6F47;
--color-2: #A68A5B;
--color-3: #C4A572;
--color-4: #D9C4A0;
--color-5: #E8D5B7;
--color-bg: #FCF6ED;
--color-surface: #F2EDE4;
--color-border: #DBD4C8;
--color-text: #654A22;
--color-muted: #796952;
--color-primary: #8B6F47;
--color-on-primary: #FFFFFF;
--color-accent: #958468;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #160E03;
--color-surface: #21180B;
--color-border: #372C1C;
--color-text: #E8D5B7;
--color-muted: #918269;
--color-primary: #8B6F47;
--color-on-primary: #FFFFFF;
--color-accent: #D9C4A0;
--color-on-accent: #160E03;
}
}
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 #E8D5B7 | adjusted for contrast · from #8B6F47 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8B6F47 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 1 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #A68A5B | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.65:1 | AAA pass 4.5:1 | |
| Text on surface | 7.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 4.71:1 | AA pass 4.5:1 | |
| Label on accent | 5.78:1 | AA pass 4.5:1 | |
| Primary on background | 4.38:1 | AA Large pass 3:1 | |
| Accent on background | 3.38:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.32:1 | AAA pass 4.5:1 | |
| Text on surface | 12.19:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.10:1 | AA pass 4.5:1 | |
| Label on primary | 4.71:1 | AA pass 4.5:1 | |
| Label on accent | 11.25:1 | AAA pass 4.5:1 | |
| Primary on background | 4.06:1 | AA Large pass 3:1 | |
| Accent on background | 11.25: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 | #8B6F47 (Text 1) | #A68A5B (Text 2) | #C4A572 (Text 3) | #D9C4A0 (Text 4) | #E8D5B7 (Text 5) |
|---|---|---|---|---|---|
| #8B6F47 | Same color | 1.44— | 2.01— | 2.77— | 3.28AA Large |
| #A68A5B | 1.44— | Same color | 1.40— | 1.93— | 2.28— |
| #C4A572 | 2.01— | 1.40— | Same color | 1.38— | 1.63— |
| #D9C4A0 | 2.77— | 1.93— | 1.38— | Same color | 1.18— |
| #E8D5B7 | 3.28AA Large | 2.28— | 1.63— | 1.18— | Same color |
Shades
Shades and tints (50–950)
