Palette Library
Neon District
A vibrant palette for gaming with a pink primary and a teal accent. Text reaches 11.97:1 in light mode and 14.78:1 in dark mode.
How to use it
Neon District's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #f2f8fe, cards #e9eaec, and text #2c3339 at 11.97:1; buttons #c026d3 with #ffffff labels at 4.70:1; highlights #22d3ee with #2c3339 text at 7.08:1.
- Dark mode: page #151719, cards #1e252d, and text #e8e9ea at 14.78:1; buttons #df4df2 with #151719 labels at 5.54:1; highlights #22d3ee with #151719 text at 9.94:1.
- Links: #c026d3 reaches 4.40:1 on the light page, and #df4df2 reaches 5.54:1 on the dark page.
- The accent as text: In light mode, keep #22d3ee for fills and badges, not text: it reaches only 1.68: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 | #f2f8fe | #151719 |
| Surface | #e9eaec | #1e252d |
| Text | #2c3339 | #e8e9ea |
| Primary | #c026d3 | #df4df2 |
| Primary Foreground | #ffffff | #151719 |
| Accent | #22d3ee | #22d3ee |
| Accent Foreground | #2c3339 | #151719 |
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 | 11.97:1AAArequired | 10.63:1AAArequired | 2.71:1Fail | 7.08:1AAA |
| Primary | 4.40:1UIrequired | 3.91:1AA large | 1.00:1Fail | 2.60:1Fail |
| Accent | 1.68:1Fail | 1.50:1Fail | 2.60:1Fail | 1.00:1Fail |
| Primary Foreground | 1.06:1Fail | 1.20:1Fail | 4.70:1AArequired | 1.80:1Fail |
| Accent Foreground | 11.97:1AAA | 10.63:1AAA | 2.71:1Fail | 7.08:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 14.78:1AAArequired | 12.72:1AAArequired | 2.66:1Fail | 1.48:1Fail |
| Primary | 5.54:1AArequired | 4.77:1AA | 1.00:1Fail | 1.79:1Fail |
| Accent | 9.94:1AAA | 8.55:1AAA | 1.79:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.16:1Fail | 5.54:1AArequired | 9.94:1AAA |
| Accent Foreground | 1.00:1Fail | 1.16:1Fail | 5.54:1AA | 9.94: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: #f2f8fe;
--surface: #e9eaec;
--text: #2c3339;
--primary: #c026d3;
--primary-foreground: #ffffff;
--accent: #22d3ee;
--accent-foreground: #2c3339;
}
.dark {
--background: #151719;
--surface: #1e252d;
--text: #e8e9ea;
--primary: #df4df2;
--primary-foreground: #151719;
--accent: #22d3ee;
--accent-foreground: #151719;
}
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: #f2f8fe;
--surface: #e9eaec;
--text: #2c3339;
--primary: #c026d3;
--primary-foreground: #ffffff;
--accent: #22d3ee;
--accent-foreground: #2c3339;
}
.dark {
color-scheme: dark;
--background: #151719;
--surface: #1e252d;
--text: #e8e9ea;
--primary: #df4df2;
--primary-foreground: #151719;
--accent: #22d3ee;
--accent-foreground: #151719;
}
@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 Lagoon, which shares the vibrant style: text reaches 11.97:1 in light mode against 17.24:1, the primary is pink where Lagoon's is teal, and the accent is teal where Lagoon's is pink.
- Compared with Cyber Grid, which shares the vibrant style: text reaches 11.97:1 in light mode against 15.88:1, the primary is pink where Cyber Grid's is blue, and the accent is teal where Cyber Grid's is pink.