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.
NewExplore 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.
NewExplore your palette →
Roles
Five roles and their two foregrounds. Copy the exact HEX values.
| Role | Light | Dark |
|---|---|---|
| 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.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 12.71:1AAArequired | 11.37:1AAArequired | 2.83:1Fail | 6.07:1AA |
| Primary | 4.49:1UIrequired | 4.01:1AA large | 1.00:1Fail | 2.14:1Fail |
| Accent | 2.09:1Fail | 1.87:1Fail | 2.14:1Fail | 1.00:1Fail |
| Primary Foreground | 1.02:1Fail | 1.14:1Fail | 4.59:1AArequired | 2.14:1Fail |
| Accent Foreground | 12.71:1AAA | 11.37:1AAA | 2.83:1Fail | 6.07:1AArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 16.01:1AAArequired | 14.12:1AAArequired | 2.88:1Fail | 1.93:1Fail |
| Primary | 5.55:1AArequired | 4.90:1AA | 1.00:1Fail | 1.48:1Fail |
| Accent | 8.26:1AAA | 7.29:1AAA | 1.48:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.13:1Fail | 5.55:1AArequired | 8.26:1AAA |
| Accent Foreground | 1.00:1Fail | 1.13:1Fail | 5.55:1AA | 8.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.