PreviewingGo to this paletteOpen in generator
Code
/* Hazelnut Brown — colorset.net */
:root {
--color-1: #6F5B3E;
--color-2: #8B7355;
--color-3: #A78B6C;
--color-4: #C3A383;
--color-5: #DFBB9A;
--color-bg: #FFF5EC;
--color-surface: #F7EBE1;
--color-border: #E0D2C5;
--color-text: #5E4A2E;
--color-muted: #786851;
--color-primary: #8B7355;
--color-on-primary: #000000;
--color-accent: #6F5B3E;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #140E06;
--color-surface: #1F180F;
--color-border: #352C20;
--color-text: #DABCA1;
--color-muted: #96806C;
--color-primary: #8B7355;
--color-on-primary: #000000;
--color-accent: #C3A383;
--color-on-accent: #140E06;
}
}
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 #DFBB9A | adjusted for contrast · from #6F5B3E |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #6F5B3E | adjusted for contrast · from #DFBB9A |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | from palette · color 1 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.83:1 | AAA pass 4.5:1 | |
| Text on surface | 7.18:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 4.68:1 | AA pass 4.5:1 | |
| Label on accent | 6.48:1 | AA pass 4.5:1 | |
| Primary on background | 4.17:1 | AA Large pass 3:1 | |
| Accent on background | 6.02:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.67:1 | AAA pass 4.5:1 | |
| Text on surface | 9.77:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.11:1 | AA pass 4.5:1 | |
| Label on primary | 4.68:1 | AA pass 4.5:1 | |
| Label on accent | 8.11:1 | AAA pass 4.5:1 | |
| Primary on background | 4.27:1 | AA Large pass 3:1 | |
| Accent on background | 8.11: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 | #6F5B3E (Text 1) | #8B7355 (Text 2) | #A78B6C (Text 3) | #C3A383 (Text 4) | #DFBB9A (Text 5) |
|---|---|---|---|---|---|
| #6F5B3E | Same color | 1.44— | 2.02— | 2.74— | 3.61AA Large |
| #8B7355 | 1.44— | Same color | 1.40— | 1.90— | 2.50— |
| #A78B6C | 2.02— | 1.40— | Same color | 1.36— | 1.79— |
| #C3A383 | 2.74— | 1.90— | 1.36— | Same color | 1.32— |
| #DFBB9A | 3.61AA Large | 2.50— | 1.79— | 1.32— | Same color |
Shades
Shades and tints (50–950)
