Palette Library
Arcade Cabinet
A retro palette for gaming with a red primary and a yellow accent. Text reaches 18.95:1 in light mode and 15.59:1 in dark mode.
How to use it
Arcade Cabinet's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fefdfc, cards #f5f4f3, and text #150d02 at 18.95:1; buttons #e63946 with #150d02 labels at 4.62:1; highlights #ffd60a with #150d02 text at 13.64:1.
- Dark mode: page #10100e, cards #1f1d1a, and text #f3e7d4 at 15.59:1; buttons #fd5159 with #10100e labels at 5.89:1; highlights #ffd60a with #10100e text at 13.49:1.
- Links: #e63946 reaches 4.10:1 on the light page, and #fd5159 reaches 5.89:1 on the dark page.
- The accent as text: In light mode, keep #ffd60a for fills and badges, not text: it reaches only 1.38: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 | #fefdfc | #10100e |
| Surface | #f5f4f3 | #1f1d1a |
| Text | #150d02 | #f3e7d4 |
| Primary | #e63946 | #fd5159 |
| Primary Foreground | #150d02 | #10100e |
| Accent | #ffd60a | #ffd60a |
| Accent Foreground | #150d02 | #10100e |
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 | 18.95:1AAArequired | 17.53:1AAArequired | 4.62:1AA | 13.64:1AAA |
| Primary | 4.10:1UIrequired | 3.79:1AA large | 1.00:1Fail | 2.95:1Fail |
| Accent | 1.38:1Fail | 1.28:1Fail | 2.95:1Fail | 1.00:1Fail |
| Primary Foreground | 18.95:1AAA | 17.53:1AAA | 4.62:1AArequired | 13.64:1AAA |
| Accent Foreground | 18.95:1AAA | 17.53:1AAA | 4.62:1AA | 13.64:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 15.59:1AAArequired | 13.76:1AAArequired | 2.64:1Fail | 1.15:1Fail |
| Primary | 5.89:1AArequired | 5.20:1AA | 1.00:1Fail | 2.28:1Fail |
| Accent | 13.49:1AAA | 11.91:1AAA | 2.28:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.13:1Fail | 5.89:1AArequired | 13.49:1AAA |
| Accent Foreground | 1.00:1Fail | 1.13:1Fail | 5.89:1AA | 13.49: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: #fefdfc;
--surface: #f5f4f3;
--text: #150d02;
--primary: #e63946;
--primary-foreground: #150d02;
--accent: #ffd60a;
--accent-foreground: #150d02;
}
.dark {
--background: #10100e;
--surface: #1f1d1a;
--text: #f3e7d4;
--primary: #fd5159;
--primary-foreground: #10100e;
--accent: #ffd60a;
--accent-foreground: #10100e;
}
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: #fefdfc;
--surface: #f5f4f3;
--text: #150d02;
--primary: #e63946;
--primary-foreground: #150d02;
--accent: #ffd60a;
--accent-foreground: #150d02;
}
.dark {
color-scheme: dark;
--background: #10100e;
--surface: #1f1d1a;
--text: #f3e7d4;
--primary: #fd5159;
--primary-foreground: #10100e;
--accent: #ffd60a;
--accent-foreground: #10100e;
}
@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 Quest Log, which shares the retro style: text reaches 18.95:1 in light mode against 18.79:1, the primary is red where Quest Log's is brown, and both use a yellow accent.
- Compared with Sunrise Cafe, which shares a color: text reaches 18.95:1 in light mode against 15.28:1, both use a red primary, and both use a yellow accent.