Palette Library

Pixel Arcade

A vibrant palette for gaming with a purple primary and a green accent. Text reaches 15.08:1 in light mode and 14.45:1 in dark mode.

How to use it

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

  • Light mode: page #fafbfe, cards #e7ecf3, and text #1e242d at 15.08:1; buttons #9333ea with #fafbfe labels at 5.20:1; highlights #22c55e with #1e242d text at 6.84:1.
  • Dark mode: page #0d1117, cards #1b1c1c, and text #d6e2f4 at 14.45:1; buttons #b57aff with #0d1117 labels at 6.48:1; highlights #22c55e with #0d1117 text at 8.30:1.
  • Links: #9333ea reaches 5.20:1 on the light page, and #b57aff reaches 6.48:1 on the dark page.
  • The accent as text: In light mode, keep #22c55e for fills and badges, not text: it reaches only 2.20: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
#fafbfe
#0d1117
Surface
#e7ecf3
#1b1c1c
Text
#1e242d
#d6e2f4
Primary
#9333ea
#b57aff
Primary Foreground
#fafbfe
#0d1117
Accent
#22c55e
#22c55e
Accent Foreground
#1e242d
#0d1117

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.08:1AAArequired13.14:1AAArequired2.90:1Fail6.84:1AA
Primary5.20:1AArequired4.53:1AA1.00:1Fail2.36:1Fail
Accent2.20:1Fail1.91:1Fail2.36:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.14:1Fail5.20:1AArequired2.20:1Fail
Accent Foreground15.08:1AAA13.14:1AAA2.90:1Fail6.84:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text14.45:1AAArequired13.04:1AAArequired2.23:1Fail1.74:1Fail
Primary6.48:1AArequired5.85:1AA1.00:1Fail1.28:1Fail
Accent8.30:1AAA7.49:1AAA1.28:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.10:1Fail6.48:1AArequired8.30:1AAA
Accent Foreground1.00:1Fail1.10:1Fail6.48:1AA8.30: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: #fafbfe;
  --surface: #e7ecf3;
  --text: #1e242d;
  --primary: #9333ea;
  --primary-foreground: #fafbfe;
  --accent: #22c55e;
  --accent-foreground: #1e242d;
}

.dark {
  --background: #0d1117;
  --surface: #1b1c1c;
  --text: #d6e2f4;
  --primary: #b57aff;
  --primary-foreground: #0d1117;
  --accent: #22c55e;
  --accent-foreground: #0d1117;
}

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: #fafbfe;
  --surface: #e7ecf3;
  --text: #1e242d;
  --primary: #9333ea;
  --primary-foreground: #fafbfe;
  --accent: #22c55e;
  --accent-foreground: #1e242d;
}

.dark {
  color-scheme: dark;
  --background: #0d1117;
  --surface: #1b1c1c;
  --text: #d6e2f4;
  --primary: #b57aff;
  --primary-foreground: #0d1117;
  --accent: #22c55e;
  --accent-foreground: #0d1117;
}

@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 Aurora, which shares the vibrant style: text reaches 15.08:1 in light mode against 14.67:1, both use a purple primary, and both use a green accent.
  • Compared with Lavender Field, which shares a color: text reaches 15.08:1 in light mode against 19.07:1, both use a purple primary, and both use a green accent.