Palette Library
Lemon Tart
A pastel palette for food with a green primary and a yellow accent. Text reaches 13.81:1 in light mode and 16.58:1 in dark mode.
How to use it
Lemon Tart's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #f8fbff, cards #eff1f3, and text #222b35 at 13.81:1; buttons #4d7c0f with #f8fbff labels at 4.81:1; highlights #fde68a with #222b35 text at 11.51:1.
- Dark mode: page #0c0f12, cards #11161c, and text #e8eff7 at 16.58:1; buttons #80b250 with #0c0f12 labels at 7.68:1; highlights #fde68a with #0c0f12 text at 15.43:1.
- Links: #4d7c0f reaches 4.81:1 on the light page, and #80b250 reaches 7.68:1 on the dark page.
- The accent as text: In light mode, keep #fde68a for fills and badges, not text: it reaches only 1.19: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 | #f8fbff | #0c0f12 |
| Surface | #eff1f3 | #11161c |
| Text | #222b35 | #e8eff7 |
| Primary | #4d7c0f | #80b250 |
| Primary Foreground | #f8fbff | #0c0f12 |
| Accent | #fde68a | #fde68a |
| Accent Foreground | #222b35 | #0c0f12 |
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 | 13.81:1AAArequired | 12.65:1AAArequired | 2.87:1Fail | 11.51:1AAA |
| Primary | 4.81:1AArequired | 4.41:1AA large | 1.00:1Fail | 4.00:1AA large |
| Accent | 1.19:1Fail | 1.09:1Fail | 4.00:1AA large | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.09:1Fail | 4.81:1AArequired | 1.19:1Fail |
| Accent Foreground | 13.81:1AAA | 12.65:1AAA | 2.87:1Fail | 11.51:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 16.58:1AAArequired | 15.68:1AAArequired | 2.15:1Fail | 1.07:1Fail |
| Primary | 7.68:1AAArequired | 7.27:1AAA | 1.00:1Fail | 2.00:1Fail |
| Accent | 15.43:1AAA | 14.59:1AAA | 2.00:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.05:1Fail | 7.68:1AAArequired | 15.43:1AAA |
| Accent Foreground | 1.00:1Fail | 1.05:1Fail | 7.68:1AAA | 15.43:1AAArequired |
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: #f8fbff;
--surface: #eff1f3;
--text: #222b35;
--primary: #4d7c0f;
--primary-foreground: #f8fbff;
--accent: #fde68a;
--accent-foreground: #222b35;
}
.dark {
--background: #0c0f12;
--surface: #11161c;
--text: #e8eff7;
--primary: #80b250;
--primary-foreground: #0c0f12;
--accent: #fde68a;
--accent-foreground: #0c0f12;
}
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: #f8fbff;
--surface: #eff1f3;
--text: #222b35;
--primary: #4d7c0f;
--primary-foreground: #f8fbff;
--accent: #fde68a;
--accent-foreground: #222b35;
}
.dark {
color-scheme: dark;
--background: #0c0f12;
--surface: #11161c;
--text: #e8eff7;
--primary: #80b250;
--primary-foreground: #0c0f12;
--accent: #fde68a;
--accent-foreground: #0c0f12;
}
@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 Spring Meadow, which shares the pastel style: text reaches 13.81:1 in light mode against 13.54:1, both use a green primary, and both use a yellow accent.
- Compared with Peach Cream, which shares the pastel style: text reaches 13.81:1 in light mode against 16.86:1, the primary is green where Peach Cream's is orange, and both use a yellow accent.