PreviewingGo to this paletteOpen in generator
Code
/* Fern Green — colorset.net */
:root {
--color-1: #4F7942;
--color-2: #689060;
--color-3: #81A77E;
--color-4: #9ABE9C;
--color-5: #B3D5BA;
--color-bg: #F0FAF2;
--color-surface: #E6F1E8;
--color-border: #CCD9CE;
--color-text: #305623;
--color-muted: #60715B;
--color-primary: #4F7942;
--color-on-primary: #FFFFFF;
--color-accent: #709077;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #071305;
--color-surface: #111D0D;
--color-border: #24331F;
--color-text: #B3D5BA;
--color-muted: #728A77;
--color-primary: #4F7942;
--color-on-primary: #FFFFFF;
--color-accent: #9ABE9C;
--color-on-accent: #071305;
}
}
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 #B3D5BA | adjusted for contrast · from #4F7942 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #4F7942 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 1 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #689060 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.92:1 | AAA pass 4.5:1 | |
| Text on surface | 7.30:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.90:1 | AA pass 4.5:1 | |
| Label on primary | 5.07:1 | AA pass 4.5:1 | |
| Label on accent | 5.94:1 | AA pass 4.5:1 | |
| Primary on background | 4.74:1 | AA pass 3:1 | |
| Accent on background | 3.31:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.90:1 | AAA pass 4.5:1 | |
| Text on surface | 10.90:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.09:1 | AA pass 4.5:1 | |
| Label on primary | 5.07:1 | AA pass 4.5:1 | |
| Label on accent | 9.25:1 | AAA pass 4.5:1 | |
| Primary on background | 3.75:1 | AA Large pass 3:1 | |
| Accent on background | 9.25: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 | #4F7942 (Text 1) | #689060 (Text 2) | #81A77E (Text 3) | #9ABE9C (Text 4) | #B3D5BA (Text 5) |
|---|---|---|---|---|---|
| #4F7942 | Same color | 1.39— | 1.87— | 2.46— | 3.17AA Large |
| #689060 | 1.39— | Same color | 1.35— | 1.78— | 2.29— |
| #81A77E | 1.87— | 1.35— | Same color | 1.32— | 1.69— |
| #9ABE9C | 2.46— | 1.78— | 1.32— | Same color | 1.29— |
| #B3D5BA | 3.17AA Large | 2.29— | 1.69— | 1.29— | Same color |
Shades
Shades and tints (50–950)
