Palette Library

Cyber Grid

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

How to use it

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

  • Light mode: page #f4f9fd, cards #e6ecf1, and text #181e22 at 15.88:1; buttons #0891b2 with #000000 labels at 5.70:1; highlights #e879f9 with #181e22 text at 6.84:1.
  • Dark mode: page #121a20, cards #202223, and text #eaf2fa at 15.55:1; buttons #32a6c8 with #121a20 labels at 6.21:1; highlights #e879f9 with #121a20 text at 7.14:1.
  • Links: #0891b2 reaches 3.47:1 on the light page, and #32a6c8 reaches 6.21:1 on the dark page.
  • The accent as text: In light mode, keep #e879f9 for fills and badges, not text: it reaches only 2.32: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
#f4f9fd
#121a20
Surface
#e6ecf1
#202223
Text
#181e22
#eaf2fa
Primary
#0891b2
#32a6c8
Primary Foreground
#000000
#121a20
Accent
#e879f9
#e879f9
Accent Foreground
#181e22
#121a20

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.88:1AAArequired14.13:1AAArequired4.57:1AA6.84:1AA
Primary3.47:1UIrequired3.09:1AA large1.00:1Fail1.49:1Fail
Accent2.32:1Fail2.06:1Fail1.49:1Fail1.00:1Fail
Primary Foreground19.81:1AAA17.63:1AAA5.70:1AArequired8.53:1AAA
Accent Foreground15.88:1AAA14.13:1AAA4.57:1AA6.84:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text15.55:1AAArequired14.13:1AAArequired2.50:1Fail2.17:1Fail
Primary6.21:1AArequired5.64:1AA1.00:1Fail1.14:1Fail
Accent7.14:1AAA6.49:1AA1.14:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.10:1Fail6.21:1AArequired7.14:1AAA
Accent Foreground1.00:1Fail1.10:1Fail6.21:1AA7.14: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: #f4f9fd;
  --surface: #e6ecf1;
  --text: #181e22;
  --primary: #0891b2;
  --primary-foreground: #000000;
  --accent: #e879f9;
  --accent-foreground: #181e22;
}

.dark {
  --background: #121a20;
  --surface: #202223;
  --text: #eaf2fa;
  --primary: #32a6c8;
  --primary-foreground: #121a20;
  --accent: #e879f9;
  --accent-foreground: #121a20;
}

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: #f4f9fd;
  --surface: #e6ecf1;
  --text: #181e22;
  --primary: #0891b2;
  --primary-foreground: #000000;
  --accent: #e879f9;
  --accent-foreground: #181e22;
}

.dark {
  color-scheme: dark;
  --background: #121a20;
  --surface: #202223;
  --text: #eaf2fa;
  --primary: #32a6c8;
  --primary-foreground: #121a20;
  --accent: #e879f9;
  --accent-foreground: #121a20;
}

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