PreviewingGo to this paletteOpen in generator
Code
/* Basil Green — colorset.net */
:root {
--color-1: #4A7C59;
--color-2: #5E956D;
--color-3: #72AE81;
--color-4: #86C795;
--color-5: #9AE0A9;
--color-bg: #EEFBF0;
--color-surface: #E5F2E7;
--color-border: #CADACC;
--color-text: #275938;
--color-muted: #59715F;
--color-primary: #5E956D;
--color-on-primary: #000000;
--color-accent: #408452;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #051309;
--color-surface: #0E1E12;
--color-border: #203325;
--color-text: #B6D6BC;
--color-muted: #708874;
--color-primary: #5E956D;
--color-on-primary: #051309;
--color-accent: #9AE0A9;
--color-on-accent: #051309;
}
}
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 #9AE0A9 | adjusted for contrast · from #4A7C59 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #4A7C59 | adjusted for contrast · from #9AE0A9 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #4A7C59 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.66:1 | AAA pass 4.5:1 | |
| Text on surface | 7.07:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 6.00:1 | AA pass 4.5:1 | |
| Label on accent | 4.53:1 | AA pass 4.5:1 | |
| Primary on background | 3.28:1 | AA Large pass 3:1 | |
| Accent on background | 4.24:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.08:1 | AAA pass 4.5:1 | |
| Text on surface | 10.99:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.95:1 | AA pass 4.5:1 | |
| Label on primary | 5.43:1 | AA pass 4.5:1 | |
| Label on accent | 12.33:1 | AAA pass 4.5:1 | |
| Primary on background | 5.43:1 | AA pass 3:1 | |
| Accent on background | 12.33: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 | #4A7C59 (Text 1) | #5E956D (Text 2) | #72AE81 (Text 3) | #86C795 (Text 4) | #9AE0A9 (Text 5) |
|---|---|---|---|---|---|
| #4A7C59 | Same color | 1.39— | 1.87— | 2.46— | 3.15AA Large |
| #5E956D | 1.39— | Same color | 1.35— | 1.77— | 2.27— |
| #72AE81 | 1.87— | 1.35— | Same color | 1.31— | 1.68— |
| #86C795 | 2.46— | 1.77— | 1.31— | Same color | 1.28— |
| #9AE0A9 | 3.15AA Large | 2.27— | 1.68— | 1.28— | Same color |
Shades
Shades and tints (50–950)
