PreviewingGo to this paletteOpen in generator
Code
/* Chocolate Brown — colorset.net */
:root {
--color-1: #7B3F00;
--color-2: #8B4513;
--color-3: #A0522D;
--color-4: #CD853F;
--color-5: #DEB887;
--color-bg: #FFF5E8;
--color-surface: #F6ECDF;
--color-border: #DFD3C3;
--color-text: #734014;
--color-muted: #7D6554;
--color-primary: #A0522D;
--color-on-primary: #FFFFFF;
--color-accent: #A48051;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1B0B02;
--color-surface: #261508;
--color-border: #3D2919;
--color-text: #D3BB9C;
--color-muted: #927F68;
--color-primary: #A0522D;
--color-on-primary: #FFFFFF;
--color-accent: #CD853F;
--color-on-accent: #1B0B02;
}
}
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 #DEB887 | adjusted for contrast · from #7B3F00 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #7B3F00 | adjusted for contrast · from #DEB887 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #CD853F | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.88:1 | AAA pass 4.5:1 | |
| Text on surface | 7.27:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 5.62:1 | AA pass 4.5:1 | |
| Label on accent | 5.78:1 | AA pass 4.5:1 | |
| Primary on background | 5.21:1 | AA pass 3:1 | |
| Accent on background | 3.37:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.37:1 | AAA pass 4.5:1 | |
| Text on surface | 9.52: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.41:1 | AA pass 4.5:1 | |
| Primary on background | 3.41:1 | AA Large pass 3:1 | |
| Accent on background | 6.41: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 | #7B3F00 (Text 1) | #8B4513 (Text 2) | #A0522D (Text 3) | #CD853F (Text 4) | #DEB887 (Text 5) |
|---|---|---|---|---|---|
| #7B3F00 | Same color | 1.16— | 1.46— | 2.75— | 4.43AA Large |
| #8B4513 | 1.16— | Same color | 1.26— | 2.37— | 3.82AA Large |
| #A0522D | 1.46— | 1.26— | Same color | 1.88— | 3.02AA Large |
| #CD853F | 2.75— | 2.37— | 1.88— | Same color | 1.61— |
| #DEB887 | 4.43AA Large | 3.82AA Large | 3.02AA Large | 1.61— | Same color |
Shades
Shades and tints (50–950)
