PreviewingGo to this paletteOpen in generator
Code
/* Olive Tavern — colorset.net */
:root {
--color-1: #F6F5EC;
--color-2: #627D23;
--color-3: #CB6440;
--color-4: #B1BF8C;
--color-5: #222A13;
--color-bg: #F6F5EC;
--color-surface: #FDFCF7;
--color-border: #DEDCD0;
--color-text: #222A13;
--color-muted: #6A745B;
--color-primary: #BD5834;
--color-on-primary: #FFFFFF;
--color-accent: #627D23;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0E1109;
--color-surface: #181B13;
--color-border: #2B3024;
--color-text: #F6F5EC;
--color-muted: #8B8A82;
--color-primary: #BD5834;
--color-on-primary: #FFFFFF;
--color-accent: #627D23;
--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 | from palette · color 1 | adjusted for contrast · from #222A13 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #CB6440 | adjusted for contrast · from #CB6440 |
| On primary | derived | derived |
| Accent | from palette · color 2 | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.62:1 | AAA pass 4.5:1 | |
| Text on surface | 14.51:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.50:1 | AA pass 4.5:1 | |
| Label on primary | 4.56:1 | AA pass 4.5:1 | |
| Label on accent | 4.69:1 | AA pass 4.5:1 | |
| Primary on background | 4.16:1 | AA Large pass 3:1 | |
| Accent on background | 4.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.40:1 | AAA pass 4.5:1 | |
| Text on surface | 15.93:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.49:1 | AA pass 4.5:1 | |
| Label on primary | 4.56:1 | AA pass 4.5:1 | |
| Label on accent | 4.69:1 | AA pass 4.5:1 | |
| Primary on background | 4.18:1 | AA Large pass 3:1 | |
| Accent on background | 4.06: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 | #F6F5EC (Text 1) | #627D23 (Text 2) | #CB6440 (Text 3) | #B1BF8C (Text 4) | #222A13 (Text 5) |
|---|---|---|---|---|---|
| #F6F5EC | Same color | 4.29AA Large | 3.53AA Large | 1.79— | 13.62AAA |
| #627D23 | 4.29AA Large | Same color | 1.21— | 2.39— | 3.18AA Large |
| #CB6440 | 3.53AA Large | 1.21— | Same color | 1.97— | 3.86AA Large |
| #B1BF8C | 1.79— | 2.39— | 1.97— | Same color | 7.60AAA |
| #222A13 | 13.62AAA | 3.18AA Large | 3.86AA Large | 7.60AAA | Same color |
Shades
Shades and tints (50–950)
