Palette Library

Level Select

A vibrant palette for gaming with a blue primary and a pink accent. Text reaches 15.85:1 in light mode and 16.01:1 in dark mode.

How to use it

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

  • Light mode: page #fefcfb, cards #f6f1ed, and text #23201c at 15.85:1; buttons #2b59c3 with #fefcfb labels at 6.18:1; highlights #f72585 with #000000 text at 5.55:1.
  • Dark mode: page #151312, cards #1d1a18, and text #f0eeed at 16.01:1; buttons #76a2ff with #151312 labels at 7.39:1; highlights #fe308b with #151312 text at 5.30:1.
  • Links: #2b59c3 reaches 6.18:1 on the light page, and #76a2ff reaches 7.39:1 on the dark page.
  • The accent as text: In light mode, keep #f72585 for fills and badges, not text: it reaches only 3.69: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
#fefcfb
#151312
Surface
#f6f1ed
#1d1a18
Text
#23201c
#f0eeed
Primary
#2b59c3
#76a2ff
Primary Foreground
#fefcfb
#151312
Accent
#f72585
#fe308b
Accent Foreground
#000000
#151312

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.85:1AAArequired14.46:1AAArequired2.56:1Fail4.29:1AA large
Primary6.18:1AArequired5.64:1AA1.00:1Fail1.67:1Fail
Accent3.69:1AA large3.36:1AA large1.67:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.09:1Fail6.18:1AArequired3.69:1AA large
Accent Foreground20.53:1AAA18.72:1AAA3.31:1AA large5.55:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text16.01:1AAArequired14.96:1AAArequired2.16:1Fail3.02:1AA large
Primary7.39:1AAArequired6.90:1AA1.00:1Fail1.39:1Fail
Accent5.30:1AA4.95:1AA1.39:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.07:1Fail7.39:1AAArequired5.30:1AA
Accent Foreground1.00:1Fail1.07:1Fail7.39:1AAA5.30: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: #fefcfb;
  --surface: #f6f1ed;
  --text: #23201c;
  --primary: #2b59c3;
  --primary-foreground: #fefcfb;
  --accent: #f72585;
  --accent-foreground: #000000;
}

.dark {
  --background: #151312;
  --surface: #1d1a18;
  --text: #f0eeed;
  --primary: #76a2ff;
  --primary-foreground: #151312;
  --accent: #fe308b;
  --accent-foreground: #151312;
}

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: #fefcfb;
  --surface: #f6f1ed;
  --text: #23201c;
  --primary: #2b59c3;
  --primary-foreground: #fefcfb;
  --accent: #f72585;
  --accent-foreground: #000000;
}

.dark {
  color-scheme: dark;
  --background: #151312;
  --surface: #1d1a18;
  --text: #f0eeed;
  --primary: #76a2ff;
  --primary-foreground: #151312;
  --accent: #fe308b;
  --accent-foreground: #151312;
}

@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 Cyber Grid, which shares the vibrant style: text reaches 15.85:1 in light mode against 15.88:1, both use a blue primary, and both use a pink accent.
  • Compared with Bubblegum Pop, which shares the Gaming topic: text reaches 15.85:1 in light mode against 12.71:1, the primary is blue where Bubblegum Pop's is pink, and the accent is pink where Bubblegum Pop's is blue.