PreviewingGo to this paletteOpen in generator
Code
/* Garden Fern — colorset.net */
:root {
--color-1: #2E7D32;
--color-2: #43A047;
--color-3: #66BB6A;
--color-4: #81C784;
--color-5: #A5D6A7;
--color-bg: #EFFBEF;
--color-surface: #E5F1E6;
--color-border: #CBDACB;
--color-text: #29582A;
--color-muted: #5B6F5A;
--color-primary: #26872E;
--color-on-primary: #FFFFFF;
--color-accent: #548156;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #061306;
--color-surface: #0F1E0F;
--color-border: #213321;
--color-text: #B3D0B4;
--color-muted: #728873;
--color-primary: #43A047;
--color-on-primary: #061306;
--color-accent: #81C784;
--color-on-accent: #061306;
}
}
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 #A5D6A7 | adjusted for contrast · from #2E7D32 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #2E7D32 | adjusted for contrast · from #A5D6A7 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #2E7D32 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #2E7D32 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.81:1 | AAA pass 4.5:1 | |
| Text on surface | 7.15:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.10:1 | AA pass 4.5:1 | |
| Label on primary | 4.58:1 | AA pass 4.5:1 | |
| Label on accent | 4.51:1 | AA pass 4.5:1 | |
| Primary on background | 4.30:1 | AA Large pass 3:1 | |
| Accent on background | 4.24:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.42:1 | AAA pass 4.5:1 | |
| Text on surface | 10.39:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 5.76:1 | AA pass 4.5:1 | |
| Label on accent | 9.46:1 | AAA pass 4.5:1 | |
| Primary on background | 5.76:1 | AA pass 3:1 | |
| Accent on background | 9.46: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 | #2E7D32 (Text 1) | #43A047 (Text 2) | #66BB6A (Text 3) | #81C784 (Text 4) | #A5D6A7 (Text 5) |
|---|---|---|---|---|---|
| #2E7D32 | Same color | 1.55— | 2.17— | 2.55— | 3.12AA Large |
| #43A047 | 1.55— | Same color | 1.40— | 1.64— | 2.01— |
| #66BB6A | 2.17— | 1.40— | Same color | 1.18— | 1.44— |
| #81C784 | 2.55— | 1.64— | 1.18— | Same color | 1.22— |
| #A5D6A7 | 3.12AA Large | 2.01— | 1.44— | 1.22— | Same color |
Shades
Shades and tints (50–950)
