Palette Library
Soft Serve
A pastel palette for food with a pink primary and a green accent. Text reaches 14.02:1 in light mode and 16.57:1 in dark mode.
How to use it
Soft Serve's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fdf9fa, cards #f6e8ec, and text #2d2729 at 14.02:1; buttons #a5486b with #fdf9fa labels at 5.37:1; highlights #c7f9cc with #2d2729 text at 12.44:1.
- Dark mode: page #0f0e0e, cards #1e1b1c, and text #f0edee at 16.57:1; buttons #e07d9f with #0f0e0e labels at 6.97:1; highlights #c7f9cc with #0f0e0e text at 16.38:1.
- Links: #a5486b reaches 5.37:1 on the light page, and #e07d9f reaches 6.97:1 on the dark page.
- The accent as text: In light mode, keep #c7f9cc for fills and badges, not text: it reaches only 1.12: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 | #fdf9fa | #0f0e0e |
| Surface | #f6e8ec | #1e1b1c |
| Text | #2d2729 | #f0edee |
| Primary | #a5486b | #e07d9f |
| Primary Foreground | #fdf9fa | #0f0e0e |
| Accent | #c7f9cc | #c7f9cc |
| Accent Foreground | #2d2729 | #0f0e0e |
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 | 14.02:1AAArequired | 12.32:1AAArequired | 2.60:1Fail | 12.44:1AAA |
| Primary | 5.37:1AArequired | 4.72:1AA | 1.00:1Fail | 4.77:1AA |
| Accent | 1.12:1Fail | 1.01:1Fail | 4.77:1AA | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.13:1Fail | 5.37:1AArequired | 1.12:1Fail |
| Accent Foreground | 14.02:1AAA | 12.32:1AAA | 2.60:1Fail | 12.44:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 16.57:1AAArequired | 14.69:1AAArequired | 2.37:1Fail | 1.01:1Fail |
| Primary | 6.97:1AArequired | 6.18:1AA | 1.00:1Fail | 2.34:1Fail |
| Accent | 16.38:1AAA | 14.52:1AAA | 2.34:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.12:1Fail | 6.97:1AArequired | 16.38:1AAA |
| Accent Foreground | 1.00:1Fail | 1.12:1Fail | 6.97:1AA | 16.38: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: #fdf9fa;
--surface: #f6e8ec;
--text: #2d2729;
--primary: #a5486b;
--primary-foreground: #fdf9fa;
--accent: #c7f9cc;
--accent-foreground: #2d2729;
}
.dark {
--background: #0f0e0e;
--surface: #1e1b1c;
--text: #f0edee;
--primary: #e07d9f;
--primary-foreground: #0f0e0e;
--accent: #c7f9cc;
--accent-foreground: #0f0e0e;
}
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: #fdf9fa;
--surface: #f6e8ec;
--text: #2d2729;
--primary: #a5486b;
--primary-foreground: #fdf9fa;
--accent: #c7f9cc;
--accent-foreground: #2d2729;
}
.dark {
color-scheme: dark;
--background: #0f0e0e;
--surface: #1e1b1c;
--text: #f0edee;
--primary: #e07d9f;
--primary-foreground: #0f0e0e;
--accent: #c7f9cc;
--accent-foreground: #0f0e0e;
}
@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 Lemon Tart, which shares the pastel style: text reaches 14.02:1 in light mode against 13.81:1, the primary is pink where Lemon Tart's is green, and the accent is green where Lemon Tart's is yellow.
- Compared with Mint Chip, which shares the pastel style: text reaches 14.02:1 in light mode against 14.89:1, the primary is pink where Mint Chip's is green, and both use a green accent.