Palette Library
Berry Smoothie
A playful palette for food with a purple primary and a red accent. Text reaches 17.52:1 in light mode and 16.04:1 in dark mode.
How to use it
Berry Smoothie's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #f6f9fb, cards #e5eef6, and text #0e141a at 17.52:1; buttons #862e9c with #f6f9fb labels at 6.88:1; highlights #ff8787 with #0e141a text at 7.99:1.
- Dark mode: page #14191d, cards #252627, and text #ebf5ff at 16.04:1; buttons #d77def with #14191d labels at 6.80:1; highlights #ff8787 with #14191d text at 7.64:1.
- Links: #862e9c reaches 6.88:1 on the light page, and #d77def reaches 6.80:1 on the dark page.
- The accent as text: In light mode, keep #ff8787 for fills and badges, not text: it reaches only 2.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 | #f6f9fb | #14191d |
| Surface | #e5eef6 | #252627 |
| Text | #0e141a | #ebf5ff |
| Primary | #862e9c | #d77def |
| Primary Foreground | #f6f9fb | #14191d |
| Accent | #ff8787 | #ff8787 |
| Accent Foreground | #0e141a | #14191d |
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.52:1AAArequired | 15.78:1AAArequired | 2.54:1Fail | 7.99:1AAA |
| Primary | 6.88:1AArequired | 6.20:1AA | 1.00:1Fail | 3.14:1AA large |
| Accent | 2.19:1Fail | 1.97:1Fail | 3.14:1AA large | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.11:1Fail | 6.88:1AArequired | 2.19:1Fail |
| Accent Foreground | 17.52:1AAA | 15.78:1AAA | 2.54:1Fail | 7.99:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 16.04:1AAArequired | 13.74:1AAArequired | 2.35:1Fail | 2.09:1Fail |
| Primary | 6.80:1AArequired | 5.82:1AA | 1.00:1Fail | 1.12:1Fail |
| Accent | 7.64:1AAA | 6.54:1AA | 1.12:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.16:1Fail | 6.80:1AArequired | 7.64:1AAA |
| Accent Foreground | 1.00:1Fail | 1.16:1Fail | 6.80:1AA | 7.64: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: #f6f9fb;
--surface: #e5eef6;
--text: #0e141a;
--primary: #862e9c;
--primary-foreground: #f6f9fb;
--accent: #ff8787;
--accent-foreground: #0e141a;
}
.dark {
--background: #14191d;
--surface: #252627;
--text: #ebf5ff;
--primary: #d77def;
--primary-foreground: #14191d;
--accent: #ff8787;
--accent-foreground: #14191d;
}
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: #f6f9fb;
--surface: #e5eef6;
--text: #0e141a;
--primary: #862e9c;
--primary-foreground: #f6f9fb;
--accent: #ff8787;
--accent-foreground: #0e141a;
}
.dark {
color-scheme: dark;
--background: #14191d;
--surface: #252627;
--text: #ebf5ff;
--primary: #d77def;
--primary-foreground: #14191d;
--accent: #ff8787;
--accent-foreground: #14191d;
}
@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 17.52:1 in light mode against 15.28:1, the primary is purple where Sunrise Cafe's is red, and the accent is red where Sunrise Cafe's is yellow.
- Compared with Orchard, which shares the playful style: text reaches 17.52:1 in light mode against 15.18:1, the primary is purple where Orchard's is green, and both use a red accent.