Palette Library

Midnight Orchid

An elegant palette for creative with a purple primary and a pink accent. Text reaches 13.15:1 in light mode and 15.72:1 in dark mode.

How to use it

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

  • Light mode: page #fcfaf7, cards #efedeb, and text #2f2d2c at 13.15:1; buttons #6d28d9 with #fcfaf7 labels at 6.81:1; highlights #f472b6 with #2f2d2c text at 5.17:1.
  • Dark mode: page #0e0d0b, cards #171616, and text #e8e7e6 at 15.72:1; buttons #aa90ff with #0e0d0b labels at 7.53:1; highlights #f472b6 with #0e0d0b text at 7.33:1.
  • Links: #6d28d9 reaches 6.81:1 on the light page, and #aa90ff reaches 7.53:1 on the dark page.
  • The accent as text: In light mode, keep #f472b6 for fills and badges, not text: it reaches only 2.54: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
#fcfaf7
#0e0d0b
Surface
#efedeb
#171616
Text
#2f2d2c
#e8e7e6
Primary
#6d28d9
#aa90ff
Primary Foreground
#fcfaf7
#0e0d0b
Accent
#f472b6
#f472b6
Accent Foreground
#2f2d2c
#0e0d0b

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
Text13.15:1AAArequired11.73:1AAArequired1.92:1Fail5.17:1AA
Primary6.81:1AArequired6.08:1AA1.00:1Fail2.68:1Fail
Accent2.54:1Fail2.26:1Fail2.68:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.12:1Fail6.81:1AArequired2.54:1Fail
Accent Foreground13.15:1AAA11.73:1AAA1.92:1Fail5.17:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text15.72:1AAArequired14.62:1AAArequired2.08:1Fail2.14:1Fail
Primary7.53:1AAArequired7.00:1AAA1.00:1Fail1.02:1Fail
Accent7.33:1AAA6.81:1AA1.02:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.07:1Fail7.53:1AAArequired7.33:1AAA
Accent Foreground1.00:1Fail1.07:1Fail7.53:1AAA7.33: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: #fcfaf7;
  --surface: #efedeb;
  --text: #2f2d2c;
  --primary: #6d28d9;
  --primary-foreground: #fcfaf7;
  --accent: #f472b6;
  --accent-foreground: #2f2d2c;
}

.dark {
  --background: #0e0d0b;
  --surface: #171616;
  --text: #e8e7e6;
  --primary: #aa90ff;
  --primary-foreground: #0e0d0b;
  --accent: #f472b6;
  --accent-foreground: #0e0d0b;
}

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: #fcfaf7;
  --surface: #efedeb;
  --text: #2f2d2c;
  --primary: #6d28d9;
  --primary-foreground: #fcfaf7;
  --accent: #f472b6;
  --accent-foreground: #2f2d2c;
}

.dark {
  color-scheme: dark;
  --background: #0e0d0b;
  --surface: #171616;
  --text: #e8e7e6;
  --primary: #aa90ff;
  --primary-foreground: #0e0d0b;
  --accent: #f472b6;
  --accent-foreground: #0e0d0b;
}

@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 Lavender Field, which shares the Creative topic: text reaches 13.15:1 in light mode against 19.07:1, both use a purple primary, and the accent is pink where Lavender Field's is green.
  • Compared with Velvet Lounge, which shares the elegant style: text reaches 13.15:1 in light mode against 14.00:1, the primary is purple where Velvet Lounge's is pink, and the accent is pink where Velvet Lounge's is yellow.