Palette Library
Jukebox
A retro palette for gaming with a pink primary and a blue accent. Text reaches 15.25:1 in light mode and 15.44:1 in dark mode.
How to use it
Jukebox's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fffefd, cards #fff5ec, and text #2d231a at 15.25:1; buttons #b5179e with #fffefd labels at 5.82:1; highlights #4cc9f0 with #2d231a text at 7.98:1.
- Dark mode: page #10100f, cards #1e1d1c, and text #f4e5d7 at 15.44:1; buttons #f05bd5 with #10100f labels at 6.49:1; highlights #4cc9f0 with #10100f text at 9.90:1.
- Links: #b5179e reaches 5.82:1 on the light page, and #f05bd5 reaches 6.49:1 on the dark page.
- The accent as text: In light mode, keep #4cc9f0 for fills and badges, not text: it reaches only 1.90: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 | #fffefd | #10100f |
| Surface | #fff5ec | #1e1d1c |
| Text | #2d231a | #f4e5d7 |
| Primary | #b5179e | #f05bd5 |
| Primary Foreground | #fffefd | #10100f |
| Accent | #4cc9f0 | #4cc9f0 |
| Accent Foreground | #2d231a | #10100f |
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 | 15.25:1AAArequired | 14.28:1AAArequired | 2.61:1Fail | 7.98:1AAA |
| Primary | 5.82:1AArequired | 5.45:1AA | 1.00:1Fail | 3.04:1AA large |
| Accent | 1.90:1Fail | 1.78:1Fail | 3.04:1AA large | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.06:1Fail | 5.82:1AArequired | 1.90:1Fail |
| Accent Foreground | 15.25:1AAA | 14.28:1AAA | 2.61:1Fail | 7.98:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 15.44:1AAArequired | 13.65:1AAArequired | 2.37:1Fail | 1.56:1Fail |
| Primary | 6.49:1AArequired | 5.74:1AA | 1.00:1Fail | 1.52:1Fail |
| Accent | 9.90:1AAA | 8.75:1AAA | 1.52:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.13:1Fail | 6.49:1AArequired | 9.90:1AAA |
| Accent Foreground | 1.00:1Fail | 1.13:1Fail | 6.49:1AA | 9.90: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: #fffefd;
--surface: #fff5ec;
--text: #2d231a;
--primary: #b5179e;
--primary-foreground: #fffefd;
--accent: #4cc9f0;
--accent-foreground: #2d231a;
}
.dark {
--background: #10100f;
--surface: #1e1d1c;
--text: #f4e5d7;
--primary: #f05bd5;
--primary-foreground: #10100f;
--accent: #4cc9f0;
--accent-foreground: #10100f;
}
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: #fffefd;
--surface: #fff5ec;
--text: #2d231a;
--primary: #b5179e;
--primary-foreground: #fffefd;
--accent: #4cc9f0;
--accent-foreground: #2d231a;
}
.dark {
color-scheme: dark;
--background: #10100f;
--surface: #1e1d1c;
--text: #f4e5d7;
--primary: #f05bd5;
--primary-foreground: #10100f;
--accent: #4cc9f0;
--accent-foreground: #10100f;
}
@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 Bubblegum Pop, which shares the Gaming topic: text reaches 15.25:1 in light mode against 12.71:1, both use a pink primary, and both use a blue accent.
- Compared with Cyber Grid, which shares the Gaming topic: text reaches 15.25: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.