Palette Library

Arcade Night

A playful palette for gaming with a purple primary and a red accent. Text reaches 16.02:1 in light mode and 16.23:1 in dark mode.

How to use it

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

  • Light mode: page #fefeff, cards #ebf2fa, and text #1f2123 at 16.02:1; buttons #6741d9 with #fefeff labels at 6.24:1; highlights #ff6b6b with #1f2123 text at 5.82:1.
  • Dark mode: page #161617, cards #1e242a, and text #e9f4ff at 16.23:1; buttons #9f91ff with #161617 labels at 6.86:1; highlights #ff6b6b with #161617 text at 6.51:1.
  • Links: #6741d9 reaches 6.24:1 on the light page, and #9f91ff reaches 6.86:1 on the dark page.
  • The accent as text: In light mode, keep #ff6b6b for fills and badges, not text: it reaches only 2.75: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
#fefeff
#161617
Surface
#ebf2fa
#1e242a
Text
#1f2123
#e9f4ff
Primary
#6741d9
#9f91ff
Primary Foreground
#fefeff
#161617
Accent
#ff6b6b
#ff6b6b
Accent Foreground
#1f2123
#161617

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
Text16.02:1AAArequired14.31:1AAArequired2.56:1Fail5.82:1AA
Primary6.24:1AArequired5.58:1AA1.00:1Fail2.26:1Fail
Accent2.75:1Fail2.45:1Fail2.26:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.11:1Fail6.24:1AArequired2.75:1Fail
Accent Foreground16.02:1AAA14.31:1AAA2.56:1Fail5.82:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text16.23:1AAArequired14.05:1AAArequired2.36:1Fail2.49:1Fail
Primary6.86:1AArequired5.94:1AA1.00:1Fail1.05:1Fail
Accent6.51:1AA5.64:1AA1.05:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.15:1Fail6.86:1AArequired6.51:1AA
Accent Foreground1.00:1Fail1.15:1Fail6.86:1AA6.51: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: #fefeff;
  --surface: #ebf2fa;
  --text: #1f2123;
  --primary: #6741d9;
  --primary-foreground: #fefeff;
  --accent: #ff6b6b;
  --accent-foreground: #1f2123;
}

.dark {
  --background: #161617;
  --surface: #1e242a;
  --text: #e9f4ff;
  --primary: #9f91ff;
  --primary-foreground: #161617;
  --accent: #ff6b6b;
  --accent-foreground: #161617;
}

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: #fefeff;
  --surface: #ebf2fa;
  --text: #1f2123;
  --primary: #6741d9;
  --primary-foreground: #fefeff;
  --accent: #ff6b6b;
  --accent-foreground: #1f2123;
}

.dark {
  color-scheme: dark;
  --background: #161617;
  --surface: #1e242a;
  --text: #e9f4ff;
  --primary: #9f91ff;
  --primary-foreground: #161617;
  --accent: #ff6b6b;
  --accent-foreground: #161617;
}

@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 Berry Smoothie, which shares the playful style: text reaches 16.02:1 in light mode against 17.52:1, both use a purple primary, and both use a red accent.
  • Compared with Sunrise Cafe, which shares the playful style: text reaches 16.02:1 in light mode against 15.28:1, the primary is purple where Sunrise Cafe's is red, and the accent is red where Sunrise Cafe's is yellow.