PreviewingGo to this paletteOpen in generator
Code
/* Lucky Shamrock — colorset.net */
:root {
--color-1: #228B22;
--color-2: #32CD32;
--color-3: #50C878;
--color-4: #66FF66;
--color-5: #1F7A1F;
--color-bg: #EFFBEE;
--color-surface: #E6F1E5;
--color-border: #CCD9CB;
--color-text: #2C592A;
--color-muted: #5C705B;
--color-primary: #008808;
--color-on-primary: #FFFFFF;
--color-accent: #005003;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #061305;
--color-surface: #0F1E0E;
--color-border: #223320;
--color-text: #C7E3C5;
--color-muted: #748873;
--color-primary: #32CD32;
--color-on-primary: #061305;
--color-accent: #1F7A1F;
--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 #66FF66 | adjusted for contrast · from #1F7A1F |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #1F7A1F | adjusted for contrast · from #50C878 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #228B22 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #1F7A1F | 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.02:1 | AA pass 4.5:1 | |
| Label on primary | 4.64:1 | AA pass 4.5:1 | |
| Label on accent | 9.77:1 | AAA pass 4.5:1 | |
| Primary on background | 4.35:1 | AA Large pass 3:1 | |
| Accent on background | 9.17:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.80:1 | AAA pass 4.5:1 | |
| Text on surface | 12.56:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 8.99:1 | AAA pass 4.5:1 | |
| Label on accent | 5.44:1 | AA pass 4.5:1 | |
| Primary on background | 8.99:1 | AAA pass 3:1 | |
| Accent on background | 3.50: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 | #228B22 (Text 1) | #32CD32 (Text 2) | #50C878 (Text 3) | #66FF66 (Text 4) | #1F7A1F (Text 5) |
|---|---|---|---|---|---|
| #228B22 | Same color | 2.07— | 2.06— | 3.36AA Large | 1.24— |
| #32CD32 | 2.07— | Same color | 1.00— | 1.62— | 2.57— |
| #50C878 | 2.06— | 1.00— | Same color | 1.63— | 2.56— |
| #66FF66 | 3.36AA Large | 1.62— | 1.63— | Same color | 4.16AA Large |
| #1F7A1F | 1.24— | 2.57— | 2.56— | 4.16AA Large | Same color |
Shades
Shades and tints (50–950)
