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.

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

light mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text12.19:1AAArequired10.69:1AAArequired1.24:1Fail5.09:1AA
Primary9.77:1AAArequired8.57:1AAA1.00:1Fail4.08:1AA large
Accent2.39:1Fail2.09:1Fail4.08:1AA large1.00:1Fail
Primary Foreground1.00:1Fail1.14:1Fail9.77:1AAArequired2.39:1Fail
Accent Foreground12.19:1AAA10.69:1AAA1.24:1Fail5.09:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text15.41:1AAArequired13.75:1AAArequired1.84:1Fail2.22:1Fail
Primary8.35:1AAArequired7.45:1AAA1.00:1Fail1.20:1Fail
Accent6.91:1AA6.17:1AA1.20:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.12:1Fail8.35:1AAArequired6.91:1AA
Accent Foreground1.00:1Fail1.12:1Fail8.35:1AAA6.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.