Palette Library

Arcade Cabinet

A retro palette for gaming with a red primary and a yellow accent. Text reaches 18.95:1 in light mode and 15.59:1 in dark mode.

How to use it

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

  • Light mode: page #fefdfc, cards #f5f4f3, and text #150d02 at 18.95:1; buttons #e63946 with #150d02 labels at 4.62:1; highlights #ffd60a with #150d02 text at 13.64:1.
  • Dark mode: page #10100e, cards #1f1d1a, and text #f3e7d4 at 15.59:1; buttons #fd5159 with #10100e labels at 5.89:1; highlights #ffd60a with #10100e text at 13.49:1.
  • Links: #e63946 reaches 4.10:1 on the light page, and #fd5159 reaches 5.89:1 on the dark page.
  • The accent as text: In light mode, keep #ffd60a for fills and badges, not text: it reaches only 1.38: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
#fefdfc
#10100e
Surface
#f5f4f3
#1f1d1a
Text
#150d02
#f3e7d4
Primary
#e63946
#fd5159
Primary Foreground
#150d02
#10100e
Accent
#ffd60a
#ffd60a
Accent Foreground
#150d02
#10100e

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
Text18.95:1AAArequired17.53:1AAArequired4.62:1AA13.64:1AAA
Primary4.10:1UIrequired3.79:1AA large1.00:1Fail2.95:1Fail
Accent1.38:1Fail1.28:1Fail2.95:1Fail1.00:1Fail
Primary Foreground18.95:1AAA17.53:1AAA4.62:1AArequired13.64:1AAA
Accent Foreground18.95:1AAA17.53:1AAA4.62:1AA13.64:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text15.59:1AAArequired13.76:1AAArequired2.64:1Fail1.15:1Fail
Primary5.89:1AArequired5.20:1AA1.00:1Fail2.28:1Fail
Accent13.49:1AAA11.91:1AAA2.28:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.13:1Fail5.89:1AArequired13.49:1AAA
Accent Foreground1.00:1Fail1.13:1Fail5.89:1AA13.49: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: #fefdfc;
  --surface: #f5f4f3;
  --text: #150d02;
  --primary: #e63946;
  --primary-foreground: #150d02;
  --accent: #ffd60a;
  --accent-foreground: #150d02;
}

.dark {
  --background: #10100e;
  --surface: #1f1d1a;
  --text: #f3e7d4;
  --primary: #fd5159;
  --primary-foreground: #10100e;
  --accent: #ffd60a;
  --accent-foreground: #10100e;
}

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: #fefdfc;
  --surface: #f5f4f3;
  --text: #150d02;
  --primary: #e63946;
  --primary-foreground: #150d02;
  --accent: #ffd60a;
  --accent-foreground: #150d02;
}

.dark {
  color-scheme: dark;
  --background: #10100e;
  --surface: #1f1d1a;
  --text: #f3e7d4;
  --primary: #fd5159;
  --primary-foreground: #10100e;
  --accent: #ffd60a;
  --accent-foreground: #10100e;
}

@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 Quest Log, which shares the retro style: text reaches 18.95:1 in light mode against 18.79:1, the primary is red where Quest Log's is brown, and both use a yellow accent.
  • Compared with Sunrise Cafe, which shares a color: text reaches 18.95:1 in light mode against 15.28:1, both use a red primary, and both use a yellow accent.