Palette Library
Olive Grove
An earthy palette for food with a green primary and an orange accent. Text reaches 17.63:1 in light mode and 16.03:1 in dark mode.
How to use it
Olive Grove's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fffdfa, cards #f7f1ea, and text #1d160d at 17.63:1; buttons #4d6b1f with #fffdfa labels at 6.01:1; highlights #c2703d with #1d160d text at 4.84:1.
- Dark mode: page #1a140d, cards #27221d, and text #fceedf at 16.03:1; buttons #92b368 with #1a140d labels at 7.71:1; highlights #d07d4a with #1a140d text at 5.83:1.
- Links: #4d6b1f reaches 6.01:1 on the light page, and #92b368 reaches 7.71:1 on the dark page.
- The accent as text: In light mode, keep #c2703d for fills and badges, not text: it reaches only 3.64:1 on the page.
Preview
The same palette on a small interface in light and dark.
Light mode
A place for your ideas
Start with colors that work together.
Your next project
A surface for the details that matter.
NewExplore your palette →
Dark mode
A place for your ideas
Start with colors that work together.
Your next project
A surface for the details that matter.
NewExplore your palette →
Roles
Five roles and their two foregrounds. Copy the exact HEX values.
| Role | Light | Dark |
|---|---|---|
| Background | #fffdfa | #1a140d |
| Surface | #f7f1ea | #27221d |
| Text | #1d160d | #fceedf |
| Primary | #4d6b1f | #92b368 |
| Primary Foreground | #fffdfa | #1a140d |
| Accent | #c2703d | #d07d4a |
| Accent Foreground | #1d160d | #1a140d |
Contrast matrix
Five required pairs per mode, judged on the final 8-bit colors.
Light mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 17.63:1AAArequired | 15.96:1AAArequired | 2.93:1Fail | 4.84:1AA |
| Primary | 6.01:1AArequired | 5.44:1AA | 1.00:1Fail | 1.65:1Fail |
| Accent | 3.64:1AA large | 3.29:1AA large | 1.65:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.10:1Fail | 6.01:1AArequired | 3.64:1AA large |
| Accent Foreground | 17.63:1AAA | 15.96:1AAA | 2.93:1Fail | 4.84:1AArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 16.03:1AAArequired | 13.83:1AAArequired | 2.07:1Fail | 2.74:1Fail |
| Primary | 7.71:1AAArequired | 6.65:1AA | 1.00:1Fail | 1.32:1Fail |
| Accent | 5.83:1AA | 5.03:1AA | 1.32:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.15:1Fail | 7.71:1AAArequired | 5.83:1AA |
| Accent Foreground | 1.00:1Fail | 1.15:1Fail | 7.71:1AAA | 5.83:1AArequired |
AAA: normal text ≥ 7:1. AA: normal text ≥ 4.5:1. AA large: large text ≥ 3:1 (24 px, or 18.66 px bold). UI: required component contrast ≥ 3:1. Fail: below 3:1. Required marks the five pairs ColorLint checks in each mode. Other pairs are informational.
ColorLint checks color contrast only. Passing pairs do not mean a page is accessible.
Exports
Both modes, with the exact values the Palette Generator exports.
CSS variables
/* ColorLint palette (v1). Light values in :root; dark values in .dark. */
:root {
--background: #fffdfa;
--surface: #f7f1ea;
--text: #1d160d;
--primary: #4d6b1f;
--primary-foreground: #fffdfa;
--accent: #c2703d;
--accent-foreground: #1d160d;
}
.dark {
--background: #1a140d;
--surface: #27221d;
--text: #fceedf;
--primary: #92b368;
--primary-foreground: #1a140d;
--accent: #d07d4a;
--accent-foreground: #1a140d;
}
Tailwind v4
/* ColorLint palette for Tailwind CSS v4 (palette v1). */
/* Paste after @import "tailwindcss". Add the "dark" class to <html> for dark mode. */
@custom-variant dark (&:where(.dark, .dark *));
:root {
color-scheme: light;
--background: #fffdfa;
--surface: #f7f1ea;
--text: #1d160d;
--primary: #4d6b1f;
--primary-foreground: #fffdfa;
--accent: #c2703d;
--accent-foreground: #1d160d;
}
.dark {
color-scheme: dark;
--background: #1a140d;
--surface: #27221d;
--text: #fceedf;
--primary: #92b368;
--primary-foreground: #1a140d;
--accent: #d07d4a;
--accent-foreground: #1a140d;
}
@theme inline {
--color-background: var(--background);
--color-surface: var(--surface);
--color-text: var(--text);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
}
Compared with similar palettes
- Compared with Forest Trail, which shares the earthy style: text reaches 17.63:1 in light mode against 12.35:1, both use a green primary, and both use a orange accent.
- Compared with Harvest Table, which shares the earthy style: text reaches 17.63:1 in light mode against 17.02:1, the primary is green where Harvest Table's is orange, and the accent is orange where Harvest Table's is brown.