PreviewingGo to this paletteOpen in generator
Code
/* Cocoa Truffle — colorset.net */
:root {
--color-1: #3B2414;
--color-2: #5D3A1A;
--color-3: #7B4B26;
--color-4: #A0603F;
--color-5: #C47D5E;
--color-bg: #FFF4F0;
--color-surface: #FAEAE3;
--color-border: #E4D0C8;
--color-text: #3B2414;
--color-muted: #7D6555;
--color-primary: #A0603F;
--color-on-primary: #FFFFFF;
--color-accent: #5D3A1A;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #150D08;
--color-surface: #201712;
--color-border: #372B23;
--color-text: #C39D8E;
--color-muted: #9A7D71;
--color-primary: #A0603F;
--color-on-primary: #FFFFFF;
--color-accent: #7C6150;
--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 #C47D5E | adjusted for contrast · from #3B2414 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #C47D5E |
| 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 #A0603F |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.43:1 | AAA pass 4.5:1 | |
| Text on surface | 12.39:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 4.95:1 | AA pass 4.5:1 | |
| Label on accent | 10.07:1 | AAA pass 4.5:1 | |
| Primary on background | 4.59:1 | AA pass 3:1 | |
| Accent on background | 9.33:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.81:1 | AAA pass 4.5:1 | |
| Text on surface | 7.15:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.07:1 | AA pass 4.5:1 | |
| Label on primary | 4.95:1 | AA pass 4.5:1 | |
| Label on accent | 5.70:1 | AA pass 4.5:1 | |
| Primary on background | 3.88:1 | AA Large pass 3:1 | |
| Accent on background | 3.37: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 | #3B2414 (Text 1) | #5D3A1A (Text 2) | #7B4B26 (Text 3) | #A0603F (Text 4) | #C47D5E (Text 5) |
|---|---|---|---|---|---|
| #3B2414 | Same color | 1.44— | 1.99— | 2.93— | 4.45AA Large |
| #5D3A1A | 1.44— | Same color | 1.38— | 2.03— | 3.09AA Large |
| #7B4B26 | 1.99— | 1.38— | Same color | 1.47— | 2.24— |
| #A0603F | 2.93— | 2.03— | 1.47— | Same color | 1.52— |
| #C47D5E | 4.45AA Large | 3.09AA Large | 2.24— | 1.52— | Same color |
Shades
Shades and tints (50–950)
