PreviewingGo to this paletteOpen in generator
Code
/* Khaki Light — colorset.net */
:root {
--color-1: #C3B091;
--color-2: #D4C2A3;
--color-3: #E5D4B5;
--color-4: #F6E6C7;
--color-5: #FFF8D9;
--color-bg: #FFF8D9;
--color-surface: #F6EFD0;
--color-border: #DDD6B9;
--color-text: #5C4C30;
--color-muted: #776951;
--color-primary: #978567;
--color-on-primary: #000000;
--color-accent: #63543D;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #140F06;
--color-surface: #1E190F;
--color-border: #342D20;
--color-text: #FFF8D9;
--color-muted: #928C70;
--color-primary: #C3B091;
--color-on-primary: #140F06;
--color-accent: #E5D4B5;
--color-on-accent: #140F06;
}
}
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 5 | adjusted for contrast · from #C3B091 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #C3B091 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #C3B091 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #C3B091 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.77:1 | AAA pass 4.5:1 | |
| Text on surface | 7.18:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 5.87:1 | AA pass 4.5:1 | |
| Label on accent | 7.33:1 | AAA pass 4.5:1 | |
| Primary on background | 3.35:1 | AA Large pass 3:1 | |
| Accent on background | 6.87:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.88:1 | AAA pass 4.5:1 | |
| Text on surface | 16.39:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.64:1 | AA pass 4.5:1 | |
| Label on primary | 9.03:1 | AAA pass 4.5:1 | |
| Label on accent | 13.10:1 | AAA pass 4.5:1 | |
| Primary on background | 9.03:1 | AAA pass 3:1 | |
| Accent on background | 13.10: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 | #C3B091 (Text 1) | #D4C2A3 (Text 2) | #E5D4B5 (Text 3) | #F6E6C7 (Text 4) | #FFF8D9 (Text 5) |
|---|---|---|---|---|---|
| #C3B091 | Same color | 1.21— | 1.45— | 1.72— | 1.98— |
| #D4C2A3 | 1.21— | Same color | 1.20— | 1.42— | 1.63— |
| #E5D4B5 | 1.45— | 1.20— | Same color | 1.18— | 1.37— |
| #F6E6C7 | 1.72— | 1.42— | 1.18— | Same color | 1.15— |
| #FFF8D9 | 1.98— | 1.63— | 1.37— | 1.15— | Same color |
Shades
Shades and tints (50–950)
