Palette Library

Gold Standard

An elegant palette for luxury with a gray primary and a yellow accent. Text reaches 15.80:1 in light mode and 16.19:1 in dark mode.

How to use it

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

  • Light mode: page #f3f6f9, cards #e0e9f1, and text #0f1d27 at 15.80:1; buttons #3d3d3d with #f3f6f9 labels at 10.01:1; highlights #d4af37 with #0f1d27 text at 8.14:1.
  • Dark mode: page #080d11, cards #11181e, and text #ddecf8 at 16.19:1; buttons #b6b6b6 with #080d11 labels at 9.62:1; highlights #d4af37 with #080d11 text at 9.28:1.
  • Links: #3d3d3d reaches 10.01:1 on the light page, and #b6b6b6 reaches 9.62:1 on the dark page.
  • The accent as text: In light mode, keep #d4af37 for fills and badges, not text: it reaches only 1.93: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
#f3f6f9
#080d11
Surface
#e0e9f1
#11181e
Text
#0f1d27
#ddecf8
Primary
#3d3d3d
#b6b6b6
Primary Foreground
#f3f6f9
#080d11
Accent
#d4af37
#d4af37
Accent Foreground
#0f1d27
#080d11

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
Text15.80:1AAArequired13.95:1AAArequired1.57:1Fail8.14:1AAA
Primary10.01:1AAArequired8.84:1AAA1.00:1Fail5.16:1AA
Accent1.93:1Fail1.71:1Fail5.16:1AA1.00:1Fail
Primary Foreground1.00:1Fail1.13:1Fail10.01:1AAArequired1.93:1Fail
Accent Foreground15.80:1AAA13.95:1AAA1.57:1Fail8.14:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text16.19:1AAArequired14.85:1AAArequired1.68:1Fail1.74:1Fail
Primary9.62:1AAArequired8.82:1AAA1.00:1Fail1.03:1Fail
Accent9.28:1AAA8.51:1AAA1.03:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.09:1Fail9.62:1AAArequired9.28:1AAA
Accent Foreground1.00:1Fail1.09:1Fail9.62:1AAA9.28: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: #f3f6f9;
  --surface: #e0e9f1;
  --text: #0f1d27;
  --primary: #3d3d3d;
  --primary-foreground: #f3f6f9;
  --accent: #d4af37;
  --accent-foreground: #0f1d27;
}

.dark {
  --background: #080d11;
  --surface: #11181e;
  --text: #ddecf8;
  --primary: #b6b6b6;
  --primary-foreground: #080d11;
  --accent: #d4af37;
  --accent-foreground: #080d11;
}

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: #f3f6f9;
  --surface: #e0e9f1;
  --text: #0f1d27;
  --primary: #3d3d3d;
  --primary-foreground: #f3f6f9;
  --accent: #d4af37;
  --accent-foreground: #0f1d27;
}

.dark {
  color-scheme: dark;
  --background: #080d11;
  --surface: #11181e;
  --text: #ddecf8;
  --primary: #b6b6b6;
  --primary-foreground: #080d11;
  --accent: #d4af37;
  --accent-foreground: #080d11;
}

@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 Onyx Gold, which shares the elegant style: text reaches 15.80:1 in light mode against 14.65:1, both use a gray primary, and both use a yellow accent.
  • Compared with Velvet Lounge, which shares the elegant style: text reaches 15.80:1 in light mode against 14.00:1, the primary is gray where Velvet Lounge's is pink, and both use a yellow accent.