Palette Library
Level Select
A vibrant palette for gaming with a blue primary and a pink accent. Text reaches 15.85:1 in light mode and 16.01:1 in dark mode.
How to use it
Level Select's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fefcfb, cards #f6f1ed, and text #23201c at 15.85:1; buttons #2b59c3 with #fefcfb labels at 6.18:1; highlights #f72585 with #000000 text at 5.55:1.
- Dark mode: page #151312, cards #1d1a18, and text #f0eeed at 16.01:1; buttons #76a2ff with #151312 labels at 7.39:1; highlights #fe308b with #151312 text at 5.30:1.
- Links: #2b59c3 reaches 6.18:1 on the light page, and #76a2ff reaches 7.39:1 on the dark page.
- The accent as text: In light mode, keep #f72585 for fills and badges, not text: it reaches only 3.69: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 | #fefcfb | #151312 |
| Surface | #f6f1ed | #1d1a18 |
| Text | #23201c | #f0eeed |
| Primary | #2b59c3 | #76a2ff |
| Primary Foreground | #fefcfb | #151312 |
| Accent | #f72585 | #fe308b |
| Accent Foreground | #000000 | #151312 |
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.85:1AAArequired | 14.46:1AAArequired | 2.56:1Fail | 4.29:1AA large |
| Primary | 6.18:1AArequired | 5.64:1AA | 1.00:1Fail | 1.67:1Fail |
| Accent | 3.69:1AA large | 3.36:1AA large | 1.67:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.09:1Fail | 6.18:1AArequired | 3.69:1AA large |
| Accent Foreground | 20.53:1AAA | 18.72:1AAA | 3.31:1AA large | 5.55:1AArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 16.01:1AAArequired | 14.96:1AAArequired | 2.16:1Fail | 3.02:1AA large |
| Primary | 7.39:1AAArequired | 6.90:1AA | 1.00:1Fail | 1.39:1Fail |
| Accent | 5.30:1AA | 4.95:1AA | 1.39:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.07:1Fail | 7.39:1AAArequired | 5.30:1AA |
| Accent Foreground | 1.00:1Fail | 1.07:1Fail | 7.39:1AAA | 5.30:1AArequired |
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: #fefcfb;
--surface: #f6f1ed;
--text: #23201c;
--primary: #2b59c3;
--primary-foreground: #fefcfb;
--accent: #f72585;
--accent-foreground: #000000;
}
.dark {
--background: #151312;
--surface: #1d1a18;
--text: #f0eeed;
--primary: #76a2ff;
--primary-foreground: #151312;
--accent: #fe308b;
--accent-foreground: #151312;
}
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: #fefcfb;
--surface: #f6f1ed;
--text: #23201c;
--primary: #2b59c3;
--primary-foreground: #fefcfb;
--accent: #f72585;
--accent-foreground: #000000;
}
.dark {
color-scheme: dark;
--background: #151312;
--surface: #1d1a18;
--text: #f0eeed;
--primary: #76a2ff;
--primary-foreground: #151312;
--accent: #fe308b;
--accent-foreground: #151312;
}
@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 vibrant style: text reaches 15.85:1 in light mode against 15.88:1, both use a blue primary, and both use a pink accent.
- Compared with Bubblegum Pop, which shares the Gaming topic: text reaches 15.85: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.