PreviewingGo to this paletteOpen in generator
Code
/* Basil Herb — colorset.net */
:root {
--color-1: #356859;
--color-2: #4A7C59;
--color-3: #5F9EA0;
--color-4: #6B8E23;
--color-5: #8FBC8F;
--color-bg: #EFFBEF;
--color-surface: #E6F1E5;
--color-border: #CBDACB;
--color-text: #235749;
--color-muted: #527167;
--color-primary: #5D7F09;
--color-on-primary: #FFFFFF;
--color-accent: #539294;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #04130E;
--color-surface: #0D1D18;
--color-border: #1E332C;
--color-text: #9BB79B;
--color-muted: #748974;
--color-primary: #5D7F09;
--color-on-primary: #FFFFFF;
--color-accent: #5F9EA0;
--color-on-accent: #04130E;
}
}
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 #8FBC8F | adjusted for contrast · from #356859 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #356859 | adjusted for contrast · from #8FBC8F |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #6B8E23 | adjusted for contrast · from #6B8E23 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #5F9EA0 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.79:1 | AAA pass 4.5:1 | |
| Text on surface | 7.14:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 4.66:1 | AA pass 4.5:1 | |
| Label on accent | 5.91:1 | AA pass 4.5:1 | |
| Primary on background | 4.38:1 | AA Large pass 3:1 | |
| Accent on background | 3.34:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.73:1 | AAA pass 4.5:1 | |
| Text on surface | 7.99:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 4.66:1 | AA pass 4.5:1 | |
| Label on accent | 6.23:1 | AA pass 4.5:1 | |
| Primary on background | 4.08:1 | AA Large pass 3:1 | |
| Accent on background | 6.23: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 | #356859 (Text 1) | #4A7C59 (Text 2) | #5F9EA0 (Text 3) | #6B8E23 (Text 4) | #8FBC8F (Text 5) |
|---|---|---|---|---|---|
| #356859 | Same color | 1.32— | 2.10— | 1.68— | 2.98— |
| #4A7C59 | 1.32— | Same color | 1.59— | 1.28— | 2.26— |
| #5F9EA0 | 2.10— | 1.59— | Same color | 1.25— | 1.42— |
| #6B8E23 | 1.68— | 1.28— | 1.25— | Same color | 1.77— |
| #8FBC8F | 2.98— | 2.26— | 1.42— | 1.77— | Same color |
Shades
Shades and tints (50–950)
