PreviewingGo to this paletteOpen in generator
Code
/* Oat Husk — colorset.net */
:root {
--color-1: #F5DEB3;
--color-2: #DEB887;
--color-3: #D2B48C;
--color-4: #BC9A6A;
--color-5: #8B7D6B;
--color-bg: #FDF6E9;
--color-surface: #F4EDE0;
--color-border: #DCD4C4;
--color-text: #5A4D3C;
--color-muted: #766957;
--color-primary: #A38252;
--color-on-primary: #000000;
--color-accent: #6C522B;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #130F09;
--color-surface: #1D1913;
--color-border: #332D24;
--color-text: #F1DFBC;
--color-muted: #8F8168;
--color-primary: #BC9A6A;
--color-on-primary: #130F09;
--color-accent: #DEB887;
--color-on-accent: #130F09;
}
}
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 #8B7D6B |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8B7D6B | adjusted for contrast · from #F5DEB3 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #8B7D6B | from palette · color 4 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #8B7D6B | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.63:1 | AAA pass 4.5:1 | |
| Text on surface | 7.04:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 5.87:1 | AA pass 4.5:1 | |
| Label on accent | 7.29:1 | AAA pass 4.5:1 | |
| Primary on background | 3.33:1 | AA Large pass 3:1 | |
| Accent on background | 6.78:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.57:1 | AAA pass 4.5:1 | |
| Text on surface | 13.34:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 7.24:1 | AAA pass 4.5:1 | |
| Label on accent | 10.28:1 | AAA pass 4.5:1 | |
| Primary on background | 7.24:1 | AAA pass 3:1 | |
| Accent on background | 10.28: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 | #F5DEB3 (Text 1) | #DEB887 (Text 2) | #D2B48C (Text 3) | #BC9A6A (Text 4) | #8B7D6B (Text 5) |
|---|---|---|---|---|---|
| #F5DEB3 | Same color | 1.41— | 1.50— | 2.01— | 3.05AA Large |
| #DEB887 | 1.41— | Same color | 1.06— | 1.42— | 2.16— |
| #D2B48C | 1.50— | 1.06— | Same color | 1.34— | 2.03— |
| #BC9A6A | 2.01— | 1.42— | 1.34— | Same color | 1.52— |
| #8B7D6B | 3.05AA Large | 2.16— | 2.03— | 1.52— | Same color |
Shades
Shades and tints (50–950)
