PreviewingGo to this paletteOpen in generator
Code
/* Sandalwood — colorset.net */
:root {
--color-1: #F7F1E7;
--color-2: #8C5C3A;
--color-3: #85B18E;
--color-4: #573B28;
--color-5: #28160B;
--color-bg: #F7F1E7;
--color-surface: #FCF9F3;
--color-border: #E0D8CB;
--color-text: #28160B;
--color-muted: #7E675A;
--color-primary: #8C5C3A;
--color-on-primary: #FFFFFF;
--color-accent: #6A9573;
--color-on-accent: #28160B;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #28160B;
--color-surface: #332115;
--color-border: #4C3528;
--color-text: #F7F1E7;
--color-muted: #948E85;
--color-primary: #956542;
--color-on-primary: #FFFFFF;
--color-accent: #85B18E;
--color-on-accent: #28160B;
}
}
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 1 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | adjusted for contrast · from #8C5C3A |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #85B18E | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.45:1 | AAA pass 4.5:1 | |
| Text on surface | 16.52:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.70:1 | AA pass 4.5:1 | |
| Label on primary | 5.66:1 | AA pass 4.5:1 | |
| Label on accent | 5.09:1 | AA pass 4.5:1 | |
| Primary on background | 5.04:1 | AA pass 3:1 | |
| Accent on background | 3.03:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.45:1 | AAA pass 4.5:1 | |
| Text on surface | 13.65:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.35:1 | AA pass 4.5:1 | |
| Label on primary | 4.98:1 | AA pass 4.5:1 | |
| Label on accent | 7.17:1 | AAA pass 4.5:1 | |
| Primary on background | 3.49:1 | AA Large pass 3:1 | |
| Accent on background | 7.17: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 | #F7F1E7 (Text 1) | #8C5C3A (Text 2) | #85B18E (Text 3) | #573B28 (Text 4) | #28160B (Text 5) |
|---|---|---|---|---|---|
| #F7F1E7 | Same color | 5.04AA | 2.15— | 9.07AAA | 15.45AAA |
| #8C5C3A | 5.04AA | Same color | 2.34— | 1.80— | 3.06AA Large |
| #85B18E | 2.15— | 2.34— | Same color | 4.21AA Large | 7.17AAA |
| #573B28 | 9.07AAA | 1.80— | 4.21AA Large | Same color | 1.70— |
| #28160B | 15.45AAA | 3.06AA Large | 7.17AAA | 1.70— | Same color |
Shades
Shades and tints (50–950)
