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.

Get startedNew

Explore 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.

Get startedNew

Explore your palette →

Roles

Five roles and their two foregrounds. Copy the exact HEX values.

RoleLightDark
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.

light mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text16.35:1AAArequired14.67:1AAArequired4.89:1AA11.83:1AAA
Primary3.34:1UIrequired2.99:1Fail1.00:1Fail2.41:1Fail
Accent1.38:1Fail1.24:1Fail2.41:1Fail1.00:1Fail
Primary Foreground16.35:1AAA14.67:1AAA4.89:1AArequired11.83:1AAA
Accent Foreground16.35:1AAA14.67:1AAA4.89:1AA11.83:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text16.08:1AAArequired14.16:1AAArequired2.44:1Fail1.26:1Fail
Primary6.56:1AArequired5.78:1AA1.00:1Fail1.94:1Fail
Accent12.75:1AAA11.22:1AAA1.94:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.13:1Fail6.56:1AArequired12.75:1AAA
Accent Foreground1.00:1Fail1.13:1Fail6.56:1AA12.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.