Palette Library

Bubblegum Pop

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

How to use it

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

  • Light mode: page #fffcf7, cards #f5efe5, and text #313131 at 12.71:1; buttons #db2777 with #ffffff labels at 4.59:1; highlights #38bdf8 with #313131 text at 6.07:1.
  • Dark mode: page #1a1816, cards #27231d, and text #fef2e0 at 16.01:1; buttons #fc4c92 with #1a1816 labels at 5.55:1; highlights #38bdf8 with #1a1816 text at 8.26:1.
  • Links: #db2777 reaches 4.49:1 on the light page, and #fc4c92 reaches 5.55:1 on the dark page.
  • The accent as text: In light mode, keep #38bdf8 for fills and badges, not text: it reaches only 2.09: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
#fffcf7
#1a1816
Surface
#f5efe5
#27231d
Text
#313131
#fef2e0
Primary
#db2777
#fc4c92
Primary Foreground
#ffffff
#1a1816
Accent
#38bdf8
#38bdf8
Accent Foreground
#313131
#1a1816

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
Text12.71:1AAArequired11.37:1AAArequired2.83:1Fail6.07:1AA
Primary4.49:1UIrequired4.01:1AA large1.00:1Fail2.14:1Fail
Accent2.09:1Fail1.87:1Fail2.14:1Fail1.00:1Fail
Primary Foreground1.02:1Fail1.14:1Fail4.59:1AArequired2.14:1Fail
Accent Foreground12.71:1AAA11.37:1AAA2.83:1Fail6.07:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text16.01:1AAArequired14.12:1AAArequired2.88:1Fail1.93:1Fail
Primary5.55:1AArequired4.90:1AA1.00:1Fail1.48:1Fail
Accent8.26:1AAA7.29:1AAA1.48:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.13:1Fail5.55:1AArequired8.26:1AAA
Accent Foreground1.00:1Fail1.13:1Fail5.55:1AA8.26: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: #fffcf7;
  --surface: #f5efe5;
  --text: #313131;
  --primary: #db2777;
  --primary-foreground: #ffffff;
  --accent: #38bdf8;
  --accent-foreground: #313131;
}

.dark {
  --background: #1a1816;
  --surface: #27231d;
  --text: #fef2e0;
  --primary: #fc4c92;
  --primary-foreground: #1a1816;
  --accent: #38bdf8;
  --accent-foreground: #1a1816;
}

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: #fffcf7;
  --surface: #f5efe5;
  --text: #313131;
  --primary: #db2777;
  --primary-foreground: #ffffff;
  --accent: #38bdf8;
  --accent-foreground: #313131;
}

.dark {
  color-scheme: dark;
  --background: #1a1816;
  --surface: #27231d;
  --text: #fef2e0;
  --primary: #fc4c92;
  --primary-foreground: #1a1816;
  --accent: #38bdf8;
  --accent-foreground: #1a1816;
}

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