Palette Library
First Aid
A bold palette for health with a red primary and a blue accent. Text reaches 18.58:1 in light mode and 15.12:1 in dark mode.
How to use it
First Aid's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #ffffff, cards #fef5f4, and text #1e0f0e at 18.58:1; buttons #c53030 with #ffffff labels at 5.46:1; highlights #2b6cb0 with #ffffff text at 5.41:1.
- Dark mode: page #170e0d, cards #1c1818, and text #eee3e1 at 15.12:1; buttons #fe675f with #170e0d labels at 6.62:1; highlights #64a5ee with #170e0d text at 7.38:1.
- Links: #c53030 reaches 5.46:1 on the light page, and #fe675f reaches 6.62:1 on the dark page.
- The accent as text: #2b6cb0 also works as text: 5.41:1 on the light page and 7.38:1 on the dark 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 | #ffffff | #170e0d |
| Surface | #fef5f4 | #1c1818 |
| Text | #1e0f0e | #eee3e1 |
| Primary | #c53030 | #fe675f |
| Primary Foreground | #ffffff | #170e0d |
| Accent | #2b6cb0 | #64a5ee |
| Accent Foreground | #ffffff | #170e0d |
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 | 18.58:1AAArequired | 17.33:1AAArequired | 3.39:1AA large | 3.42:1AA large |
| Primary | 5.46:1AArequired | 5.09:1AA | 1.00:1Fail | 1.00:1Fail |
| Accent | 5.41:1AA | 5.05:1AA | 1.00:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.07:1Fail | 5.46:1AArequired | 5.41:1AA |
| Accent Foreground | 1.00:1Fail | 1.07:1Fail | 5.46:1AA | 5.41:1AArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 15.12:1AAArequired | 14.00:1AAArequired | 2.28:1Fail | 2.04:1Fail |
| Primary | 6.62:1AArequired | 6.13:1AA | 1.00:1Fail | 1.11:1Fail |
| Accent | 7.38:1AAA | 6.83:1AA | 1.11:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.07:1Fail | 6.62:1AArequired | 7.38:1AAA |
| Accent Foreground | 1.00:1Fail | 1.07:1Fail | 6.62:1AA | 7.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: #ffffff;
--surface: #fef5f4;
--text: #1e0f0e;
--primary: #c53030;
--primary-foreground: #ffffff;
--accent: #2b6cb0;
--accent-foreground: #ffffff;
}
.dark {
--background: #170e0d;
--surface: #1c1818;
--text: #eee3e1;
--primary: #fe675f;
--primary-foreground: #170e0d;
--accent: #64a5ee;
--accent-foreground: #170e0d;
}
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: #ffffff;
--surface: #fef5f4;
--text: #1e0f0e;
--primary: #c53030;
--primary-foreground: #ffffff;
--accent: #2b6cb0;
--accent-foreground: #ffffff;
}
.dark {
color-scheme: dark;
--background: #170e0d;
--surface: #1c1818;
--text: #eee3e1;
--primary: #fe675f;
--primary-foreground: #170e0d;
--accent: #64a5ee;
--accent-foreground: #170e0d;
}
@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 Heartbeat, which shares the bold style: text reaches 18.58:1 in light mode against 13.41:1, both use a red primary, and the accent is blue where Heartbeat's is pink.
- Compared with Bauhaus, which shares the bold style: text reaches 18.58: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.