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.

Get startedNew

Explore 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.

Get startedNew

Explore your palette →

Roles

Five roles and their two foregrounds. Copy the exact HEX values.

RoleLightDark
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.

light mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text12.86:1AAArequired11.40:1AAArequired1.26:1Fail2.11:1Fail
Primary16.32:1AAArequired14.46:1AAA1.00:1Fail2.68:1Fail
Accent6.06:1AA5.37:1AA2.68:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.12:1Fail16.32:1AAArequired6.06:1AA
Accent Foreground1.00:1Fail1.12:1Fail16.32:1AAA6.06:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text15.62:1AAArequired13.16:1AAArequired1.46:1Fail2.37:1Fail
Primary10.63:1AAArequired8.96:1AAA1.00:1Fail1.61:1Fail
Accent6.56:1AA5.53:1AA1.61:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.18:1Fail10.63:1AAArequired6.56:1AA
Accent Foreground1.00:1Fail1.18:1Fail10.63:1AAA6.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.