PreviewingGo to this paletteOpen in generator
Code
/* Olive Drab — colorset.net */
:root {
--color-1: #3B3C36;
--color-2: #556B2F;
--color-3: #6B8E23;
--color-4: #808000;
--color-5: #9ACD32;
--color-bg: #F3FAEB;
--color-surface: #EAF0E2;
--color-border: #D0D8C7;
--color-text: #3B3C36;
--color-muted: #6A6B64;
--color-primary: #5D7F09;
--color-on-primary: #FFFFFF;
--color-accent: #556B2F;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F100E;
--color-surface: #191A18;
--color-border: #2E2E29;
--color-text: #B0BF9D;
--color-muted: #7C876D;
--color-primary: #5D7F09;
--color-on-primary: #FFFFFF;
--color-accent: #9ACD32;
--color-on-accent: #0F100E;
}
}
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 #9ACD32 | adjusted for contrast · from #3B3C36 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #9ACD32 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #6B8E23 | adjusted for contrast · from #6B8E23 |
| 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.44:1 | AAA pass 4.5:1 | |
| Text on surface | 9.58: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 | 5.95:1 | AA pass 4.5:1 | |
| Primary on background | 4.37:1 | AA Large pass 3:1 | |
| Accent on background | 5.58:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.80:1 | AAA pass 4.5:1 | |
| Text on surface | 8.97:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 4.66:1 | AA pass 4.5:1 | |
| Label on accent | 10.13:1 | AAA pass 4.5:1 | |
| Primary on background | 4.09:1 | AA Large pass 3:1 | |
| Accent on background | 10.13: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 | #3B3C36 (Text 1) | #556B2F (Text 2) | #6B8E23 (Text 3) | #808000 (Text 4) | #9ACD32 (Text 5) |
|---|---|---|---|---|---|
| #3B3C36 | Same color | 1.87— | 2.93— | 2.65— | 5.91AA |
| #556B2F | 1.87— | Same color | 1.56— | 1.42— | 3.16AA Large |
| #6B8E23 | 2.93— | 1.56— | Same color | 1.10— | 2.02— |
| #808000 | 2.65— | 1.42— | 1.10— | Same color | 2.23— |
| #9ACD32 | 5.91AA | 3.16AA Large | 2.02— | 2.23— | Same color |
Shades
Shades and tints (50–950)
