Palette Library
Stack Trace
A minimal palette for developer tools with a red primary and a blue accent. Text reaches 13.01:1 in light mode and 14.29:1 in dark mode.
How to use it
Stack Trace's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fcf7f6, cards #eee7e6, and text #392926 at 13.01:1; buttons #b42318 with #fcf7f6 labels at 6.19:1; highlights #475467 with #fcf7f6 text at 7.23:1.
- Dark mode: page #13100f, cards #201f1e, and text #eaddda at 14.29:1; buttons #ff7260 with #13100f labels at 7.06:1; highlights #9eadc3 with #13100f text at 8.31:1.
- Links: #b42318 reaches 6.19:1 on the light page, and #ff7260 reaches 7.06:1 on the dark page.
- The accent as text: #475467 also works as text: 7.23:1 on the light page and 8.31: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 | #fcf7f6 | #13100f |
| Surface | #eee7e6 | #201f1e |
| Text | #392926 | #eaddda |
| Primary | #b42318 | #ff7260 |
| Primary Foreground | #fcf7f6 | #13100f |
| Accent | #475467 | #9eadc3 |
| Accent Foreground | #fcf7f6 | #13100f |
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.01:1AAArequired | 11.32:1AAArequired | 2.10:1Fail | 1.79:1Fail |
| Primary | 6.19:1AArequired | 5.38:1AA | 1.00:1Fail | 1.16:1Fail |
| Accent | 7.23:1AAA | 6.29:1AA | 1.16:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.14:1Fail | 6.19:1AArequired | 7.23:1AAA |
| Accent Foreground | 1.00:1Fail | 1.14:1Fail | 6.19:1AA | 7.23:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 14.29:1AAArequired | 12.42:1AAArequired | 2.02:1Fail | 1.71:1Fail |
| Primary | 7.06:1AAArequired | 6.13:1AA | 1.00:1Fail | 1.17:1Fail |
| Accent | 8.31:1AAA | 7.22:1AAA | 1.17:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.15:1Fail | 7.06:1AAArequired | 8.31:1AAA |
| Accent Foreground | 1.00:1Fail | 1.15:1Fail | 7.06:1AAA | 8.31: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: #fcf7f6;
--surface: #eee7e6;
--text: #392926;
--primary: #b42318;
--primary-foreground: #fcf7f6;
--accent: #475467;
--accent-foreground: #fcf7f6;
}
.dark {
--background: #13100f;
--surface: #201f1e;
--text: #eaddda;
--primary: #ff7260;
--primary-foreground: #13100f;
--accent: #9eadc3;
--accent-foreground: #13100f;
}
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: #fcf7f6;
--surface: #eee7e6;
--text: #392926;
--primary: #b42318;
--primary-foreground: #fcf7f6;
--accent: #475467;
--accent-foreground: #fcf7f6;
}
.dark {
color-scheme: dark;
--background: #13100f;
--surface: #201f1e;
--text: #eaddda;
--primary: #ff7260;
--primary-foreground: #13100f;
--accent: #9eadc3;
--accent-foreground: #13100f;
}
@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 Code Review, which shares the minimal style: text reaches 13.01:1 in light mode against 17.06:1, the primary is red where Code Review's is blue, and the accent is blue where Code Review's is green.
- Compared with Mono Blueprint, which shares the minimal style: text reaches 13.01:1 in light mode against 16.04:1, the primary is red where Mono Blueprint's is blue, and both use a blue accent.