PreviewingGo to this paletteOpen in generator
Code
/* Basil Dark — colorset.net */
:root {
--color-1: #2A4519;
--color-2: #3F5B28;
--color-3: #547137;
--color-4: #698746;
--color-5: #7E9D55;
--color-bg: #F3FAEB;
--color-surface: #E9F0E2;
--color-border: #D0D8C7;
--color-text: #2A4519;
--color-muted: #617059;
--color-primary: #607E3D;
--color-on-primary: #FFFFFF;
--color-accent: #3F5B28;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #091205;
--color-surface: #131D0E;
--color-border: #263220;
--color-text: #9AAA88;
--color-muted: #7B876E;
--color-primary: #607E3D;
--color-on-primary: #FFFFFF;
--color-accent: #7E9D55;
--color-on-accent: #091205;
}
}
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 #7E9D55 | adjusted for contrast · from #2A4519 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #7E9D55 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #698746 | adjusted for contrast · from #698746 |
| On primary | derived | derived |
| Accent | from palette · color 2 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.02:1 | AAA pass 4.5:1 | |
| Text on surface | 9.18:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 4.62:1 | AA pass 4.5:1 | |
| Label on accent | 7.67:1 | AAA pass 4.5:1 | |
| Primary on background | 4.33:1 | AA Large pass 3:1 | |
| Accent on background | 7.19:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.71:1 | AAA pass 4.5:1 | |
| Text on surface | 7.01:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 4.62:1 | AA pass 4.5:1 | |
| Label on accent | 6.22:1 | AA pass 4.5:1 | |
| Primary on background | 4.13:1 | AA Large pass 3:1 | |
| Accent on background | 6.22:1 | AA 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 | #2A4519 (Text 1) | #3F5B28 (Text 2) | #547137 (Text 3) | #698746 (Text 4) | #7E9D55 (Text 5) |
|---|---|---|---|---|---|
| #2A4519 | Same color | 1.39— | 1.93— | 2.62— | 3.48AA Large |
| #3F5B28 | 1.39— | Same color | 1.39— | 1.88— | 2.50— |
| #547137 | 1.93— | 1.39— | Same color | 1.36— | 1.80— |
| #698746 | 2.62— | 1.88— | 1.36— | Same color | 1.33— |
| #7E9D55 | 3.48AA Large | 2.50— | 1.80— | 1.33— | Same color |
Shades
Shades and tints (50–950)
