PreviewingGo to this paletteOpen in generator
Code
/* Fig and Walnut — colorset.net */
:root {
--color-1: #221A1D;
--color-2: #A8577A;
--color-3: #D8A35A;
--color-4: #42353A;
--color-5: #F2E8E2;
--color-bg: #F2E8E2;
--color-surface: #F6F0ED;
--color-border: #DCCFC7;
--color-text: #221A1D;
--color-muted: #6F6568;
--color-primary: #A8577A;
--color-on-primary: #FFFFFF;
--color-accent: #9E6C1D;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #221A1D;
--color-surface: #2D2528;
--color-border: #45393D;
--color-text: #F2E8E2;
--color-muted: #968D87;
--color-primary: #A8577A;
--color-on-primary: #FFFFFF;
--color-accent: #D8A35A;
--color-on-accent: #221A1D;
}
}
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 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #A8577A | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.12:1 | AAA pass 4.5:1 | |
| Text on surface | 15.08:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.66:1 | AA pass 4.5:1 | |
| Label on primary | 4.87:1 | AA pass 4.5:1 | |
| Label on accent | 4.55:1 | AA pass 4.5:1 | |
| Primary on background | 4.04:1 | AA Large pass 3:1 | |
| Accent on background | 3.77:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.12:1 | AAA pass 4.5:1 | |
| Text on surface | 12.38:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.23:1 | AA pass 4.5:1 | |
| Label on primary | 4.87:1 | AA pass 4.5:1 | |
| Label on accent | 7.54:1 | AAA pass 4.5:1 | |
| Primary on background | 3.49:1 | AA Large pass 3:1 | |
| Accent on background | 7.54: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 | #221A1D (Text 1) | #A8577A (Text 2) | #D8A35A (Text 3) | #42353A (Text 4) | #F2E8E2 (Text 5) |
|---|---|---|---|---|---|
| #221A1D | Same color | 3.49AA Large | 7.54AAA | 1.46— | 14.12AAA |
| #A8577A | 3.49AA Large | Same color | 2.16— | 2.39— | 4.04AA Large |
| #D8A35A | 7.54AAA | 2.16— | Same color | 5.16AA | 1.87— |
| #42353A | 1.46— | 2.39— | 5.16AA | Same color | 9.67AAA |
| #F2E8E2 | 14.12AAA | 4.04AA Large | 1.87— | 9.67AAA | Same color |
Shades
Shades and tints (50–950)
