Palette Library
Orchard
A playful palette for food with a green primary and a red accent. Text reaches 15.18:1 in light mode and 16.68:1 in dark mode.
How to use it
Orchard's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fefeff, cards #f1f6fd, and text #1d2630 at 15.18:1; buttons #3f7d20 with #fefeff labels at 5.00:1; highlights #e4572e with #000000 text at 5.70:1.
- Dark mode: page #04080f, cards #141415, and text #e3ebf5 at 16.68:1; buttons #75b55a with #04080f labels at 8.13:1; highlights #ee6038 with #04080f text at 6.08:1.
- Links: #3f7d20 reaches 5.00:1 on the light page, and #75b55a reaches 8.13:1 on the dark page.
- The accent as text: In light mode, keep #e4572e for fills and badges, not text: it reaches only 3.65: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 | #fefeff | #04080f |
| Surface | #f1f6fd | #141415 |
| Text | #1d2630 | #e3ebf5 |
| Primary | #3f7d20 | #75b55a |
| Primary Foreground | #fefeff | #04080f |
| Accent | #e4572e | #ee6038 |
| Accent Foreground | #000000 | #04080f |
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 | 15.18:1AAArequired | 14.09:1AAArequired | 3.03:1AA large | 4.15:1AA large |
| Primary | 5.00:1AArequired | 4.64:1AA | 1.00:1Fail | 1.36:1Fail |
| Accent | 3.65:1AA large | 3.39:1AA large | 1.36:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.07:1Fail | 5.00:1AArequired | 3.65:1AA large |
| Accent Foreground | 20.83:1AAA | 19.34:1AAA | 4.16:1AA large | 5.70:1AArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 16.68:1AAArequired | 15.31:1AAArequired | 2.05:1Fail | 2.74:1Fail |
| Primary | 8.13:1AAArequired | 7.46:1AAA | 1.00:1Fail | 1.33:1Fail |
| Accent | 6.08:1AA | 5.58:1AA | 1.33:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.08:1Fail | 8.13:1AAArequired | 6.08:1AA |
| Accent Foreground | 1.00:1Fail | 1.08:1Fail | 8.13:1AAA | 6.08: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: #fefeff;
--surface: #f1f6fd;
--text: #1d2630;
--primary: #3f7d20;
--primary-foreground: #fefeff;
--accent: #e4572e;
--accent-foreground: #000000;
}
.dark {
--background: #04080f;
--surface: #141415;
--text: #e3ebf5;
--primary: #75b55a;
--primary-foreground: #04080f;
--accent: #ee6038;
--accent-foreground: #04080f;
}
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: #fefeff;
--surface: #f1f6fd;
--text: #1d2630;
--primary: #3f7d20;
--primary-foreground: #fefeff;
--accent: #e4572e;
--accent-foreground: #000000;
}
.dark {
color-scheme: dark;
--background: #04080f;
--surface: #141415;
--text: #e3ebf5;
--primary: #75b55a;
--primary-foreground: #04080f;
--accent: #ee6038;
--accent-foreground: #04080f;
}
@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 Sunrise Cafe, which shares the playful style: text reaches 15.18:1 in light mode against 15.28:1, the primary is green where Sunrise Cafe's is red, and the accent is red where Sunrise Cafe's is yellow.
- Compared with Tropical Punch, which shares the Food topic: text reaches 15.18:1 in light mode against 15.52:1, the primary is green where Tropical Punch's is red, and the accent is red where Tropical Punch's is green.