PreviewingGo to this paletteOpen in generator
Code
/* Natural Linen — colorset.net */
:root {
--color-1: #E9DCC9;
--color-2: #EEE4DA;
--color-3: #F0EAD6;
--color-4: #FAF0E6;
--color-5: #FFF8DC;
--color-bg: #FFF8DC;
--color-surface: #F6EFD3;
--color-border: #DDD6B9;
--color-text: #594E3E;
--color-muted: #756A59;
--color-primary: #938776;
--color-on-primary: #000000;
--color-accent: #605649;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120F0A;
--color-surface: #1C1913;
--color-border: #332D25;
--color-text: #FFF8DC;
--color-muted: #928C72;
--color-primary: #E9DCC9;
--color-on-primary: #120F0A;
--color-accent: #B1A697;
--color-on-accent: #120F0A;
}
}
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 #E9DCC9 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #E9DCC9 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #E9DCC9 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #E9DCC9 | adjusted for contrast · from #E9DCC9 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.63:1 | AAA pass 4.5:1 | |
| Text on surface | 7.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 5.97:1 | AA pass 4.5:1 | |
| Label on accent | 7.18:1 | AAA pass 4.5:1 | |
| Primary on background | 3.30:1 | AA Large pass 3:1 | |
| Accent on background | 6.74:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.95:1 | AAA pass 4.5:1 | |
| Text on surface | 16.46:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.66:1 | AA pass 4.5:1 | |
| Label on primary | 14.15:1 | AAA pass 4.5:1 | |
| Label on accent | 7.98:1 | AAA pass 4.5:1 | |
| Primary on background | 14.15:1 | AAA pass 3:1 | |
| Accent on background | 7.98: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 | #E9DCC9 (Text 1) | #EEE4DA (Text 2) | #F0EAD6 (Text 3) | #FAF0E6 (Text 4) | #FFF8DC (Text 5) |
|---|---|---|---|---|---|
| #E9DCC9 | Same color | 1.08— | 1.12— | 1.20— | 1.27— |
| #EEE4DA | 1.08— | Same color | 1.04— | 1.12— | 1.18— |
| #F0EAD6 | 1.12— | 1.04— | Same color | 1.07— | 1.13— |
| #FAF0E6 | 1.20— | 1.12— | 1.07— | Same color | 1.06— |
| #FFF8DC | 1.27— | 1.18— | 1.13— | 1.06— | Same color |
Shades
Shades and tints (50–950)
