PreviewingGo to this paletteOpen in generator
Code
/* Mocha Brown — colorset.net */
:root {
--color-1: #4E3629;
--color-2: #66483B;
--color-3: #7E5A4D;
--color-4: #966C5F;
--color-5: #AE7E71;
--color-bg: #FFF4F1;
--color-surface: #FAE9E5;
--color-border: #E4D0CA;
--color-text: #4E3629;
--color-muted: #7E6456;
--color-primary: #966C5F;
--color-on-primary: #FFFFFF;
--color-accent: #66483B;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #150D09;
--color-surface: #201713;
--color-border: #372B24;
--color-text: #C49C92;
--color-muted: #9A7C74;
--color-primary: #966C5F;
--color-on-primary: #FFFFFF;
--color-accent: #7E5E51;
--color-on-accent: #FFFFFF;
}
}
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 #AE7E71 | adjusted for contrast · from #4E3629 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #AE7E71 |
| Muted text | derived | derived |
| Primary | from palette · color 4 | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #7E5A4D |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.33:1 | AAA pass 4.5:1 | |
| Text on surface | 9.48:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 4.56:1 | AA pass 4.5:1 | |
| Label on accent | 8.22:1 | AAA pass 4.5:1 | |
| Primary on background | 4.22:1 | AA Large pass 3:1 | |
| Accent on background | 7.62:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.79:1 | AAA pass 4.5:1 | |
| Text on surface | 7.14:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 4.56:1 | AA pass 4.5:1 | |
| Label on accent | 5.82:1 | AA pass 4.5:1 | |
| Primary on background | 4.21:1 | AA Large pass 3:1 | |
| Accent on background | 3.30:1 | AA Large 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 | #4E3629 (Text 1) | #66483B (Text 2) | #7E5A4D (Text 3) | #966C5F (Text 4) | #AE7E71 (Text 5) |
|---|---|---|---|---|---|
| #4E3629 | Same color | 1.36— | 1.84— | 2.45— | 3.20AA Large |
| #66483B | 1.36— | Same color | 1.35— | 1.80— | 2.36— |
| #7E5A4D | 1.84— | 1.35— | Same color | 1.33— | 1.74— |
| #966C5F | 2.45— | 1.80— | 1.33— | Same color | 1.31— |
| #AE7E71 | 3.20AA Large | 2.36— | 1.74— | 1.31— | Same color |
Shades
Shades and tints (50–950)
