PreviewingGo to this paletteOpen in generator
Code
/* Shamrock — colorset.net */
:root {
--color-1: #4CBB17;
--color-2: #66CC31;
--color-3: #80DD4B;
--color-4: #9AEE65;
--color-5: #B4FF7F;
--color-bg: #F1FAEC;
--color-surface: #E8F1E3;
--color-border: #CED9C8;
--color-text: #325826;
--color-muted: #5E7059;
--color-primary: #318700;
--color-on-primary: #FFFFFF;
--color-accent: #509B00;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #071305;
--color-surface: #111D0D;
--color-border: #23331F;
--color-text: #D9EECC;
--color-muted: #798870;
--color-primary: #4CBB17;
--color-on-primary: #071305;
--color-accent: #B4FF7F;
--color-on-accent: #071305;
}
}
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 #B4FF7F | adjusted for contrast · from #4CBB17 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #4CBB17 | adjusted for contrast · from #B4FF7F |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #4CBB17 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #4CBB17 | 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.08:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 4.57:1 | AA pass 4.5:1 | |
| Label on accent | 6.03:1 | AA pass 4.5:1 | |
| Primary on background | 4.27:1 | AA Large pass 3:1 | |
| Accent on background | 3.25:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.44:1 | AAA pass 4.5:1 | |
| Text on surface | 14.15:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 7.63:1 | AAA pass 4.5:1 | |
| Label on accent | 15.89:1 | AAA pass 4.5:1 | |
| Primary on background | 7.63:1 | AAA pass 3:1 | |
| Accent on background | 15.89: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 | #4CBB17 (Text 1) | #66CC31 (Text 2) | #80DD4B (Text 3) | #9AEE65 (Text 4) | #B4FF7F (Text 5) |
|---|---|---|---|---|---|
| #4CBB17 | Same color | 1.22— | 1.47— | 1.76— | 2.08— |
| #66CC31 | 1.22— | Same color | 1.21— | 1.44— | 1.71— |
| #80DD4B | 1.47— | 1.21— | Same color | 1.20— | 1.42— |
| #9AEE65 | 1.76— | 1.44— | 1.20— | Same color | 1.19— |
| #B4FF7F | 2.08— | 1.71— | 1.42— | 1.19— | Same color |
Shades
Shades and tints (50–950)
