PreviewingGo to this paletteOpen in generator
Code
/* Herb Green — colorset.net */
:root {
--color-1: #50694A;
--color-2: #66835E;
--color-3: #7C9D72;
--color-4: #92B786;
--color-5: #A8D19A;
--color-bg: #F0FAED;
--color-surface: #E7F1E4;
--color-border: #CDD9C9;
--color-text: #3D5537;
--color-muted: #5E705A;
--color-primary: #66835E;
--color-on-primary: #000000;
--color-accent: #50694A;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0A1208;
--color-surface: #141C12;
--color-border: #273124;
--color-text: #B4CBAC;
--color-muted: #768871;
--color-primary: #66835E;
--color-on-primary: #0A1208;
--color-accent: #92B786;
--color-on-accent: #0A1208;
}
}
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 #A8D19A | adjusted for contrast · from #50694A |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #50694A | adjusted for contrast · from #A8D19A |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | from palette · color 1 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.68:1 | AAA pass 4.5:1 | |
| Text on surface | 7.09:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 4.97:1 | AA pass 4.5:1 | |
| Label on accent | 6.07:1 | AA pass 4.5:1 | |
| Primary on background | 3.94:1 | AA Large pass 3:1 | |
| Accent on background | 5.66:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.95:1 | AAA pass 4.5:1 | |
| Text on surface | 10.03:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 4.51:1 | AA pass 4.5:1 | |
| Label on accent | 8.47:1 | AAA pass 4.5:1 | |
| Primary on background | 4.51:1 | AA pass 3:1 | |
| Accent on background | 8.47: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 | #50694A (Text 1) | #66835E (Text 2) | #7C9D72 (Text 3) | #92B786 (Text 4) | #A8D19A (Text 5) |
|---|---|---|---|---|---|
| #50694A | Same color | 1.44— | 2.00— | 2.70— | 3.54AA Large |
| #66835E | 1.44— | Same color | 1.39— | 1.88— | 2.46— |
| #7C9D72 | 2.00— | 1.39— | Same color | 1.35— | 1.77— |
| #92B786 | 2.70— | 1.88— | 1.35— | Same color | 1.31— |
| #A8D19A | 3.54AA Large | 2.46— | 1.77— | 1.31— | Same color |
Shades
Shades and tints (50–950)
