PreviewingGo to this paletteOpen in generator
Code
/* Khaki Beige — colorset.net */
:root {
--color-1: #8D7966;
--color-2: #9C8E7A;
--color-3: #C3B091;
--color-4: #F0E68C;
--color-5: #FFFACD;
--color-bg: #F9F7EA;
--color-surface: #EFEEE1;
--color-border: #D7D6C5;
--color-text: #5B4937;
--color-muted: #796653;
--color-primary: #8D7966;
--color-on-primary: #000000;
--color-accent: #827814;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #140E09;
--color-surface: #1E1812;
--color-border: #352C23;
--color-text: #FEFAD3;
--color-muted: #908D71;
--color-primary: #8D7966;
--color-on-primary: #140E09;
--color-accent: #F0E68C;
--color-on-accent: #140E09;
}
}
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 #FFFACD | adjusted for contrast · from #8D7966 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8D7966 | adjusted for contrast · from #FFFACD |
| Muted text | derived | derived |
| Primary | from palette · color 1 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #8D7966 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.96:1 | AAA pass 4.5:1 | |
| Text on surface | 7.33:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.09:1 | AA pass 4.5:1 | |
| Label on primary | 5.06:1 | AA pass 4.5:1 | |
| Label on accent | 4.52:1 | AA pass 4.5:1 | |
| Primary on background | 3.86:1 | AA Large pass 3:1 | |
| Accent on background | 4.20:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.08:1 | AAA pass 4.5:1 | |
| Text on surface | 16.60:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.69:1 | AA pass 4.5:1 | |
| Label on primary | 4.61:1 | AA pass 4.5:1 | |
| Label on accent | 14.96:1 | AAA pass 4.5:1 | |
| Primary on background | 4.61:1 | AA pass 3:1 | |
| Accent on background | 14.96: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 | #8D7966 (Text 1) | #9C8E7A (Text 2) | #C3B091 (Text 3) | #F0E68C (Text 4) | #FFFACD (Text 5) |
|---|---|---|---|---|---|
| #8D7966 | Same color | 1.30— | 1.96— | 3.24AA Large | 3.92AA Large |
| #9C8E7A | 1.30— | Same color | 1.51— | 2.50— | 3.02AA Large |
| #C3B091 | 1.96— | 1.51— | Same color | 1.65— | 1.99— |
| #F0E68C | 3.24AA Large | 2.50— | 1.65— | Same color | 1.21— |
| #FFFACD | 3.92AA Large | 3.02AA Large | 1.99— | 1.21— | Same color |
Shades
Shades and tints (50–950)
