Palette Library
Pulse
A vibrant palette for health with a pink primary and a purple accent. Text reaches 18.03:1 in light mode and 14.87:1 in dark mode.
How to use it
Pulse's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #faf7f3, cards #f2e7db, and text #140d07 at 18.03:1; buttons #e11d74 with #000000 labels at 4.62:1; highlights #7c3aed with #faf7f3 text at 5.33:1.
- Dark mode: page #0e0b08, cards #1c1813, and text #e1e0de at 14.87:1; buttons #ff478d with #0e0b08 labels at 6.10:1; highlights #a587ff with #0e0b08 text at 7.01:1.
- Links: #e11d74 reaches 4.24:1 on the light page, and #ff478d reaches 6.10:1 on the dark page.
- The accent as text: #7c3aed also works as text: 5.33:1 on the light page and 7.01: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 | #faf7f3 | #0e0b08 |
| Surface | #f2e7db | #1c1813 |
| Text | #140d07 | #e1e0de |
| Primary | #e11d74 | #ff478d |
| Primary Foreground | #000000 | #0e0b08 |
| Accent | #7c3aed | #a587ff |
| Accent Foreground | #faf7f3 | #0e0b08 |
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.03:1AAArequired | 15.80:1AAArequired | 4.24:1AA large | 3.37:1AA large |
| Primary | 4.24:1UIrequired | 3.72:1AA large | 1.00:1Fail | 1.25:1Fail |
| Accent | 5.33:1AA | 4.67:1AA | 1.25:1Fail | 1.00:1Fail |
| Primary Foreground | 19.66:1AAA | 17.22:1AAA | 4.62:1AArequired | 3.68:1AA large |
| Accent Foreground | 1.00:1Fail | 1.14:1Fail | 4.24:1AA large | 5.33:1AArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 14.87:1AAArequired | 13.38:1AAArequired | 2.43:1Fail | 2.11:1Fail |
| Primary | 6.10:1AArequired | 5.49:1AA | 1.00:1Fail | 1.14:1Fail |
| Accent | 7.01:1AAA | 6.31:1AA | 1.14:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.11:1Fail | 6.10:1AArequired | 7.01:1AAA |
| Accent Foreground | 1.00:1Fail | 1.11:1Fail | 6.10:1AA | 7.01: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: #faf7f3;
--surface: #f2e7db;
--text: #140d07;
--primary: #e11d74;
--primary-foreground: #000000;
--accent: #7c3aed;
--accent-foreground: #faf7f3;
}
.dark {
--background: #0e0b08;
--surface: #1c1813;
--text: #e1e0de;
--primary: #ff478d;
--primary-foreground: #0e0b08;
--accent: #a587ff;
--accent-foreground: #0e0b08;
}
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: #faf7f3;
--surface: #f2e7db;
--text: #140d07;
--primary: #e11d74;
--primary-foreground: #000000;
--accent: #7c3aed;
--accent-foreground: #faf7f3;
}
.dark {
color-scheme: dark;
--background: #0e0b08;
--surface: #1c1813;
--text: #e1e0de;
--primary: #ff478d;
--primary-foreground: #0e0b08;
--accent: #a587ff;
--accent-foreground: #0e0b08;
}
@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 Midnight Orchid, which shares a color: text reaches 18.03:1 in light mode against 13.15:1, the primary is pink where Midnight Orchid's is purple, and the accent is purple where Midnight Orchid's is pink.
- Compared with Pixel Arcade, which shares the vibrant style: text reaches 18.03:1 in light mode against 15.08:1, the primary is pink where Pixel Arcade's is purple, and the accent is purple where Pixel Arcade's is green.