PreviewingGo to this paletteOpen in generator
Code
/* New Leaf — colorset.net */
:root {
--color-1: #3F7D20;
--color-2: #5B9E2C;
--color-3: #77BB41;
--color-4: #93D158;
--color-5: #AFE873;
--color-bg: #F2FAEC;
--color-surface: #E9F0E3;
--color-border: #CFD9C8;
--color-text: #335824;
--color-muted: #5F6F59;
--color-primary: #438502;
--color-on-primary: #FFFFFF;
--color-accent: #639717;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #081304;
--color-surface: #111D0D;
--color-border: #24331F;
--color-text: #C8DAB8;
--color-muted: #79876E;
--color-primary: #5B9E2C;
--color-on-primary: #081304;
--color-accent: #AFE873;
--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 #AFE873 | adjusted for contrast · from #3F7D20 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #3F7D20 | adjusted for contrast · from #AFE873 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #3F7D20 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #5B9E2C | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.67:1 | AAA pass 4.5:1 | |
| Text on surface | 7.04: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.97:1 | AA pass 4.5:1 | |
| Primary on background | 4.28:1 | AA Large pass 3:1 | |
| Accent on background | 3.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.83:1 | AAA pass 4.5:1 | |
| Text on surface | 11.76:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 5.77:1 | AA pass 4.5:1 | |
| Label on accent | 13.22:1 | AAA pass 4.5:1 | |
| Primary on background | 5.77:1 | AA pass 3:1 | |
| Accent on background | 13.22: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 | #3F7D20 (Text 1) | #5B9E2C (Text 2) | #77BB41 (Text 3) | #93D158 (Text 4) | #AFE873 (Text 5) |
|---|---|---|---|---|---|
| #3F7D20 | Same color | 1.53— | 2.15— | 2.76— | 3.51AA Large |
| #5B9E2C | 1.53— | Same color | 1.41— | 1.81— | 2.29— |
| #77BB41 | 2.15— | 1.41— | Same color | 1.28— | 1.63— |
| #93D158 | 2.76— | 1.81— | 1.28— | Same color | 1.27— |
| #AFE873 | 3.51AA Large | 2.29— | 1.63— | 1.27— | Same color |
Shades
Shades and tints (50–950)
