PreviewingGo to this paletteOpen in generator
Code
/* Four Leaf Clover — colorset.net */
:root {
--color-1: #008751;
--color-2: #228B22;
--color-3: #32CD32;
--color-4: #3EB489;
--color-5: #66BB6A;
--color-bg: #EFFBEE;
--color-surface: #E6F1E5;
--color-border: #CCD9CA;
--color-text: #0F5836;
--color-muted: #587262;
--color-primary: #008808;
--color-on-primary: #FFFFFF;
--color-accent: #008751;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #021409;
--color-surface: #0A1E13;
--color-border: #1C3426;
--color-text: #9AB497;
--color-muted: #768A74;
--color-primary: #32CD32;
--color-on-primary: #021409;
--color-accent: #008751;
--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 | adjusted for contrast · from #66BB6A | adjusted for contrast · from #008751 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #008751 | adjusted for contrast · from #3EB489 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #228B22 | from palette · color 3 |
| On primary | derived | derived |
| Accent | from palette · color 1 | from palette · color 1 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.98:1 | AAA pass 4.5:1 | |
| Text on surface | 7.32:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.93:1 | AA pass 4.5:1 | |
| Label on primary | 4.64:1 | AA pass 4.5:1 | |
| Label on accent | 4.58:1 | AA pass 4.5:1 | |
| Primary on background | 4.35:1 | AA Large pass 3:1 | |
| Accent on background | 4.30:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.45:1 | AAA pass 4.5:1 | |
| Text on surface | 7.74:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.11:1 | AA pass 4.5:1 | |
| Label on primary | 8.96:1 | AAA pass 4.5:1 | |
| Label on accent | 4.58:1 | AA pass 4.5:1 | |
| Primary on background | 8.96:1 | AAA pass 3:1 | |
| Accent on background | 4.14: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 | #008751 (Text 1) | #228B22 (Text 2) | #32CD32 (Text 3) | #3EB489 (Text 4) | #66BB6A (Text 5) |
|---|---|---|---|---|---|
| #008751 | Same color | 1.04— | 2.16— | 1.77— | 1.94— |
| #228B22 | 1.04— | Same color | 2.07— | 1.69— | 1.86— |
| #32CD32 | 2.16— | 2.07— | Same color | 1.22— | 1.12— |
| #3EB489 | 1.77— | 1.69— | 1.22— | Same color | 1.10— |
| #66BB6A | 1.94— | 1.86— | 1.12— | 1.10— | Same color |
Shades
Shades and tints (50–950)
