PreviewingGo to this paletteOpen in generator
Code
/* Olive Dark — colorset.net */
:root {
--color-1: #3D3D00;
--color-2: #5C5C00;
--color-3: #808000;
--color-4: #999900;
--color-5: #B3B300;
--color-bg: #F7F8E9;
--color-surface: #EEEFE0;
--color-border: #D5D7C4;
--color-text: #3D3D00;
--color-muted: #6B6C51;
--color-primary: #7A7A00;
--color-on-primary: #FFFFFF;
--color-accent: #5C5C00;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #101002;
--color-surface: #1A1B09;
--color-border: #2F2F1A;
--color-text: #ADAF8A;
--color-muted: #85866B;
--color-primary: #7A7A00;
--color-on-primary: #FFFFFF;
--color-accent: #686933;
--color-on-accent: #FFFFFF;
}
}
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 #B3B300 | adjusted for contrast · from #3D3D00 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #B3B300 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #808000 | adjusted for contrast · from #808000 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #5C5C00 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.48:1 | AAA pass 4.5:1 | |
| Text on surface | 9.68:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 4.55:1 | AA pass 4.5:1 | |
| Label on accent | 7.03:1 | AAA pass 4.5:1 | |
| Primary on background | 4.24:1 | AA Large pass 3:1 | |
| Accent on background | 6.55:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.46:1 | AAA pass 4.5:1 | |
| Text on surface | 7.70:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.12:1 | AA pass 4.5:1 | |
| Label on primary | 4.55:1 | AA pass 4.5:1 | |
| Label on accent | 5.74:1 | AA pass 4.5:1 | |
| Primary on background | 4.20:1 | AA Large pass 3:1 | |
| Accent on background | 3.33:1 | AA Large 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 | #3D3D00 (Text 1) | #5C5C00 (Text 2) | #808000 (Text 3) | #999900 (Text 4) | #B3B300 (Text 5) |
|---|---|---|---|---|---|
| #3D3D00 | Same color | 1.60— | 2.68— | 3.70AA Large | 5.02AA |
| #5C5C00 | 1.60— | Same color | 1.68— | 2.31— | 3.14AA Large |
| #808000 | 2.68— | 1.68— | Same color | 1.38— | 1.87— |
| #999900 | 3.70AA Large | 2.31— | 1.38— | Same color | 1.36— |
| #B3B300 | 5.02AA | 3.14AA Large | 1.87— | 1.36— | Same color |
Shades
Shades and tints (50–950)
