PreviewingGo to this paletteOpen in generator
Code
/* Fresh Basil — colorset.net */
:root {
--color-1: #4A7729;
--color-2: #5E8C31;
--color-3: #74A04A;
--color-4: #88B04B;
--color-5: #9DC183;
--color-bg: #F2FAEC;
--color-surface: #E8F1E3;
--color-border: #CFD9C8;
--color-text: #375721;
--color-muted: #606F58;
--color-primary: #558327;
--color-on-primary: #FFFFFF;
--color-accent: #2D4F00;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #091304;
--color-surface: #131D0C;
--color-border: #25321E;
--color-text: #A8BB9B;
--color-muted: #79886F;
--color-primary: #558327;
--color-on-primary: #FFFFFF;
--color-accent: #88B04B;
--color-on-accent: #091304;
}
}
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 #9DC183 | adjusted for contrast · from #4A7729 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #4A7729 | adjusted for contrast · from #9DC183 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #5E8C31 | adjusted for contrast · from #5E8C31 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #4A7729 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.72:1 | AAA pass 4.5:1 | |
| Text on surface | 7.11:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 4.50:1 | AA pass 4.5:1 | |
| Label on accent | 9.42:1 | AAA pass 4.5:1 | |
| Primary on background | 4.22:1 | AA Large pass 3:1 | |
| Accent on background | 8.82:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.26:1 | AAA pass 4.5:1 | |
| Text on surface | 8.48:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 4.50:1 | AA pass 4.5:1 | |
| Label on accent | 7.55:1 | AAA pass 4.5:1 | |
| Primary on background | 4.21:1 | AA Large pass 3:1 | |
| Accent on background | 7.55: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 | #4A7729 (Text 1) | #5E8C31 (Text 2) | #74A04A (Text 3) | #88B04B (Text 4) | #9DC183 (Text 5) |
|---|---|---|---|---|---|
| #4A7729 | Same color | 1.33— | 1.73— | 2.11— | 2.62— |
| #5E8C31 | 1.33— | Same color | 1.30— | 1.59— | 1.97— |
| #74A04A | 1.73— | 1.30— | Same color | 1.22— | 1.51— |
| #88B04B | 2.11— | 1.59— | 1.22— | Same color | 1.24— |
| #9DC183 | 2.62— | 1.97— | 1.51— | 1.24— | Same color |
Shades
Shades and tints (50–950)
