Palette Library

Lotus

A pastel palette for health with a pink primary and a pink accent. Text reaches 16.91:1 in light mode and 15.86:1 in dark mode.

How to use it

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

  • Light mode: page #fffbfc, cards #f0ebec, and text #211819 at 16.91:1; buttons #a61e4d with #fffbfc labels at 7.01:1; highlights #ffc9de with #211819 text at 12.12:1.
  • Dark mode: page #190e10, cards #1f1a1b, and text #f9e7e9 at 15.86:1; buttons #fd7295 with #190e10 labels at 7.21:1; highlights #ffc9de with #190e10 text at 13.18:1.
  • Links: #a61e4d reaches 7.01:1 on the light page, and #fd7295 reaches 7.21:1 on the dark page.
  • The accent as text: In light mode, keep #ffc9de for fills and badges, not text: it reaches only 1.39: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
#fffbfc
#190e10
Surface
#f0ebec
#1f1a1b
Text
#211819
#f9e7e9
Primary
#a61e4d
#fd7295
Primary Foreground
#fffbfc
#190e10
Accent
#ffc9de
#ffc9de
Accent Foreground
#211819
#190e10

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
Text16.91:1AAArequired14.71:1AAArequired2.40:1Fail12.12:1AAA
Primary7.01:1AAArequired6.10:1AA1.00:1Fail5.03:1AA
Accent1.39:1Fail1.21:1Fail5.03:1AA1.00:1Fail
Primary Foreground1.00:1Fail1.14:1Fail7.01:1AAArequired1.39:1Fail
Accent Foreground16.91:1AAA14.71:1AAA2.40:1Fail12.12:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text15.86:1AAArequired14.43:1AAArequired2.19:1Fail1.20:1Fail
Primary7.21:1AAArequired6.56:1AA1.00:1Fail1.82:1Fail
Accent13.18:1AAA11.99:1AAA1.82:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.09:1Fail7.21:1AAArequired13.18:1AAA
Accent Foreground1.00:1Fail1.09:1Fail7.21:1AAA13.18: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: #fffbfc;
  --surface: #f0ebec;
  --text: #211819;
  --primary: #a61e4d;
  --primary-foreground: #fffbfc;
  --accent: #ffc9de;
  --accent-foreground: #211819;
}

.dark {
  --background: #190e10;
  --surface: #1f1a1b;
  --text: #f9e7e9;
  --primary: #fd7295;
  --primary-foreground: #190e10;
  --accent: #ffc9de;
  --accent-foreground: #190e10;
}

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: #fffbfc;
  --surface: #f0ebec;
  --text: #211819;
  --primary: #a61e4d;
  --primary-foreground: #fffbfc;
  --accent: #ffc9de;
  --accent-foreground: #211819;
}

.dark {
  color-scheme: dark;
  --background: #190e10;
  --surface: #1f1a1b;
  --text: #f9e7e9;
  --primary: #fd7295;
  --primary-foreground: #190e10;
  --accent: #ffc9de;
  --accent-foreground: #190e10;
}

@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 Cherry Blossom, which shares the pastel style: text reaches 16.91:1 in light mode against 17.53:1, both use a pink primary, and both use a pink accent.
  • Compared with Pulse, which shares the Health topic: text reaches 16.91:1 in light mode against 18.03:1, both use a pink primary, and the accent is pink where Pulse's is purple.