Palette Library
Invoice
A minimal palette for finance with a blue primary and a green accent. Text reaches 12.19:1 in light mode and 15.41:1 in dark mode.
How to use it
Invoice's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #faf8f6, cards #f2e8df, and text #393027 at 12.19:1; buttons #1e3a8a with #faf8f6 labels at 9.77:1; highlights #10b981 with #393027 text at 5.09:1.
- Dark mode: page #1b1916, cards #2a2219, and text #fceee1 at 15.41:1; buttons #90b2ff with #1b1916 labels at 8.35:1; highlights #10b981 with #1b1916 text at 6.91:1.
- Links: #1e3a8a reaches 9.77:1 on the light page, and #90b2ff reaches 8.35:1 on the dark page.
- The accent as text: In light mode, keep #10b981 for fills and badges, not text: it reaches only 2.39: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 | #faf8f6 | #1b1916 |
| Surface | #f2e8df | #2a2219 |
| Text | #393027 | #fceee1 |
| Primary | #1e3a8a | #90b2ff |
| Primary Foreground | #faf8f6 | #1b1916 |
| Accent | #10b981 | #10b981 |
| Accent Foreground | #393027 | #1b1916 |
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 | 12.19:1AAArequired | 10.69:1AAArequired | 1.24:1Fail | 5.09:1AA |
| Primary | 9.77:1AAArequired | 8.57:1AAA | 1.00:1Fail | 4.08:1AA large |
| Accent | 2.39:1Fail | 2.09:1Fail | 4.08:1AA large | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.14:1Fail | 9.77:1AAArequired | 2.39:1Fail |
| Accent Foreground | 12.19:1AAA | 10.69:1AAA | 1.24:1Fail | 5.09:1AArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 15.41:1AAArequired | 13.75:1AAArequired | 1.84:1Fail | 2.22:1Fail |
| Primary | 8.35:1AAArequired | 7.45:1AAA | 1.00:1Fail | 1.20:1Fail |
| Accent | 6.91:1AA | 6.17:1AA | 1.20:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.12:1Fail | 8.35:1AAArequired | 6.91:1AA |
| Accent Foreground | 1.00:1Fail | 1.12:1Fail | 8.35:1AAA | 6.91:1AArequired |
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: #faf8f6;
--surface: #f2e8df;
--text: #393027;
--primary: #1e3a8a;
--primary-foreground: #faf8f6;
--accent: #10b981;
--accent-foreground: #393027;
}
.dark {
--background: #1b1916;
--surface: #2a2219;
--text: #fceee1;
--primary: #90b2ff;
--primary-foreground: #1b1916;
--accent: #10b981;
--accent-foreground: #1b1916;
}
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: #faf8f6;
--surface: #f2e8df;
--text: #393027;
--primary: #1e3a8a;
--primary-foreground: #faf8f6;
--accent: #10b981;
--accent-foreground: #393027;
}
.dark {
color-scheme: dark;
--background: #1b1916;
--surface: #2a2219;
--text: #fceee1;
--primary: #90b2ff;
--primary-foreground: #1b1916;
--accent: #10b981;
--accent-foreground: #1b1916;
}
@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 Ledger, which shares the minimal style: text reaches 12.19:1 in light mode against 11.98:1, both use a blue primary, and both use a green accent.
- Compared with Steady Ledger, which shares the Finance topic: text reaches 12.19:1 in light mode against 16.94:1, the primary is blue where Steady Ledger's is green, and the accent is green where Steady Ledger's is blue.