PreviewingGo to this paletteOpen in generator
Code
/* Mountain Spruce — colorset.net */
:root {
--color-1: #0A5F38;
--color-2: #0F7246;
--color-3: #2E7D53;
--color-4: #4D8C5B;
--color-5: #6FAA7E;
--color-bg: #EEFBF0;
--color-surface: #E4F2E7;
--color-border: #CADACD;
--color-text: #155B38;
--color-muted: #577160;
--color-primary: #448352;
--color-on-primary: #FFFFFF;
--color-accent: #0F7246;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #021409;
--color-surface: #0A1E13;
--color-border: #1C3425;
--color-text: #8DAD94;
--color-muted: #718976;
--color-primary: #448352;
--color-on-primary: #FFFFFF;
--color-accent: #6FAA7E;
--color-on-accent: #021409;
}
}
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 #6FAA7E | adjusted for contrast · from #0A5F38 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #0A5F38 | adjusted for contrast · from #6FAA7E |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #2E7D53 | adjusted for contrast · from #2E7D53 |
| On primary | derived | derived |
| Accent | from palette · color 2 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.62:1 | AAA pass 4.5:1 | |
| Text on surface | 7.02:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 4.55:1 | AA pass 4.5:1 | |
| Label on accent | 5.97:1 | AA pass 4.5:1 | |
| Primary on background | 4.27:1 | AA Large pass 3:1 | |
| Accent on background | 5.60:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.72:1 | AAA pass 4.5:1 | |
| Text on surface | 7.07:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 4.55:1 | AA pass 4.5:1 | |
| Label on accent | 6.98:1 | AA pass 4.5:1 | |
| Primary on background | 4.17:1 | AA Large pass 3:1 | |
| Accent on background | 6.98:1 | AA 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 | #0A5F38 (Text 1) | #0F7246 (Text 2) | #2E7D53 (Text 3) | #4D8C5B (Text 4) | #6FAA7E (Text 5) |
|---|---|---|---|---|---|
| #0A5F38 | Same color | 1.30— | 1.54— | 1.93— | 2.85— |
| #0F7246 | 1.30— | Same color | 1.19— | 1.48— | 2.20— |
| #2E7D53 | 1.54— | 1.19— | Same color | 1.25— | 1.85— |
| #4D8C5B | 1.93— | 1.48— | 1.25— | Same color | 1.48— |
| #6FAA7E | 2.85— | 2.20— | 1.85— | 1.48— | Same color |
Shades
Shades and tints (50–950)
