Palette Library

Rust Belt

A retro palette for developer tools with a brown primary and a blue accent. Text reaches 17.21:1 in light mode and 14.99:1 in dark mode.

How to use it

Rust Belt's roles on a real interface, with the ratios stored for this palette.

  • Light mode: page #f7f8f9, cards #e7eaf0, and text #0d1522 at 17.21:1; buttons #8b3a0f with #f7f8f9 labels at 7.28:1; highlights #5c7c8a with #000000 text at 4.70:1.
  • Dark mode: page #14161a, cards #1e2126, and text #e6eaef at 14.99:1; buttons #ea9069 with #14161a labels at 7.49:1; highlights #81a2b1 with #14161a text at 6.67:1.
  • Links: #8b3a0f reaches 7.28:1 on the light page, and #ea9069 reaches 7.49:1 on the dark page.
  • The accent as text: In light mode, keep #5c7c8a for fills and badges, not text: it reaches only 4.19: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.

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
#f7f8f9
#14161a
Surface
#e7eaf0
#1e2126
Text
#0d1522
#e6eaef
Primary
#8b3a0f
#ea9069
Primary Foreground
#f7f8f9
#14161a
Accent
#5c7c8a
#81a2b1
Accent Foreground
#000000
#14161a

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
Text17.21:1AAArequired15.18:1AAArequired2.36:1Fail4.10:1AA large
Primary7.28:1AAArequired6.43:1AA1.00:1Fail1.73:1Fail
Accent4.19:1AA large3.70:1AA large1.73:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.13:1Fail7.28:1AAArequired4.19:1AA large
Accent Foreground19.74:1AAA17.42:1AAA2.70:1Fail4.70:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text14.99:1AAArequired13.36:1AAArequired1.99:1Fail2.24:1Fail
Primary7.49:1AAArequired6.68:1AA1.00:1Fail1.12:1Fail
Accent6.67:1AA5.94:1AA1.12:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.12:1Fail7.49:1AAArequired6.67:1AA
Accent Foreground1.00:1Fail1.12:1Fail7.49:1AAA6.67: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: #f7f8f9;
  --surface: #e7eaf0;
  --text: #0d1522;
  --primary: #8b3a0f;
  --primary-foreground: #f7f8f9;
  --accent: #5c7c8a;
  --accent-foreground: #000000;
}

.dark {
  --background: #14161a;
  --surface: #1e2126;
  --text: #e6eaef;
  --primary: #ea9069;
  --primary-foreground: #14161a;
  --accent: #81a2b1;
  --accent-foreground: #14161a;
}

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: #f7f8f9;
  --surface: #e7eaf0;
  --text: #0d1522;
  --primary: #8b3a0f;
  --primary-foreground: #f7f8f9;
  --accent: #5c7c8a;
  --accent-foreground: #000000;
}

.dark {
  color-scheme: dark;
  --background: #14161a;
  --surface: #1e2126;
  --text: #e6eaef;
  --primary: #ea9069;
  --primary-foreground: #14161a;
  --accent: #81a2b1;
  --accent-foreground: #14161a;
}

@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 Chalkboard, which shares the retro style: text reaches 17.21:1 in light mode against 12.43:1, the primary is brown where Chalkboard's is blue, and the accent is blue where Chalkboard's is yellow.
  • Compared with Code Review, which shares the Developer tools topic: text reaches 17.21:1 in light mode against 17.06:1, the primary is brown where Code Review's is blue, and the accent is blue where Code Review's is green.