Palette Library
Lighthouse
A bold palette for travel with a red primary and a blue accent. Text reaches 16.48:1 in light mode and 14.90:1 in dark mode.
How to use it
Lighthouse's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fffaf9, cards #fcedeb, and text #251918 at 16.48:1; buttons #c92a2a with #fffaf9 labels at 5.27:1; highlights #1c7ed6 with #000000 text at 5.00:1.
- Dark mode: page #110706, cards #1e1615, and text #f1dad7 at 14.90:1; buttons #ff655b with #110706 labels at 6.87:1; highlights #439ef8 with #110706 text at 7.08:1.
- Links: #c92a2a reaches 5.27:1 on the light page, and #ff655b reaches 6.87:1 on the dark page.
- The accent as text: In light mode, keep #1c7ed6 for fills and badges, not text: it reaches only 4.05: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 | #fffaf9 | #110706 |
| Surface | #fcedeb | #1e1615 |
| Text | #251918 | #f1dad7 |
| Primary | #c92a2a | #ff655b |
| Primary Foreground | #fffaf9 | #110706 |
| Accent | #1c7ed6 | #439ef8 |
| Accent Foreground | #000000 | #110706 |
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 | 16.48:1AAArequired | 14.99:1AAArequired | 3.12:1AA large | 4.06:1AA large |
| Primary | 5.27:1AArequired | 4.79:1AA | 1.00:1Fail | 1.30:1Fail |
| Accent | 4.05:1AA large | 3.68:1AA large | 1.30:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.09:1Fail | 5.27:1AArequired | 4.05:1AA large |
| Accent Foreground | 20.29:1AAA | 18.45:1AAA | 3.84:1AA large | 5.00:1AArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 14.90:1AAArequired | 13.33:1AAArequired | 2.16:1Fail | 2.10:1Fail |
| Primary | 6.87:1AArequired | 6.15:1AA | 1.00:1Fail | 1.03:1Fail |
| Accent | 7.08:1AAA | 6.33:1AA | 1.03:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.11:1Fail | 6.87:1AArequired | 7.08:1AAA |
| Accent Foreground | 1.00:1Fail | 1.11:1Fail | 6.87:1AA | 7.08: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: #fffaf9;
--surface: #fcedeb;
--text: #251918;
--primary: #c92a2a;
--primary-foreground: #fffaf9;
--accent: #1c7ed6;
--accent-foreground: #000000;
}
.dark {
--background: #110706;
--surface: #1e1615;
--text: #f1dad7;
--primary: #ff655b;
--primary-foreground: #110706;
--accent: #439ef8;
--accent-foreground: #110706;
}
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: #fffaf9;
--surface: #fcedeb;
--text: #251918;
--primary: #c92a2a;
--primary-foreground: #fffaf9;
--accent: #1c7ed6;
--accent-foreground: #000000;
}
.dark {
color-scheme: dark;
--background: #110706;
--surface: #1e1615;
--text: #f1dad7;
--primary: #ff655b;
--primary-foreground: #110706;
--accent: #439ef8;
--accent-foreground: #110706;
}
@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 First Aid, which shares the bold style: text reaches 16.48:1 in light mode against 18.58:1, both use a red primary, and both use a blue accent.
- Compared with Bauhaus, which shares the bold style: text reaches 16.48:1 in light mode against 16.88:1, the primary is red where Bauhaus's is blue, and the accent is blue where Bauhaus's is red.