PreviewingGo to this paletteOpen in generator
Code
/* Khaki Sand — colorset.net */
:root {
--color-1: #C3A87A;
--color-2: #D1B98E;
--color-3: #DFCAA2;
--color-4: #EDDBB6;
--color-5: #FBECCA;
--color-bg: #FBECCA;
--color-surface: #FDF4E0;
--color-border: #E0D4B7;
--color-text: #624A1D;
--color-muted: #766850;
--color-primary: #9D8356;
--color-on-primary: #000000;
--color-accent: #67532E;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #160E03;
--color-surface: #20180A;
--color-border: #362C1B;
--color-text: #FBECCA;
--color-muted: #91856B;
--color-primary: #C3A87A;
--color-on-primary: #160E03;
--color-accent: #DFCAA2;
--color-on-accent: #160E03;
}
}
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 #C3A87A |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #C3A87A | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #C3A87A | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #C3A87A | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.13:1 | AAA pass 4.5:1 | |
| Text on surface | 7.63:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.64:1 | AA pass 4.5:1 | |
| Label on primary | 5.81:1 | AA pass 4.5:1 | |
| Label on accent | 7.36:1 | AAA pass 4.5:1 | |
| Primary on background | 3.09:1 | AA Large pass 3:1 | |
| Accent on background | 6.29:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.35:1 | AAA pass 4.5:1 | |
| Text on surface | 15.01:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.25:1 | AA pass 4.5:1 | |
| Label on primary | 8.38:1 | AAA pass 4.5:1 | |
| Label on accent | 11.93:1 | AAA pass 4.5:1 | |
| Primary on background | 8.38:1 | AAA pass 3:1 | |
| Accent on background | 11.93: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 | #C3A87A (Text 1) | #D1B98E (Text 2) | #DFCAA2 (Text 3) | #EDDBB6 (Text 4) | #FBECCA (Text 5) |
|---|---|---|---|---|---|
| #C3A87A | Same color | 1.20— | 1.42— | 1.67— | 1.95— |
| #D1B98E | 1.20— | Same color | 1.19— | 1.40— | 1.63— |
| #DFCAA2 | 1.42— | 1.19— | Same color | 1.18— | 1.37— |
| #EDDBB6 | 1.67— | 1.40— | 1.18— | Same color | 1.17— |
| #FBECCA | 1.95— | 1.63— | 1.37— | 1.17— | Same color |
Shades
Shades and tints (50–950)
