Palette Library

Onyx Gold

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

How to use it

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

  • Light mode: page #fbf9f7, cards #f6efe9, and text #2c231c at 14.65:1; buttons #0a0a0a with #fbf9f7 labels at 18.85:1; highlights #c5a028 with #2c231c text at 6.18:1.
  • Dark mode: page #11100f, cards #251c15, and text #f6f4f3 at 17.33:1; buttons #d1d1d1 with #11100f labels at 12.44:1; highlights #c5a028 with #11100f text at 7.63:1.
  • Links: #0a0a0a reaches 18.85:1 on the light page, and #d1d1d1 reaches 12.44:1 on the dark page.
  • The accent as text: In light mode, keep #c5a028 for fills and badges, not text: it reaches only 2.37: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
#fbf9f7
#11100f
Surface
#f6efe9
#251c15
Text
#2c231c
#f6f4f3
Primary
#0a0a0a
#d1d1d1
Primary Foreground
#fbf9f7
#11100f
Accent
#c5a028
#c5a028
Accent Foreground
#2c231c
#11100f

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
Text14.65:1AAArequired13.51:1AAArequired1.28:1Fail6.18:1AA
Primary18.85:1AAArequired17.38:1AAA1.00:1Fail7.95:1AAA
Accent2.37:1Fail2.18:1Fail7.95:1AAA1.00:1Fail
Primary Foreground1.00:1Fail1.08:1Fail18.85:1AAArequired2.37:1Fail
Accent Foreground14.65:1AAA13.51:1AAA1.28:1Fail6.18:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text17.33:1AAArequired15.25:1AAArequired1.39:1Fail2.27:1Fail
Primary12.44:1AAArequired10.95:1AAA1.00:1Fail1.63:1Fail
Accent7.63:1AAA6.71:1AA1.63:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.13:1Fail12.44:1AAArequired7.63:1AAA
Accent Foreground1.00:1Fail1.13:1Fail12.44:1AAA7.63: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: #fbf9f7;
  --surface: #f6efe9;
  --text: #2c231c;
  --primary: #0a0a0a;
  --primary-foreground: #fbf9f7;
  --accent: #c5a028;
  --accent-foreground: #2c231c;
}

.dark {
  --background: #11100f;
  --surface: #251c15;
  --text: #f6f4f3;
  --primary: #d1d1d1;
  --primary-foreground: #11100f;
  --accent: #c5a028;
  --accent-foreground: #11100f;
}

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: #fbf9f7;
  --surface: #f6efe9;
  --text: #2c231c;
  --primary: #0a0a0a;
  --primary-foreground: #fbf9f7;
  --accent: #c5a028;
  --accent-foreground: #2c231c;
}

.dark {
  color-scheme: dark;
  --background: #11100f;
  --surface: #251c15;
  --text: #f6f4f3;
  --primary: #d1d1d1;
  --primary-foreground: #11100f;
  --accent: #c5a028;
  --accent-foreground: #11100f;
}

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