PreviewingGo to this paletteOpen in generator
Code
/* Pecan Brown — colorset.net */
:root {
--color-1: #704214;
--color-2: #8B4513;
--color-3: #A0522D;
--color-4: #BC8F8F;
--color-5: #D2B48C;
--color-bg: #FFF5E9;
--color-surface: #F5ECE0;
--color-border: #DFD3C4;
--color-text: #704214;
--color-muted: #7C6653;
--color-primary: #A0522D;
--color-on-primary: #FFFFFF;
--color-accent: #9F835C;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1A0B01;
--color-surface: #251508;
--color-border: #3C2919;
--color-text: #CDB596;
--color-muted: #917F68;
--color-primary: #A0522D;
--color-on-primary: #FFFFFF;
--color-accent: #BC8F8F;
--color-on-accent: #1A0B01;
}
}
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 #704214 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #D2B48C |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #BC8F8F | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.86:1 | AAA pass 4.5:1 | |
| Text on surface | 7.25:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 5.62:1 | AA pass 4.5:1 | |
| Label on accent | 5.88:1 | AA pass 4.5:1 | |
| Primary on background | 5.21:1 | AA pass 3:1 | |
| Accent on background | 3.32:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.75:1 | AAA pass 4.5:1 | |
| Text on surface | 8.95:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 5.62:1 | AA pass 4.5:1 | |
| Label on accent | 6.83:1 | AA pass 4.5:1 | |
| Primary on background | 3.42:1 | AA Large pass 3:1 | |
| Accent on background | 6.83:1 | AA 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 | #704214 (Text 1) | #8B4513 (Text 2) | #A0522D (Text 3) | #BC8F8F (Text 4) | #D2B48C (Text 5) |
|---|---|---|---|---|---|
| #704214 | Same color | 1.19— | 1.51— | 3.01AA Large | 4.30AA Large |
| #8B4513 | 1.19— | Same color | 1.26— | 2.52— | 3.60AA Large |
| #A0522D | 1.51— | 1.26— | Same color | 2.00— | 2.85— |
| #BC8F8F | 3.01AA Large | 2.52— | 2.00— | Same color | 1.43— |
| #D2B48C | 4.30AA Large | 3.60AA Large | 2.85— | 1.43— | Same color |
Shades
Shades and tints (50–950)
