Palette Library
Retro Diner
A retro palette for food with a red primary and a teal accent. Text reaches 17.59:1 in light mode and 17.87:1 in dark mode.
How to use it
Retro Diner's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fbfbfa, cards #eeeae4, and text #171512 at 17.59:1; buttons #c81d25 with #fbfbfa labels at 5.54:1; highlights #5bc0be with #171512 text at 8.44:1.
- Dark mode: page #0b0907, cards #1c150c, and text #fef1e1 at 17.87:1; buttons #ff6860 with #0b0907 labels at 7.00:1; highlights #5bc0be with #0b0907 text at 9.20:1.
- Links: #c81d25 reaches 5.54:1 on the light page, and #ff6860 reaches 7.00:1 on the dark page.
- The accent as text: In light mode, keep #5bc0be for fills and badges, not text: it reaches only 2.08: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 | #fbfbfa | #0b0907 |
| Surface | #eeeae4 | #1c150c |
| Text | #171512 | #fef1e1 |
| Primary | #c81d25 | #ff6860 |
| Primary Foreground | #fbfbfa | #0b0907 |
| Accent | #5bc0be | #5bc0be |
| Accent Foreground | #171512 | #0b0907 |
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.59:1AAArequired | 15.20:1AAArequired | 3.17:1AA large | 8.44:1AAA |
| Primary | 5.54:1AArequired | 4.79:1AA | 1.00:1Fail | 2.65:1Fail |
| Accent | 2.08:1Fail | 1.80:1Fail | 2.65:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.15:1Fail | 5.54:1AArequired | 2.08:1Fail |
| Accent Foreground | 17.59:1AAA | 15.20:1AAA | 3.17:1AA large | 8.44:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 17.87:1AAArequired | 16.25:1AAArequired | 2.55:1Fail | 1.94:1Fail |
| Primary | 7.00:1AAArequired | 6.36:1AA | 1.00:1Fail | 1.31:1Fail |
| Accent | 9.20:1AAA | 8.37:1AAA | 1.31:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.09:1Fail | 7.00:1AAArequired | 9.20:1AAA |
| Accent Foreground | 1.00:1Fail | 1.09:1Fail | 7.00:1AAA | 9.20: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: #fbfbfa;
--surface: #eeeae4;
--text: #171512;
--primary: #c81d25;
--primary-foreground: #fbfbfa;
--accent: #5bc0be;
--accent-foreground: #171512;
}
.dark {
--background: #0b0907;
--surface: #1c150c;
--text: #fef1e1;
--primary: #ff6860;
--primary-foreground: #0b0907;
--accent: #5bc0be;
--accent-foreground: #0b0907;
}
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: #fbfbfa;
--surface: #eeeae4;
--text: #171512;
--primary: #c81d25;
--primary-foreground: #fbfbfa;
--accent: #5bc0be;
--accent-foreground: #171512;
}
.dark {
color-scheme: dark;
--background: #0b0907;
--surface: #1c150c;
--text: #fef1e1;
--primary: #ff6860;
--primary-foreground: #0b0907;
--accent: #5bc0be;
--accent-foreground: #0b0907;
}
@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 Copper Kettle, which shares the retro style: text reaches 17.59:1 in light mode against 13.86:1, the primary is red where Copper Kettle's is orange, and both use a teal accent.
- Compared with Postcard, which shares the retro style: text reaches 17.59:1 in light mode against 13.58:1, both use a red primary, and both use a teal accent.