PreviewingGo to this paletteOpen in generator
Code
/* Fern Light — colorset.net */
:root {
--color-1: #F3F7EC;
--color-2: #5E8C3A;
--color-3: #A65E7A;
--color-4: #D3E1C4;
--color-5: #222A1C;
--color-bg: #F3F7EC;
--color-surface: #FBFEF7;
--color-border: #DADFD0;
--color-text: #222A1C;
--color-muted: #677161;
--color-primary: #53802D;
--color-on-primary: #FFFFFF;
--color-accent: #A65E7A;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0E100C;
--color-surface: #181B15;
--color-border: #2B3027;
--color-text: #F3F7EC;
--color-muted: #888C82;
--color-primary: #53802D;
--color-on-primary: #FFFFFF;
--color-accent: #A65E7A;
--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 | from palette · color 1 | adjusted for contrast · from #222A1C |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #5E8C3A | adjusted for contrast · from #5E8C3A |
| On primary | derived | derived |
| Accent | from palette · color 3 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.65:1 | AAA pass 4.5:1 | |
| Text on surface | 14.56:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.70:1 | AA pass 4.5:1 | |
| Label on primary | 4.67:1 | AA pass 4.5:1 | |
| Label on accent | 4.66:1 | AA pass 4.5:1 | |
| Primary on background | 4.30:1 | AA Large pass 3:1 | |
| Accent on background | 4.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.60:1 | AAA pass 4.5:1 | |
| Text on surface | 16.02:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.57:1 | AA pass 4.5:1 | |
| Label on primary | 4.67:1 | AA pass 4.5:1 | |
| Label on accent | 4.66:1 | AA pass 4.5:1 | |
| Primary on background | 4.09:1 | AA Large pass 3:1 | |
| Accent on background | 4.10: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 | #F3F7EC (Text 1) | #5E8C3A (Text 2) | #A65E7A (Text 3) | #D3E1C4 (Text 4) | #222A1C (Text 5) |
|---|---|---|---|---|---|
| #F3F7EC | Same color | 3.65AA Large | 4.29AA Large | 1.26— | 13.65AAA |
| #5E8C3A | 3.65AA Large | Same color | 1.17— | 2.90— | 3.73AA Large |
| #A65E7A | 4.29AA Large | 1.17— | Same color | 3.41AA Large | 3.18AA Large |
| #D3E1C4 | 1.26— | 2.90— | 3.41AA Large | Same color | 10.83AAA |
| #222A1C | 13.65AAA | 3.73AA Large | 3.18AA Large | 10.83AAA | Same color |
Shades
Shades and tints (50–950)
