Palette Library

Silk Road

An elegant palette for travel with a pink primary and a yellow accent. Text reaches 17.26:1 in light mode and 14.62:1 in dark mode.

How to use it

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

  • Light mode: page #fdfeff, cards #e7eff7, and text #0e1b27 at 17.26:1; buttons #7a1f5c with #fdfeff labels at 9.54:1; highlights #e0b354 with #0e1b27 text at 8.91:1.
  • Dark mode: page #0b0e12, cards #171d23, and text #d1e2f3 at 14.62:1; buttons #ee8ac6 with #0b0e12 labels at 8.36:1; highlights #e0b354 with #0b0e12 text at 9.89:1.
  • Links: #7a1f5c reaches 9.54:1 on the light page, and #ee8ac6 reaches 8.36:1 on the dark page.
  • The accent as text: In light mode, keep #e0b354 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
#fdfeff
#0b0e12
Surface
#e7eff7
#171d23
Text
#0e1b27
#d1e2f3
Primary
#7a1f5c
#ee8ac6
Primary Foreground
#fdfeff
#0b0e12
Accent
#e0b354
#e0b354
Accent Foreground
#0e1b27
#0b0e12

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.26:1AAArequired15.01:1AAArequired1.80:1Fail8.91:1AAA
Primary9.54:1AAArequired8.30:1AAA1.00:1Fail4.93:1AA
Accent1.93:1Fail1.68:1Fail4.93:1AA1.00:1Fail
Primary Foreground1.00:1Fail1.14:1Fail9.54:1AAArequired1.93:1Fail
Accent Foreground17.26:1AAA15.01:1AAA1.80:1Fail8.91:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text14.62:1AAArequired12.84:1AAArequired1.74:1Fail1.47:1Fail
Primary8.36:1AAArequired7.34:1AAA1.00:1Fail1.18:1Fail
Accent9.89:1AAA8.69:1AAA1.18:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.13:1Fail8.36:1AAArequired9.89:1AAA
Accent Foreground1.00:1Fail1.13:1Fail8.36:1AAA9.89: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: #fdfeff;
  --surface: #e7eff7;
  --text: #0e1b27;
  --primary: #7a1f5c;
  --primary-foreground: #fdfeff;
  --accent: #e0b354;
  --accent-foreground: #0e1b27;
}

.dark {
  --background: #0b0e12;
  --surface: #171d23;
  --text: #d1e2f3;
  --primary: #ee8ac6;
  --primary-foreground: #0b0e12;
  --accent: #e0b354;
  --accent-foreground: #0b0e12;
}

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: #fdfeff;
  --surface: #e7eff7;
  --text: #0e1b27;
  --primary: #7a1f5c;
  --primary-foreground: #fdfeff;
  --accent: #e0b354;
  --accent-foreground: #0e1b27;
}

.dark {
  color-scheme: dark;
  --background: #0b0e12;
  --surface: #171d23;
  --text: #d1e2f3;
  --primary: #ee8ac6;
  --primary-foreground: #0b0e12;
  --accent: #e0b354;
  --accent-foreground: #0b0e12;
}

@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 Velvet Lounge, which shares the elegant style: text reaches 17.26:1 in light mode against 14.00:1, both use a pink primary, and both use a yellow accent.
  • Compared with Flamingo, which shares the Travel topic: text reaches 17.26:1 in light mode against 13.40:1, both use a pink primary, and both use a yellow accent.