PreviewingGo to this paletteOpen in generator
Code
/* Forest Dark — colorset.net */
:root {
--color-1: #2F4F2F;
--color-2: #228B22;
--color-3: #6B8E23;
--color-4: #9ACD32;
--color-5: #8B4513;
--color-bg: #F3FAEB;
--color-surface: #EAF0E2;
--color-border: #D0D8C7;
--color-text: #2F4F2F;
--color-muted: #5D715D;
--color-primary: #1D881E;
--color-on-primary: #FFFFFF;
--color-accent: #8B4513;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #081208;
--color-surface: #121D12;
--color-border: #243224;
--color-text: #B0BF9D;
--color-muted: #7C876D;
--color-primary: #1D881E;
--color-on-primary: #FFFFFF;
--color-accent: #9B5325;
--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 #9ACD32 | adjusted for contrast · from #2F4F2F |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #9ACD32 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #228B22 | adjusted for contrast · from #228B22 |
| On primary | derived | derived |
| Accent | from palette · color 5 | adjusted for contrast · from #8B4513 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.63:1 | AAA pass 4.5:1 | |
| Text on surface | 7.92:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 4.57:1 | AA pass 4.5:1 | |
| Label on accent | 7.10:1 | AAA pass 4.5:1 | |
| Primary on background | 4.29:1 | AA Large pass 3:1 | |
| Accent on background | 6.65:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.80:1 | AAA pass 4.5:1 | |
| Text on surface | 8.91:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 4.57:1 | AA pass 4.5:1 | |
| Label on accent | 5.74:1 | AA pass 4.5:1 | |
| Primary on background | 4.17:1 | AA Large pass 3:1 | |
| Accent on background | 3.32: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 | #2F4F2F (Text 1) | #228B22 (Text 2) | #6B8E23 (Text 3) | #9ACD32 (Text 4) | #8B4513 (Text 5) |
|---|---|---|---|---|---|
| #2F4F2F | Same color | 2.10— | 2.42— | 4.89AA | 1.30— |
| #228B22 | 2.10— | Same color | 1.15— | 2.33— | 1.62— |
| #6B8E23 | 2.42— | 1.15— | Same color | 2.02— | 1.87— |
| #9ACD32 | 4.89AA | 2.33— | 2.02— | Same color | 3.77AA Large |
| #8B4513 | 1.30— | 1.62— | 1.87— | 3.77AA Large | Same color |
Shades
Shades and tints (50–950)
