Palette Library

Polaroid

A retro palette for creative with a red primary and a teal accent. Text reaches 13.99:1 in light mode and 14.02:1 in dark mode.

How to use it

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

  • Light mode: page #fef9f3, cards #f8f0e7, and text #2c2822 at 13.99:1; buttons #d1495b with #000000 labels at 4.81:1; highlights #00798c with #fef9f3 text at 4.87:1.
  • Dark mode: page #171615, cards #241e17, and text #ede1d2 at 14.02:1; buttons #ef6473 with #171615 labels at 5.80:1; highlights #52b0c4 with #171615 text at 7.19:1.
  • Links: #d1495b reaches 4.16:1 on the light page, and #ef6473 reaches 5.80:1 on the dark page.
  • The accent as text: #00798c also works as text: 4.87:1 on the light page and 7.19: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
#fef9f3
#171615
Surface
#f8f0e7
#241e17
Text
#2c2822
#ede1d2
Primary
#d1495b
#ef6473
Primary Foreground
#000000
#171615
Accent
#00798c
#52b0c4
Accent Foreground
#fef9f3
#171615

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
Text13.99:1AAArequired12.97:1AAArequired3.35:1AA large2.86:1Fail
Primary4.16:1UIrequired3.86:1AA large1.00:1Fail1.17:1Fail
Accent4.87:1AA4.52:1AA1.17:1Fail1.00:1Fail
Primary Foreground20.05:1AAA18.60:1AAA4.81:1AArequired4.11:1AA large
Accent Foreground1.00:1Fail1.07:1Fail4.16:1AA large4.87:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text14.02:1AAArequired12.80:1AAArequired2.41:1Fail1.94:1Fail
Primary5.80:1AArequired5.29:1AA1.00:1Fail1.24:1Fail
Accent7.19:1AAA6.57:1AA1.24:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.09:1Fail5.80:1AArequired7.19:1AAA
Accent Foreground1.00:1Fail1.09:1Fail5.80:1AA7.19: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: #fef9f3;
  --surface: #f8f0e7;
  --text: #2c2822;
  --primary: #d1495b;
  --primary-foreground: #000000;
  --accent: #00798c;
  --accent-foreground: #fef9f3;
}

.dark {
  --background: #171615;
  --surface: #241e17;
  --text: #ede1d2;
  --primary: #ef6473;
  --primary-foreground: #171615;
  --accent: #52b0c4;
  --accent-foreground: #171615;
}

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: #fef9f3;
  --surface: #f8f0e7;
  --text: #2c2822;
  --primary: #d1495b;
  --primary-foreground: #000000;
  --accent: #00798c;
  --accent-foreground: #fef9f3;
}

.dark {
  color-scheme: dark;
  --background: #171615;
  --surface: #241e17;
  --text: #ede1d2;
  --primary: #ef6473;
  --primary-foreground: #171615;
  --accent: #52b0c4;
  --accent-foreground: #171615;
}

@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 Terracotta Studio, which shares the Creative topic: text reaches 13.99:1 in light mode against 16.96:1, both use a red primary, and both use a teal accent.
  • Compared with Retro Diner, which shares the retro style: text reaches 13.99:1 in light mode against 17.59:1, both use a red primary, and both use a teal accent.