PreviewingGo to this paletteOpen in generator
Code
/* Toffee Brown — colorset.net */
:root {
--color-1: #755139;
--color-2: #8B6F47;
--color-3: #A0826D;
--color-4: #C49A6C;
--color-5: #D2B48C;
--color-bg: #FFF5E9;
--color-surface: #F5ECE0;
--color-border: #DFD3C4;
--color-text: #69462E;
--color-muted: #7E6555;
--color-primary: #8B6F47;
--color-on-primary: #FFFFFF;
--color-accent: #9F835C;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #180C06;
--color-surface: #22160F;
--color-border: #3A2A20;
--color-text: #CDB596;
--color-muted: #917F68;
--color-primary: #8B6F47;
--color-on-primary: #FFFFFF;
--color-accent: #C49A6C;
--color-on-accent: #180C06;
}
}
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 #D2B48C | adjusted for contrast · from #755139 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #755139 | adjusted for contrast · from #D2B48C |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #A0826D | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.75:1 | AAA pass 4.5:1 | |
| Text on surface | 7.14:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 4.71:1 | AA pass 4.5:1 | |
| Label on accent | 5.88:1 | AA pass 4.5:1 | |
| Primary on background | 4.37:1 | AA Large pass 3:1 | |
| Accent on background | 3.32:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.73:1 | AAA pass 4.5:1 | |
| Text on surface | 8.95:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 4.71:1 | AA pass 4.5:1 | |
| Label on accent | 7.48:1 | AAA pass 4.5:1 | |
| Primary on background | 4.08:1 | AA Large pass 3:1 | |
| Accent on background | 7.48: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 | #755139 (Text 1) | #8B6F47 (Text 2) | #A0826D (Text 3) | #C49A6C (Text 4) | #D2B48C (Text 5) |
|---|---|---|---|---|---|
| #755139 | Same color | 1.49— | 1.97— | 2.74— | 3.56AA Large |
| #8B6F47 | 1.49— | Same color | 1.32— | 1.83— | 2.39— |
| #A0826D | 1.97— | 1.32— | Same color | 1.39— | 1.80— |
| #C49A6C | 2.74— | 1.83— | 1.39— | Same color | 1.30— |
| #D2B48C | 3.56AA Large | 2.39— | 1.80— | 1.30— | Same color |
Shades
Shades and tints (50–950)
