PreviewingGo to this paletteOpen in generator
Code
/* Khaki Brown — colorset.net */
:root {
--color-1: #8B864E;
--color-2: #9B8E6F;
--color-3: #ADA586;
--color-4: #C3B091;
--color-5: #F0E68C;
--color-bg: #F9F8E8;
--color-surface: #F0EEDF;
--color-border: #D8D6C3;
--color-text: #544F15;
--color-muted: #6E6B51;
--color-primary: #8B864E;
--color-on-primary: #000000;
--color-accent: #595527;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #121002;
--color-surface: #1C1A08;
--color-border: #312F19;
--color-text: #E8E4BF;
--color-muted: #888569;
--color-primary: #8B864E;
--color-on-primary: #121002;
--color-accent: #F0E68C;
--color-on-accent: #121002;
}
}
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 #F0E68C | adjusted for contrast · from #8B864E |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8B864E | adjusted for contrast · from #F0E68C |
| Muted text | derived | derived |
| Primary | from palette · color 1 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #8B864E | from palette · color 5 |
| 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.05:1 | AA pass 4.5:1 | |
| Label on primary | 5.62:1 | AA pass 4.5:1 | |
| Label on accent | 7.63:1 | AAA pass 4.5:1 | |
| Primary on background | 3.49:1 | AA Large pass 3:1 | |
| Accent on background | 7.13:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.79:1 | AAA pass 4.5:1 | |
| Text on surface | 13.56:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.09:1 | AA pass 4.5:1 | |
| Label on primary | 5.10:1 | AA pass 4.5:1 | |
| Label on accent | 14.90:1 | AAA pass 4.5:1 | |
| Primary on background | 5.10:1 | AA pass 3:1 | |
| Accent on background | 14.90: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 | #8B864E (Text 1) | #9B8E6F (Text 2) | #ADA586 (Text 3) | #C3B091 (Text 4) | #F0E68C (Text 5) |
|---|---|---|---|---|---|
| #8B864E | Same color | 1.16— | 1.51— | 1.77— | 2.92— |
| #9B8E6F | 1.16— | Same color | 1.31— | 1.53— | 2.53— |
| #ADA586 | 1.51— | 1.31— | Same color | 1.17— | 1.93— |
| #C3B091 | 1.77— | 1.53— | 1.17— | Same color | 1.65— |
| #F0E68C | 2.92— | 2.53— | 1.93— | 1.65— | Same color |
Shades
Shades and tints (50–950)
