Palette Library

Spark

A vibrant palette for SaaS with a red primary and a purple accent. Text reaches 15.91:1 in light mode and 16.21:1 in dark mode.

How to use it

Spark's roles on a real interface, with the ratios stored for this palette.

  • Light mode: page #fcf6f5, cards #f6ecea, and text #261917 at 15.91:1; buttons #f03e3e with #000000 labels at 5.46:1; highlights #7048e8 with #fcf6f5 text at 5.19:1.
  • Dark mode: page #0f0c0c, cards #1d1919, and text #f6e7e5 at 16.21:1; buttons #fd4b49 with #0f0c0c labels at 5.82:1; highlights #9c8bff with #0f0c0c text at 7.00:1.
  • Links: #f03e3e reaches 3.59:1 on the light page, and #fd4b49 reaches 5.82:1 on the dark page.
  • The accent as text: #7048e8 also works as text: 5.19:1 on the light page and 7.00: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.

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
#fcf6f5
#0f0c0c
Surface
#f6ecea
#1d1919
Text
#261917
#f6e7e5
Primary
#f03e3e
#fd4b49
Primary Foreground
#000000
#0f0c0c
Accent
#7048e8
#9c8bff
Accent Foreground
#fcf6f5
#0f0c0c

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
Text15.91:1AAArequired14.67:1AAArequired4.42:1AA large3.06:1AA large
Primary3.59:1UIrequired3.31:1AA large1.00:1Fail1.44:1Fail
Accent5.19:1AA4.78:1AA1.44:1Fail1.00:1Fail
Primary Foreground19.63:1AAA18.10:1AAA5.46:1AArequired3.78:1AA large
Accent Foreground1.00:1Fail1.08:1Fail3.59:1AA large5.19:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text16.21:1AAArequired14.50:1AAArequired2.78:1Fail2.31:1Fail
Primary5.82:1AArequired5.20:1AA1.00:1Fail1.20:1Fail
Accent7.00:1AAA6.26:1AA1.20:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.11:1Fail5.82:1AArequired7.00:1AAA
Accent Foreground1.00:1Fail1.11:1Fail5.82:1AA7.00: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: #fcf6f5;
  --surface: #f6ecea;
  --text: #261917;
  --primary: #f03e3e;
  --primary-foreground: #000000;
  --accent: #7048e8;
  --accent-foreground: #fcf6f5;
}

.dark {
  --background: #0f0c0c;
  --surface: #1d1919;
  --text: #f6e7e5;
  --primary: #fd4b49;
  --primary-foreground: #0f0c0c;
  --accent: #9c8bff;
  --accent-foreground: #0f0c0c;
}

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: #fcf6f5;
  --surface: #f6ecea;
  --text: #261917;
  --primary: #f03e3e;
  --primary-foreground: #000000;
  --accent: #7048e8;
  --accent-foreground: #fcf6f5;
}

.dark {
  color-scheme: dark;
  --background: #0f0c0c;
  --surface: #1d1919;
  --text: #f6e7e5;
  --primary: #fd4b49;
  --primary-foreground: #0f0c0c;
  --accent: #9c8bff;
  --accent-foreground: #0f0c0c;
}

@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 Sunset Strip, which shares the vibrant style: text reaches 15.91:1 in light mode against 18.09:1, both use a red primary, and both use a purple accent.
  • Compared with Cosmos, which shares the vibrant style: text reaches 15.91:1 in light mode against 16.13:1, the primary is red where Cosmos's is purple, and the accent is purple where Cosmos's is teal.