Palette Library

Museum

An elegant palette for creative with a gray primary and a yellow accent. Text reaches 16.97:1 in light mode and 13.82:1 in dark mode.

How to use it

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

  • Light mode: page #f7f5f6, cards #ecebeb, and text #1c1114 at 16.97:1; buttons #4a4a4a with #f7f5f6 labels at 8.16:1; highlights #b08d57 with #1c1114 text at 5.96:1.
  • Dark mode: page #1a1415, cards #1f1c1d, and text #f4dae1 at 13.82:1; buttons #b0b0b0 with #1a1415 labels at 8.38:1; highlights #b08d57 with #1a1415 text at 5.88:1.
  • Links: #4a4a4a reaches 8.16:1 on the light page, and #b0b0b0 reaches 8.38:1 on the dark page.
  • The accent as text: In light mode, keep #b08d57 for fills and badges, not text: it reaches only 2.84: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
#f7f5f6
#1a1415
Surface
#ecebeb
#1f1c1d
Text
#1c1114
#f4dae1
Primary
#4a4a4a
#b0b0b0
Primary Foreground
#f7f5f6
#1a1415
Accent
#b08d57
#b08d57
Accent Foreground
#1c1114
#1a1415

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
Text16.97:1AAArequired15.48:1AAArequired2.07:1Fail5.96:1AA
Primary8.16:1AAArequired7.44:1AAA1.00:1Fail2.86:1Fail
Accent2.84:1Fail2.59:1Fail2.86:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.09:1Fail8.16:1AAArequired2.84:1Fail
Accent Foreground16.97:1AAA15.48:1AAA2.07:1Fail5.96:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text13.82:1AAArequired12.85:1AAArequired1.64:1Fail2.34:1Fail
Primary8.38:1AAArequired7.79:1AAA1.00:1Fail1.42:1Fail
Accent5.88:1AA5.46:1AA1.42:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.07:1Fail8.38:1AAArequired5.88:1AA
Accent Foreground1.00:1Fail1.07:1Fail8.38:1AAA5.88: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: #f7f5f6;
  --surface: #ecebeb;
  --text: #1c1114;
  --primary: #4a4a4a;
  --primary-foreground: #f7f5f6;
  --accent: #b08d57;
  --accent-foreground: #1c1114;
}

.dark {
  --background: #1a1415;
  --surface: #1f1c1d;
  --text: #f4dae1;
  --primary: #b0b0b0;
  --primary-foreground: #1a1415;
  --accent: #b08d57;
  --accent-foreground: #1a1415;
}

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: #f7f5f6;
  --surface: #ecebeb;
  --text: #1c1114;
  --primary: #4a4a4a;
  --primary-foreground: #f7f5f6;
  --accent: #b08d57;
  --accent-foreground: #1c1114;
}

.dark {
  color-scheme: dark;
  --background: #1a1415;
  --surface: #1f1c1d;
  --text: #f4dae1;
  --primary: #b0b0b0;
  --primary-foreground: #1a1415;
  --accent: #b08d57;
  --accent-foreground: #1a1415;
}

@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 Gold Standard, which shares the elegant style: text reaches 16.97:1 in light mode against 15.80:1, both use a gray primary, and both use a yellow accent.
  • Compared with Onyx Gold, which shares the elegant style: text reaches 16.97:1 in light mode against 14.65:1, both use a gray primary, and both use a yellow accent.