Palette Library

Dune

A muted palette for luxury with an orange primary and a yellow accent. Text reaches 17.52:1 in light mode and 13.90:1 in dark mode.

How to use it

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

  • Light mode: page #fefaf6, cards #f3e9e2, and text #1b140f at 17.52:1; buttons #8d5524 with #fefaf6 labels at 5.84:1; highlights #e0c097 with #1b140f text at 10.53:1.
  • Dark mode: page #1c140e, cards #2b241e, and text #e7e0da at 13.90:1; buttons #d29565 with #1c140e labels at 7.11:1; highlights #e0c097 with #1c140e text at 10.51:1.
  • Links: #8d5524 reaches 5.84:1 on the light page, and #d29565 reaches 7.11:1 on the dark page.
  • The accent as text: In light mode, keep #e0c097 for fills and badges, not text: it reaches only 1.66: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
#fefaf6
#1c140e
Surface
#f3e9e2
#2b241e
Text
#1b140f
#e7e0da
Primary
#8d5524
#d29565
Primary Foreground
#fefaf6
#1c140e
Accent
#e0c097
#e0c097
Accent Foreground
#1b140f
#1c140e

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
Text17.52:1AAArequired15.22:1AAArequired2.99:1Fail10.53:1AAA
Primary5.84:1AArequired5.08:1AA1.00:1Fail3.51:1AA large
Accent1.66:1Fail1.44:1Fail3.51:1AA large1.00:1Fail
Primary Foreground1.00:1Fail1.15:1Fail5.84:1AArequired1.66:1Fail
Accent Foreground17.52:1AAA15.22:1AAA2.99:1Fail10.53:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text13.90:1AAArequired11.69:1AAArequired1.95:1Fail1.32:1Fail
Primary7.11:1AAArequired5.98:1AA1.00:1Fail1.47:1Fail
Accent10.51:1AAA8.84:1AAA1.47:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.18:1Fail7.11:1AAArequired10.51:1AAA
Accent Foreground1.00:1Fail1.18:1Fail7.11:1AAA10.51: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: #fefaf6;
  --surface: #f3e9e2;
  --text: #1b140f;
  --primary: #8d5524;
  --primary-foreground: #fefaf6;
  --accent: #e0c097;
  --accent-foreground: #1b140f;
}

.dark {
  --background: #1c140e;
  --surface: #2b241e;
  --text: #e7e0da;
  --primary: #d29565;
  --primary-foreground: #1c140e;
  --accent: #e0c097;
  --accent-foreground: #1c140e;
}

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: #fefaf6;
  --surface: #f3e9e2;
  --text: #1b140f;
  --primary: #8d5524;
  --primary-foreground: #fefaf6;
  --accent: #e0c097;
  --accent-foreground: #1b140f;
}

.dark {
  color-scheme: dark;
  --background: #1c140e;
  --surface: #2b241e;
  --text: #e7e0da;
  --primary: #d29565;
  --primary-foreground: #1c140e;
  --accent: #e0c097;
  --accent-foreground: #1c140e;
}

@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 Sandstone, which shares the muted style: text reaches 17.52:1 in light mode against 14.87:1, both use a orange primary, and both use a yellow accent.
  • Compared with Velvet Lounge, which shares the Luxury topic: text reaches 17.52:1 in light mode against 14.00:1, the primary is orange where Velvet Lounge's is pink, and both use a yellow accent.