PreviewingGo to this paletteOpen in generator
Code
/* Spruce Forest — colorset.net */
:root {
--color-1: #0D5302;
--color-2: #1B5E20;
--color-3: #2E7D32;
--color-4: #388E3C;
--color-5: #4CAF50;
--color-bg: #EFFBEF;
--color-surface: #E6F1E5;
--color-border: #CBD9CB;
--color-text: #254F1F;
--color-muted: #5D705A;
--color-primary: #2E8533;
--color-on-primary: #FFFFFF;
--color-accent: #379C3D;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #061305;
--color-surface: #101D0E;
--color-border: #223320;
--color-text: #93AE92;
--color-muted: #728772;
--color-primary: #2E8533;
--color-on-primary: #FFFFFF;
--color-accent: #4CAF50;
--color-on-accent: #061305;
}
}
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 #4CAF50 | adjusted for contrast · from #0D5302 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #0D5302 | adjusted for contrast · from #4CAF50 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #2E7D32 | adjusted for contrast · from #2E7D32 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #388E3C | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.89:1 | AAA pass 4.5:1 | |
| Text on surface | 8.15:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 4.65:1 | AA pass 4.5:1 | |
| Label on accent | 5.99:1 | AA pass 4.5:1 | |
| Primary on background | 4.36:1 | AA Large pass 3:1 | |
| Accent on background | 3.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.90:1 | AAA pass 4.5:1 | |
| Text on surface | 7.23:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.92:1 | AA pass 4.5:1 | |
| Label on primary | 4.65:1 | AA pass 4.5:1 | |
| Label on accent | 6.85:1 | AA pass 4.5:1 | |
| Primary on background | 4.10:1 | AA Large pass 3:1 | |
| Accent on background | 6.85: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 | #0D5302 (Text 1) | #1B5E20 (Text 2) | #2E7D32 (Text 3) | #388E3C (Text 4) | #4CAF50 (Text 5) |
|---|---|---|---|---|---|
| #0D5302 | Same color | 1.18— | 1.82— | 2.26— | 3.35AA Large |
| #1B5E20 | 1.18— | Same color | 1.53— | 1.91— | 2.83— |
| #2E7D32 | 1.82— | 1.53— | Same color | 1.25— | 1.84— |
| #388E3C | 2.26— | 1.91— | 1.25— | Same color | 1.48— |
| #4CAF50 | 3.35AA Large | 2.83— | 1.84— | 1.48— | Same color |
Shades
Shades and tints (50–950)
