Palette Library

Midcentury

A retro palette for creative with an orange primary and a green accent. Text reaches 17.82:1 in light mode and 16.47:1 in dark mode.

How to use it

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

  • Light mode: page #fefaf4, cards #f3f1ee, and text #151311 at 17.82:1; buttons #bc6c25 with #151311 labels at 4.68:1; highlights #283618 with #fefaf4 text at 12.38:1.
  • Dark mode: page #0d0803, cards #150f07, and text #ede9e2 at 16.47:1; buttons #d2803d with #0d0803 labels at 6.54:1; highlights #b1c3a0 with #0d0803 text at 10.61:1.
  • Links: #bc6c25 reaches 3.80:1 on the light page, and #d2803d reaches 6.54:1 on the dark page.
  • The accent as text: #283618 also works as text: 12.38:1 on the light page and 10.61: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
#fefaf4
#0d0803
Surface
#f3f1ee
#150f07
Text
#151311
#ede9e2
Primary
#bc6c25
#d2803d
Primary Foreground
#151311
#0d0803
Accent
#283618
#b1c3a0
Accent Foreground
#fefaf4
#0d0803

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.82:1AAArequired16.43:1AAArequired4.68:1AA1.43:1Fail
Primary3.80:1UIrequired3.50:1AA large1.00:1Fail3.25:1AA large
Accent12.38:1AAA11.42:1AAA3.25:1AA large1.00:1Fail
Primary Foreground17.82:1AAA16.43:1AAA4.68:1AArequired1.43:1Fail
Accent Foreground1.00:1Fail1.08:1Fail3.80:1AA large12.38:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text16.47:1AAArequired15.73:1AAArequired2.51:1Fail1.55:1Fail
Primary6.54:1AArequired6.24:1AA1.00:1Fail1.62:1Fail
Accent10.61:1AAA10.13:1AAA1.62:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.04:1Fail6.54:1AArequired10.61:1AAA
Accent Foreground1.00:1Fail1.04:1Fail6.54:1AA10.61: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: #fefaf4;
  --surface: #f3f1ee;
  --text: #151311;
  --primary: #bc6c25;
  --primary-foreground: #151311;
  --accent: #283618;
  --accent-foreground: #fefaf4;
}

.dark {
  --background: #0d0803;
  --surface: #150f07;
  --text: #ede9e2;
  --primary: #d2803d;
  --primary-foreground: #0d0803;
  --accent: #b1c3a0;
  --accent-foreground: #0d0803;
}

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: #fefaf4;
  --surface: #f3f1ee;
  --text: #151311;
  --primary: #bc6c25;
  --primary-foreground: #151311;
  --accent: #283618;
  --accent-foreground: #fefaf4;
}

.dark {
  color-scheme: dark;
  --background: #0d0803;
  --surface: #150f07;
  --text: #ede9e2;
  --primary: #d2803d;
  --primary-foreground: #0d0803;
  --accent: #b1c3a0;
  --accent-foreground: #0d0803;
}

@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 Seventies Den, which shares the retro style: text reaches 17.82:1 in light mode against 16.24:1, both use a orange primary, and the accent is green where Seventies Den's is yellow.
  • Compared with Forest Trail, which shares a color: text reaches 17.82:1 in light mode against 12.35:1, the primary is orange where Forest Trail's is green, and the accent is green where Forest Trail's is orange.