Palette Library

Power Up

A bold palette for gaming with a purple primary and a yellow accent. Text reaches 12.40:1 in light mode and 14.85:1 in dark mode.

How to use it

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

  • Light mode: page #f1f6fb, cards #e6eaee, and text #2a2f35 at 12.40:1; buttons #7e22ce with #f1f6fb labels at 6.42:1; highlights #facc15 with #2a2f35 text at 8.81:1.
  • Dark mode: page #08090a, cards #0b121a, and text #d3e0ed at 14.85:1; buttons #ba87ff with #08090a labels at 7.58:1; highlights #facc15 with #08090a text at 13.01:1.
  • Links: #7e22ce reaches 6.42:1 on the light page, and #ba87ff reaches 7.58:1 on the dark page.
  • The accent as text: In light mode, keep #facc15 for fills and badges, not text: it reaches only 1.40: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
#f1f6fb
#08090a
Surface
#e6eaee
#0b121a
Text
#2a2f35
#d3e0ed
Primary
#7e22ce
#ba87ff
Primary Foreground
#f1f6fb
#08090a
Accent
#facc15
#facc15
Accent Foreground
#2a2f35
#08090a

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.40:1AAArequired11.15:1AAArequired1.93:1Fail8.81:1AAA
Primary6.42:1AArequired5.77:1AA1.00:1Fail4.56:1AA
Accent1.40:1Fail1.26:1Fail4.56:1AA1.00:1Fail
Primary Foreground1.00:1Fail1.11:1Fail6.42:1AArequired1.40:1Fail
Accent Foreground12.40:1AAA11.15:1AAA1.93:1Fail8.81:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text14.85:1AAArequired14.03:1AAArequired1.95:1Fail1.14:1Fail
Primary7.58:1AAArequired7.16:1AAA1.00:1Fail1.71:1Fail
Accent13.01:1AAA12.29:1AAA1.71:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.05:1Fail7.58:1AAArequired13.01:1AAA
Accent Foreground1.00:1Fail1.05:1Fail7.58:1AAA13.01: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: #f1f6fb;
  --surface: #e6eaee;
  --text: #2a2f35;
  --primary: #7e22ce;
  --primary-foreground: #f1f6fb;
  --accent: #facc15;
  --accent-foreground: #2a2f35;
}

.dark {
  --background: #08090a;
  --surface: #0b121a;
  --text: #d3e0ed;
  --primary: #ba87ff;
  --primary-foreground: #08090a;
  --accent: #facc15;
  --accent-foreground: #08090a;
}

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: #f1f6fb;
  --surface: #e6eaee;
  --text: #2a2f35;
  --primary: #7e22ce;
  --primary-foreground: #f1f6fb;
  --accent: #facc15;
  --accent-foreground: #2a2f35;
}

.dark {
  color-scheme: dark;
  --background: #08090a;
  --surface: #0b121a;
  --text: #d3e0ed;
  --primary: #ba87ff;
  --primary-foreground: #08090a;
  --accent: #facc15;
  --accent-foreground: #08090a;
}

@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 Cart and Go, which shares the bold style: text reaches 12.40:1 in light mode against 12.85:1, both use a purple primary, and both use a yellow accent.
  • Compared with Night Shift, which shares the bold style: text reaches 12.40:1 in light mode against 13.69:1, both use a purple primary, and both use a yellow accent.