Palette Library
Postcard
A retro palette for travel with a red primary and a teal accent. Text reaches 13.58:1 in light mode and 16.40:1 in dark mode.
How to use it
Postcard's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #f6f6f6, cards #ebe5db, and text #30271a at 13.58:1; buttons #b23a48 with #f6f6f6 labels at 5.41:1; highlights #7fb7be with #30271a text at 6.58:1.
- Dark mode: page #17130e, cards #1e1c1a, and text #fcf0dc at 16.40:1; buttons #f2747d with #17130e labels at 6.66:1; highlights #7fb7be with #17130e text at 8.29:1.
- Links: #b23a48 reaches 5.41:1 on the light page, and #f2747d reaches 6.66:1 on the dark page.
- The accent as text: In light mode, keep #7fb7be for fills and badges, not text: it reaches only 2.06: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 | #f6f6f6 | #17130e |
| Surface | #ebe5db | #1e1c1a |
| Text | #30271a | #fcf0dc |
| Primary | #b23a48 | #f2747d |
| Primary Foreground | #f6f6f6 | #17130e |
| Accent | #7fb7be | #7fb7be |
| Accent Foreground | #30271a | #17130e |
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.58:1AAArequired | 11.71:1AAArequired | 2.51:1Fail | 6.58:1AA |
| Primary | 5.41:1AArequired | 4.66:1AA | 1.00:1Fail | 2.62:1Fail |
| Accent | 2.06:1Fail | 1.77:1Fail | 2.62:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.15:1Fail | 5.41:1AArequired | 2.06:1Fail |
| Accent Foreground | 13.58:1AAA | 11.71:1AAA | 2.51:1Fail | 6.58:1AArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 16.40:1AAArequired | 15.07:1AAArequired | 2.46:1Fail | 1.97:1Fail |
| Primary | 6.66:1AArequired | 6.12:1AA | 1.00:1Fail | 1.24:1Fail |
| Accent | 8.29:1AAA | 7.61:1AAA | 1.24:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.08:1Fail | 6.66:1AArequired | 8.29:1AAA |
| Accent Foreground | 1.00:1Fail | 1.08:1Fail | 6.66:1AA | 8.29: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: #f6f6f6;
--surface: #ebe5db;
--text: #30271a;
--primary: #b23a48;
--primary-foreground: #f6f6f6;
--accent: #7fb7be;
--accent-foreground: #30271a;
}
.dark {
--background: #17130e;
--surface: #1e1c1a;
--text: #fcf0dc;
--primary: #f2747d;
--primary-foreground: #17130e;
--accent: #7fb7be;
--accent-foreground: #17130e;
}
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: #f6f6f6;
--surface: #ebe5db;
--text: #30271a;
--primary: #b23a48;
--primary-foreground: #f6f6f6;
--accent: #7fb7be;
--accent-foreground: #30271a;
}
.dark {
color-scheme: dark;
--background: #17130e;
--surface: #1e1c1a;
--text: #fcf0dc;
--primary: #f2747d;
--primary-foreground: #17130e;
--accent: #7fb7be;
--accent-foreground: #17130e;
}
@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 Coral Reef, which shares the Travel topic: text reaches 13.58:1 in light mode against 13.16:1, both use a red primary, and both use a teal accent.
- Compared with Retro Diner, which shares the retro style: text reaches 13.58:1 in light mode against 17.59:1, both use a red primary, and both use a teal accent.