Palette Library

Retro Diner

A retro palette for food with a red primary and a teal accent. Text reaches 17.59:1 in light mode and 17.87:1 in dark mode.

How to use it

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

  • Light mode: page #fbfbfa, cards #eeeae4, and text #171512 at 17.59:1; buttons #c81d25 with #fbfbfa labels at 5.54:1; highlights #5bc0be with #171512 text at 8.44:1.
  • Dark mode: page #0b0907, cards #1c150c, and text #fef1e1 at 17.87:1; buttons #ff6860 with #0b0907 labels at 7.00:1; highlights #5bc0be with #0b0907 text at 9.20:1.
  • Links: #c81d25 reaches 5.54:1 on the light page, and #ff6860 reaches 7.00:1 on the dark page.
  • The accent as text: In light mode, keep #5bc0be for fills and badges, not text: it reaches only 2.08: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
#fbfbfa
#0b0907
Surface
#eeeae4
#1c150c
Text
#171512
#fef1e1
Primary
#c81d25
#ff6860
Primary Foreground
#fbfbfa
#0b0907
Accent
#5bc0be
#5bc0be
Accent Foreground
#171512
#0b0907

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.59:1AAArequired15.20:1AAArequired3.17:1AA large8.44:1AAA
Primary5.54:1AArequired4.79:1AA1.00:1Fail2.65:1Fail
Accent2.08:1Fail1.80:1Fail2.65:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.15:1Fail5.54:1AArequired2.08:1Fail
Accent Foreground17.59:1AAA15.20:1AAA3.17:1AA large8.44:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text17.87:1AAArequired16.25:1AAArequired2.55:1Fail1.94:1Fail
Primary7.00:1AAArequired6.36:1AA1.00:1Fail1.31:1Fail
Accent9.20:1AAA8.37:1AAA1.31:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.09:1Fail7.00:1AAArequired9.20:1AAA
Accent Foreground1.00:1Fail1.09:1Fail7.00:1AAA9.20: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: #fbfbfa;
  --surface: #eeeae4;
  --text: #171512;
  --primary: #c81d25;
  --primary-foreground: #fbfbfa;
  --accent: #5bc0be;
  --accent-foreground: #171512;
}

.dark {
  --background: #0b0907;
  --surface: #1c150c;
  --text: #fef1e1;
  --primary: #ff6860;
  --primary-foreground: #0b0907;
  --accent: #5bc0be;
  --accent-foreground: #0b0907;
}

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: #fbfbfa;
  --surface: #eeeae4;
  --text: #171512;
  --primary: #c81d25;
  --primary-foreground: #fbfbfa;
  --accent: #5bc0be;
  --accent-foreground: #171512;
}

.dark {
  color-scheme: dark;
  --background: #0b0907;
  --surface: #1c150c;
  --text: #fef1e1;
  --primary: #ff6860;
  --primary-foreground: #0b0907;
  --accent: #5bc0be;
  --accent-foreground: #0b0907;
}

@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 Copper Kettle, which shares the retro style: text reaches 17.59:1 in light mode against 13.86:1, the primary is red where Copper Kettle's is orange, and both use a teal accent.
  • Compared with Postcard, which shares the retro style: text reaches 17.59:1 in light mode against 13.58:1, both use a red primary, and both use a teal accent.