Palette Library
Noir
An elegant palette for gaming with a gray primary and a red accent. Text reaches 12.86:1 in light mode and 15.62:1 in dark mode.
How to use it
Noir's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fbf7f3, cards #f0e9e2, and text #2f2d2b at 12.86:1; buttons #1a1a1a with #fbf7f3 labels at 16.32:1; highlights #b91c1c with #fbf7f3 text at 6.06:1.
- Dark mode: page #1c1712, cards #2b2620, and text #f7efe6 at 15.62:1; buttons #c8c8c8 with #1c1712 labels at 10.63:1; highlights #ff7064 with #1c1712 text at 6.56:1.
- Links: #1a1a1a reaches 16.32:1 on the light page, and #c8c8c8 reaches 10.63:1 on the dark page.
- The accent as text: #b91c1c also works as text: 6.06:1 on the light page and 6.56:1 on the dark 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 | #fbf7f3 | #1c1712 |
| Surface | #f0e9e2 | #2b2620 |
| Text | #2f2d2b | #f7efe6 |
| Primary | #1a1a1a | #c8c8c8 |
| Primary Foreground | #fbf7f3 | #1c1712 |
| Accent | #b91c1c | #ff7064 |
| Accent Foreground | #fbf7f3 | #1c1712 |
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.86:1AAArequired | 11.40:1AAArequired | 1.26:1Fail | 2.11:1Fail |
| Primary | 16.32:1AAArequired | 14.46:1AAA | 1.00:1Fail | 2.68:1Fail |
| Accent | 6.06:1AA | 5.37:1AA | 2.68:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.12:1Fail | 16.32:1AAArequired | 6.06:1AA |
| Accent Foreground | 1.00:1Fail | 1.12:1Fail | 16.32:1AAA | 6.06:1AArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 15.62:1AAArequired | 13.16:1AAArequired | 1.46:1Fail | 2.37:1Fail |
| Primary | 10.63:1AAArequired | 8.96:1AAA | 1.00:1Fail | 1.61:1Fail |
| Accent | 6.56:1AA | 5.53:1AA | 1.61:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.18:1Fail | 10.63:1AAArequired | 6.56:1AA |
| Accent Foreground | 1.00:1Fail | 1.18:1Fail | 10.63:1AAA | 6.56: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: #fbf7f3;
--surface: #f0e9e2;
--text: #2f2d2b;
--primary: #1a1a1a;
--primary-foreground: #fbf7f3;
--accent: #b91c1c;
--accent-foreground: #fbf7f3;
}
.dark {
--background: #1c1712;
--surface: #2b2620;
--text: #f7efe6;
--primary: #c8c8c8;
--primary-foreground: #1c1712;
--accent: #ff7064;
--accent-foreground: #1c1712;
}
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: #fbf7f3;
--surface: #f0e9e2;
--text: #2f2d2b;
--primary: #1a1a1a;
--primary-foreground: #fbf7f3;
--accent: #b91c1c;
--accent-foreground: #fbf7f3;
}
.dark {
color-scheme: dark;
--background: #1c1712;
--surface: #2b2620;
--text: #f7efe6;
--primary: #c8c8c8;
--primary-foreground: #1c1712;
--accent: #ff7064;
--accent-foreground: #1c1712;
}
@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 Paper and Ink, which shares a color: text reaches 12.86:1 in light mode against 14.91:1, both use a gray primary, and both use a red accent.
- Compared with Arcade Cabinet, which shares the Gaming topic: text reaches 12.86:1 in light mode against 18.95:1, the primary is gray where Arcade Cabinet's is red, and the accent is red where Arcade Cabinet's is yellow.