PreviewingGo to this paletteOpen in generator
Code
/* Forest Green — colorset.net */
:root {
--color-1: #2D5016;
--color-2: #3F6B1B;
--color-3: #5D8233;
--color-4: #8DB255;
--color-5: #B8D982;
--color-bg: #F3F9EB;
--color-surface: #EAF0E2;
--color-border: #D1D8C7;
--color-text: #2E501A;
--color-muted: #617059;
--color-primary: #5A7F30;
--color-on-primary: #FFFFFF;
--color-accent: #75933D;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #081304;
--color-surface: #121D0C;
--color-border: #25321E;
--color-text: #C3D1AE;
--color-muted: #7D886E;
--color-primary: #5A7F30;
--color-on-primary: #FFFFFF;
--color-accent: #B8D982;
--color-on-accent: #081304;
}
}
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 #B8D982 | adjusted for contrast · from #2D5016 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #2D5016 | adjusted for contrast · from #B8D982 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #5D8233 | adjusted for contrast · from #5D8233 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #5D8233 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.58:1 | AAA pass 4.5:1 | |
| Text on surface | 7.93:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.93:1 | AA pass 4.5:1 | |
| Label on primary | 4.65:1 | AA pass 4.5:1 | |
| Label on accent | 6.00:1 | AA pass 4.5:1 | |
| Primary on background | 4.33:1 | AA Large pass 3:1 | |
| Accent on background | 3.26:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.81:1 | AAA pass 4.5:1 | |
| Text on surface | 10.82:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 4.65:1 | AA pass 4.5:1 | |
| Label on accent | 12.02:1 | AAA pass 4.5:1 | |
| Primary on background | 4.08:1 | AA Large pass 3:1 | |
| Accent on background | 12.02: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 | #2D5016 (Text 1) | #3F6B1B (Text 2) | #5D8233 (Text 3) | #8DB255 (Text 4) | #B8D982 (Text 5) |
|---|---|---|---|---|---|
| #2D5016 | Same color | 1.47— | 2.07— | 3.80AA Large | 5.85AA |
| #3F6B1B | 1.47— | Same color | 1.41— | 2.59— | 3.99AA Large |
| #5D8233 | 2.07— | 1.41— | Same color | 1.83— | 2.82— |
| #8DB255 | 3.80AA Large | 2.59— | 1.83— | Same color | 1.54— |
| #B8D982 | 5.85AA | 3.99AA Large | 2.82— | 1.54— | Same color |
Shades
Shades and tints (50–950)
