PreviewingGo to this paletteOpen in generator
Code
/* Spruce Shadow — colorset.net */
:root {
--color-1: #0D2818;
--color-2: #1A4032;
--color-3: #27584C;
--color-4: #347066;
--color-5: #418880;
--color-bg: #E9FBF9;
--color-surface: #E0F2EF;
--color-border: #C4DBD7;
--color-text: #0D2818;
--color-muted: #587160;
--color-primary: #418880;
--color-on-primary: #000000;
--color-accent: #1A4032;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0D2818;
--color-surface: #183323;
--color-border: #314939;
--color-text: #96C5BF;
--color-muted: #789B96;
--color-primary: #418880;
--color-on-primary: #000000;
--color-accent: #80BBB3;
--color-on-accent: #0D2818;
}
}
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 #418880 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #418880 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #418880 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.72:1 | AAA pass 4.5:1 | |
| Text on surface | 13.58:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 5.06:1 | AA pass 4.5:1 | |
| Label on accent | 11.52:1 | AAA pass 4.5:1 | |
| Primary on background | 3.88:1 | AA Large pass 3:1 | |
| Accent on background | 10.77:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.27:1 | AAA pass 4.5:1 | |
| Text on surface | 7.18:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.19:1 | AA pass 4.5:1 | |
| Label on primary | 5.06:1 | AA pass 4.5:1 | |
| Label on accent | 7.26:1 | AAA pass 4.5:1 | |
| Primary on background | 3.79:1 | AA Large pass 3:1 | |
| Accent on background | 7.26: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 | #0D2818 (Text 1) | #1A4032 (Text 2) | #27584C (Text 3) | #347066 (Text 4) | #418880 (Text 5) |
|---|---|---|---|---|---|
| #0D2818 | Same color | 1.37— | 1.94— | 2.74— | 3.79AA Large |
| #1A4032 | 1.37— | Same color | 1.42— | 2.00— | 2.77— |
| #27584C | 1.94— | 1.42— | Same color | 1.41— | 1.96— |
| #347066 | 2.74— | 2.00— | 1.41— | Same color | 1.38— |
| #418880 | 3.79AA Large | 2.77— | 1.96— | 1.38— | Same color |
Shades
Shades and tints (50–950)
