PreviewingGo to this paletteOpen in generator
Code
/* Khaki Tan — colorset.net */
:root {
--color-1: #C3B091;
--color-2: #D4C5A9;
--color-3: #E3D9C1;
--color-4: #F0E68C;
--color-5: #F5DEB3;
--color-bg: #F9F8E8;
--color-surface: #F0EEDF;
--color-border: #D8D6C3;
--color-text: #5C4C30;
--color-muted: #776851;
--color-primary: #827814;
--color-on-primary: #FFFFFF;
--color-accent: #978567;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #140F06;
--color-surface: #1E190F;
--color-border: #342D20;
--color-text: #E8E4BF;
--color-muted: #888569;
--color-primary: #F0E68C;
--color-on-primary: #140F06;
--color-accent: #C3B091;
--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 | adjusted for contrast · from #F5DEB3 | adjusted for contrast · from #C3B091 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #C3B091 | adjusted for contrast · from #F5DEB3 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #C3B091 | from palette · color 4 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #C3B091 | from palette · color 1 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.75:1 | AAA pass 4.5:1 | |
| Text on surface | 7.11:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 4.52:1 | AA pass 4.5:1 | |
| Label on accent | 5.87:1 | AA pass 4.5:1 | |
| Primary on background | 4.22:1 | AA Large pass 3:1 | |
| Accent on background | 3.34:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.79:1 | AAA pass 4.5:1 | |
| Text on surface | 13.55:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.09:1 | AA pass 4.5:1 | |
| Label on primary | 14.90:1 | AAA pass 4.5:1 | |
| Label on accent | 9.03:1 | AAA pass 4.5:1 | |
| Primary on background | 14.90:1 | AAA pass 3:1 | |
| Accent on background | 9.03: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) | #D4C5A9 (Text 2) | #E3D9C1 (Text 3) | #F0E68C (Text 4) | #F5DEB3 (Text 5) |
|---|---|---|---|---|---|
| #C3B091 | Same color | 1.24— | 1.51— | 1.65— | 1.61— |
| #D4C5A9 | 1.24— | Same color | 1.21— | 1.33— | 1.29— |
| #E3D9C1 | 1.51— | 1.21— | Same color | 1.10— | 1.07— |
| #F0E68C | 1.65— | 1.33— | 1.10— | Same color | 1.03— |
| #F5DEB3 | 1.61— | 1.29— | 1.07— | 1.03— | Same color |
Shades
Shades and tints (50–950)
