Palette Library

Oat Milk

A muted palette for food with a yellow primary and a yellow accent. Text reaches 12.69:1 in light mode and 14.55:1 in dark mode.

How to use it

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

  • Light mode: page #f5f8fd, cards #e8eef9, and text #262f3c at 12.69:1; buttons #7a6a53 with #f5f8fd labels at 4.91:1; highlights #e8dcc4 with #262f3c text at 9.95:1.
  • Dark mode: page #111315, cards #212122, and text #dde4ef at 14.55:1; buttons #af9e85 with #111315 labels at 7.13:1; highlights #e8dcc4 with #111315 text at 13.71:1.
  • Links: #7a6a53 reaches 4.91:1 on the light page, and #af9e85 reaches 7.13:1 on the dark page.
  • The accent as text: In light mode, keep #e8dcc4 for fills and badges, not text: it reaches only 1.27: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
#f5f8fd
#111315
Surface
#e8eef9
#212122
Text
#262f3c
#dde4ef
Primary
#7a6a53
#af9e85
Primary Foreground
#f5f8fd
#111315
Accent
#e8dcc4
#e8dcc4
Accent Foreground
#262f3c
#111315

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.69:1AAArequired11.59:1AAArequired2.58:1Fail9.95:1AAA
Primary4.91:1AArequired4.49:1AA large1.00:1Fail3.85:1AA large
Accent1.27:1Fail1.16:1Fail3.85:1AA large1.00:1Fail
Primary Foreground1.00:1Fail1.09:1Fail4.91:1AArequired1.27:1Fail
Accent Foreground12.69:1AAA11.59:1AAA2.58:1Fail9.95:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text14.55:1AAArequired12.57:1AAArequired2.03:1Fail1.06:1Fail
Primary7.13:1AAArequired6.16:1AA1.00:1Fail1.92:1Fail
Accent13.71:1AAA11.84:1AAA1.92:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.15:1Fail7.13:1AAArequired13.71:1AAA
Accent Foreground1.00:1Fail1.15:1Fail7.13:1AAA13.71: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: #f5f8fd;
  --surface: #e8eef9;
  --text: #262f3c;
  --primary: #7a6a53;
  --primary-foreground: #f5f8fd;
  --accent: #e8dcc4;
  --accent-foreground: #262f3c;
}

.dark {
  --background: #111315;
  --surface: #212122;
  --text: #dde4ef;
  --primary: #af9e85;
  --primary-foreground: #111315;
  --accent: #e8dcc4;
  --accent-foreground: #111315;
}

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: #f5f8fd;
  --surface: #e8eef9;
  --text: #262f3c;
  --primary: #7a6a53;
  --primary-foreground: #f5f8fd;
  --accent: #e8dcc4;
  --accent-foreground: #262f3c;
}

.dark {
  color-scheme: dark;
  --background: #111315;
  --surface: #212122;
  --text: #dde4ef;
  --primary: #af9e85;
  --primary-foreground: #111315;
  --accent: #e8dcc4;
  --accent-foreground: #111315;
}

@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 Sunrise Cafe, which shares the Food topic: text reaches 12.69:1 in light mode against 15.28:1, the primary is yellow where Sunrise Cafe's is red, and both use a yellow accent.
  • Compared with Espresso Bar, which shares the Food topic: text reaches 12.69:1 in light mode against 14.58:1, the primary is yellow where Espresso Bar's is brown, and both use a yellow accent.