Palette Library
Savings Jar
A playful palette for finance with a green primary and a yellow accent. Text reaches 16.35:1 in light mode and 16.08:1 in dark mode.
How to use it
Savings Jar's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #f8fcff, cards #e9f0f7, and text #1c1d1f at 16.35:1; buttons #2f9e44 with #1c1d1f labels at 4.89:1; highlights #ffd43b with #1c1d1f text at 11.83:1.
- Dark mode: page #12161a, cards #1e2226, and text #eaf2fa at 16.08:1; buttons #44b055 with #12161a labels at 6.56:1; highlights #ffd43b with #12161a text at 12.75:1.
- Links: #2f9e44 reaches 3.34:1 on the light page, and #44b055 reaches 6.56:1 on the dark page.
- The accent as text: In light mode, keep #ffd43b for fills and badges, not text: it reaches only 1.38: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 | #f8fcff | #12161a |
| Surface | #e9f0f7 | #1e2226 |
| Text | #1c1d1f | #eaf2fa |
| Primary | #2f9e44 | #44b055 |
| Primary Foreground | #1c1d1f | #12161a |
| Accent | #ffd43b | #ffd43b |
| Accent Foreground | #1c1d1f | #12161a |
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 | 16.35:1AAArequired | 14.67:1AAArequired | 4.89:1AA | 11.83:1AAA |
| Primary | 3.34:1UIrequired | 2.99:1Fail | 1.00:1Fail | 2.41:1Fail |
| Accent | 1.38:1Fail | 1.24:1Fail | 2.41:1Fail | 1.00:1Fail |
| Primary Foreground | 16.35:1AAA | 14.67:1AAA | 4.89:1AArequired | 11.83:1AAA |
| Accent Foreground | 16.35:1AAA | 14.67:1AAA | 4.89:1AA | 11.83:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 16.08:1AAArequired | 14.16:1AAArequired | 2.44:1Fail | 1.26:1Fail |
| Primary | 6.56:1AArequired | 5.78:1AA | 1.00:1Fail | 1.94:1Fail |
| Accent | 12.75:1AAA | 11.22:1AAA | 1.94:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.13:1Fail | 6.56:1AArequired | 12.75:1AAA |
| Accent Foreground | 1.00:1Fail | 1.13:1Fail | 6.56:1AA | 12.75: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: #f8fcff;
--surface: #e9f0f7;
--text: #1c1d1f;
--primary: #2f9e44;
--primary-foreground: #1c1d1f;
--accent: #ffd43b;
--accent-foreground: #1c1d1f;
}
.dark {
--background: #12161a;
--surface: #1e2226;
--text: #eaf2fa;
--primary: #44b055;
--primary-foreground: #12161a;
--accent: #ffd43b;
--accent-foreground: #12161a;
}
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: #f8fcff;
--surface: #e9f0f7;
--text: #1c1d1f;
--primary: #2f9e44;
--primary-foreground: #1c1d1f;
--accent: #ffd43b;
--accent-foreground: #1c1d1f;
}
.dark {
color-scheme: dark;
--background: #12161a;
--surface: #1e2226;
--text: #eaf2fa;
--primary: #44b055;
--primary-foreground: #12161a;
--accent: #ffd43b;
--accent-foreground: #12161a;
}
@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 Vault Green, which shares the Finance topic: text reaches 16.35:1 in light mode against 18.60:1, both use a green primary, and both use a yellow accent.
- Compared with Steady Ledger, which shares the Finance topic: text reaches 16.35:1 in light mode against 16.94:1, both use a green primary, and the accent is yellow where Steady Ledger's is blue.