Palette Library
Spark
A vibrant palette for SaaS with a red primary and a purple accent. Text reaches 15.91:1 in light mode and 16.21:1 in dark mode.
How to use it
Spark's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fcf6f5, cards #f6ecea, and text #261917 at 15.91:1; buttons #f03e3e with #000000 labels at 5.46:1; highlights #7048e8 with #fcf6f5 text at 5.19:1.
- Dark mode: page #0f0c0c, cards #1d1919, and text #f6e7e5 at 16.21:1; buttons #fd4b49 with #0f0c0c labels at 5.82:1; highlights #9c8bff with #0f0c0c text at 7.00:1.
- Links: #f03e3e reaches 3.59:1 on the light page, and #fd4b49 reaches 5.82:1 on the dark page.
- The accent as text: #7048e8 also works as text: 5.19:1 on the light page and 7.00: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 | #fcf6f5 | #0f0c0c |
| Surface | #f6ecea | #1d1919 |
| Text | #261917 | #f6e7e5 |
| Primary | #f03e3e | #fd4b49 |
| Primary Foreground | #000000 | #0f0c0c |
| Accent | #7048e8 | #9c8bff |
| Accent Foreground | #fcf6f5 | #0f0c0c |
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 | 15.91:1AAArequired | 14.67:1AAArequired | 4.42:1AA large | 3.06:1AA large |
| Primary | 3.59:1UIrequired | 3.31:1AA large | 1.00:1Fail | 1.44:1Fail |
| Accent | 5.19:1AA | 4.78:1AA | 1.44:1Fail | 1.00:1Fail |
| Primary Foreground | 19.63:1AAA | 18.10:1AAA | 5.46:1AArequired | 3.78:1AA large |
| Accent Foreground | 1.00:1Fail | 1.08:1Fail | 3.59:1AA large | 5.19:1AArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 16.21:1AAArequired | 14.50:1AAArequired | 2.78:1Fail | 2.31:1Fail |
| Primary | 5.82:1AArequired | 5.20:1AA | 1.00:1Fail | 1.20:1Fail |
| Accent | 7.00:1AAA | 6.26:1AA | 1.20:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.11:1Fail | 5.82:1AArequired | 7.00:1AAA |
| Accent Foreground | 1.00:1Fail | 1.11:1Fail | 5.82:1AA | 7.00: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: #fcf6f5;
--surface: #f6ecea;
--text: #261917;
--primary: #f03e3e;
--primary-foreground: #000000;
--accent: #7048e8;
--accent-foreground: #fcf6f5;
}
.dark {
--background: #0f0c0c;
--surface: #1d1919;
--text: #f6e7e5;
--primary: #fd4b49;
--primary-foreground: #0f0c0c;
--accent: #9c8bff;
--accent-foreground: #0f0c0c;
}
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: #fcf6f5;
--surface: #f6ecea;
--text: #261917;
--primary: #f03e3e;
--primary-foreground: #000000;
--accent: #7048e8;
--accent-foreground: #fcf6f5;
}
.dark {
color-scheme: dark;
--background: #0f0c0c;
--surface: #1d1919;
--text: #f6e7e5;
--primary: #fd4b49;
--primary-foreground: #0f0c0c;
--accent: #9c8bff;
--accent-foreground: #0f0c0c;
}
@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 Sunset Strip, which shares the vibrant style: text reaches 15.91:1 in light mode against 18.09:1, both use a red primary, and both use a purple accent.
- Compared with Cosmos, which shares the vibrant style: text reaches 15.91:1 in light mode against 16.13:1, the primary is red where Cosmos's is purple, and the accent is purple where Cosmos's is teal.