PreviewingGo to this paletteOpen in generator
Code
/* Spruce Dark — colorset.net */
:root {
--color-1: #0A3D2B;
--color-2: #15523B;
--color-3: #20674B;
--color-4: #2B7C5B;
--color-5: #36916B;
--color-bg: #ECFBF3;
--color-surface: #E2F2E9;
--color-border: #C7DAD0;
--color-text: #0A3D2B;
--color-muted: #557265;
--color-primary: #278560;
--color-on-primary: #FFFFFF;
--color-accent: #15523B;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #05130D;
--color-surface: #0E1D16;
--color-border: #1F332A;
--color-text: #89AF9C;
--color-muted: #6E8B7C;
--color-primary: #278560;
--color-on-primary: #FFFFFF;
--color-accent: #406F5B;
--color-on-accent: #FFFFFF;
}
}
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 #36916B | adjusted for contrast · from #0A3D2B |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #36916B |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #2B7C5B | adjusted for contrast · from #2B7C5B |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #2B7C5B |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.46:1 | AAA pass 4.5:1 | |
| Text on surface | 10.56:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 4.56:1 | AA pass 4.5:1 | |
| Label on accent | 9.12:1 | AAA pass 4.5:1 | |
| Primary on background | 4.26:1 | AA Large pass 3:1 | |
| Accent on background | 8.54:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.85:1 | AAA pass 4.5:1 | |
| Text on surface | 7.19:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.11:1 | AA pass 4.5:1 | |
| Label on primary | 4.56:1 | AA pass 4.5:1 | |
| Label on accent | 5.76:1 | AA pass 4.5:1 | |
| Primary on background | 4.17:1 | AA Large pass 3:1 | |
| Accent on background | 3.30:1 | AA Large 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 | #0A3D2B (Text 1) | #15523B (Text 2) | #20674B (Text 3) | #2B7C5B (Text 4) | #36916B (Text 5) |
|---|---|---|---|---|---|
| #0A3D2B | Same color | 1.34— | 1.81— | 2.41— | 3.16AA Large |
| #15523B | 1.34— | Same color | 1.35— | 1.80— | 2.35— |
| #20674B | 1.81— | 1.35— | Same color | 1.33— | 1.75— |
| #2B7C5B | 2.41— | 1.80— | 1.33— | Same color | 1.31— |
| #36916B | 3.16AA Large | 2.35— | 1.75— | 1.31— | Same color |
Shades
Shades and tints (50–950)
