PreviewingGo to this paletteOpen in generator
Code
/* Classic Brown — colorset.net */
:root {
--color-1: #F5DEB3;
--color-2: #8B4513;
--color-3: #000000;
--color-4: #FFFFFF;
--color-5: #DAA520;
--color-bg: #FFFFFF;
--color-surface: #F6F6F6;
--color-border: #E0DCDD;
--color-text: #000000;
--color-muted: #4D4D4D;
--color-primary: #B68700;
--color-on-primary: #000000;
--color-accent: #8B4513;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #000000;
--color-surface: #000000;
--color-border: #090707;
--color-text: #FFFFFF;
--color-muted: #7A7A7A;
--color-primary: #DAA520;
--color-on-primary: #000000;
--color-accent: #8E4817;
--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 | from palette · color 4 | from palette · color 3 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 3 | from palette · color 4 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #DAA520 | from palette · color 5 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #8B4513 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 21.00:1 | AAA pass 4.5:1 | |
| Text on surface | 19.43:1 | AAA pass 4.5:1 | |
| Muted text on background | 8.45:1 | AAA pass 4.5:1 | |
| Label on primary | 6.45:1 | AA pass 4.5:1 | |
| Label on accent | 7.10:1 | AAA pass 4.5:1 | |
| Primary on background | 3.25:1 | AA Large pass 3:1 | |
| Accent on background | 7.10:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 21.00:1 | AAA pass 4.5:1 | |
| Text on surface | 21.00:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.89:1 | AA pass 4.5:1 | |
| Label on primary | 9.38:1 | AAA pass 4.5:1 | |
| Label on accent | 6.80:1 | AA pass 4.5:1 | |
| Primary on background | 9.38:1 | AAA pass 3:1 | |
| Accent on background | 3.09: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 | #F5DEB3 (Text 1) | #8B4513 (Text 2) | #000000 (Text 3) | #FFFFFF (Text 4) | #DAA520 (Text 5) |
|---|---|---|---|---|---|
| #F5DEB3 | Same color | 5.40AA | 15.98AAA | 1.31— | 1.70— |
| #8B4513 | 5.40AA | Same color | 2.96— | 7.10AAA | 3.17AA Large |
| #000000 | 15.98AAA | 2.96— | Same color | 21.00AAA | 9.38AAA |
| #FFFFFF | 1.31— | 7.10AAA | 21.00AAA | Same color | 2.24— |
| #DAA520 | 1.70— | 3.17AA Large | 9.38AAA | 2.24— | Same color |
Shades
Shades and tints (50–950)
