PreviewingGo to this paletteOpen in generator
Code
/* Olive Yellow — colorset.net */
:root {
--color-1: #666600;
--color-2: #808000;
--color-3: #999900;
--color-4: #B3B300;
--color-5: #CCCC00;
--color-bg: #F7F8E9;
--color-surface: #EEEFE0;
--color-border: #D5D7C4;
--color-text: #525205;
--color-muted: #6C6D52;
--color-primary: #7A7A00;
--color-on-primary: #FFFFFF;
--color-accent: #666600;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #101101;
--color-surface: #1A1B06;
--color-border: #2F3017;
--color-text: #C5C7A2;
--color-muted: #838469;
--color-primary: #7A7A00;
--color-on-primary: #FFFFFF;
--color-accent: #CCCC00;
--color-on-accent: #101101;
}
}
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 #CCCC00 | adjusted for contrast · from #666600 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #666600 | adjusted for contrast · from #CCCC00 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #808000 | adjusted for contrast · from #808000 |
| On primary | derived | derived |
| Accent | from palette · color 1 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.62:1 | AAA pass 4.5:1 | |
| Text on surface | 7.03:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 4.55:1 | AA pass 4.5:1 | |
| Label on accent | 6.06:1 | AA pass 4.5:1 | |
| Primary on background | 4.24:1 | AA Large pass 3:1 | |
| Accent on background | 5.64:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.94:1 | AAA pass 4.5:1 | |
| Text on surface | 10.03:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 4.55:1 | AA pass 4.5:1 | |
| Label on accent | 11.07:1 | AAA pass 4.5:1 | |
| Primary on background | 4.18:1 | AA Large pass 3:1 | |
| Accent on background | 11.07: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 | #666600 (Text 1) | #808000 (Text 2) | #999900 (Text 3) | #B3B300 (Text 4) | #CCCC00 (Text 5) |
|---|---|---|---|---|---|
| #666600 | Same color | 1.44— | 1.99— | 2.70— | 3.52AA Large |
| #808000 | 1.44— | Same color | 1.38— | 1.87— | 2.44— |
| #999900 | 1.99— | 1.38— | Same color | 1.36— | 1.77— |
| #B3B300 | 2.70— | 1.87— | 1.36— | Same color | 1.30— |
| #CCCC00 | 3.52AA Large | 2.44— | 1.77— | 1.30— | Same color |
Shades
Shades and tints (50–950)
