Palette Library

Apothecary

A muted palette for health with a green primary and a pink accent. Text reaches 19.07:1 in light mode and 15.71:1 in dark mode.

How to use it

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

  • Light mode: page #fafcfe, cards #edf2f7, and text #070c12 at 19.07:1; buttons #2d6a4f with #fafcfe labels at 6.21:1; highlights #b5838d with #070c12 text at 6.16:1.
  • Dark mode: page #131920, cards #24272a, and text #eef2f6 at 15.71:1; buttons #7ab799 with #131920 labels at 7.62:1; highlights #b5838d with #131920 text at 5.55:1.
  • Links: #2d6a4f reaches 6.21:1 on the light page, and #7ab799 reaches 7.62:1 on the dark page.
  • The accent as text: In light mode, keep #b5838d for fills and badges, not text: it reaches only 3.09: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
#fafcfe
#131920
Surface
#edf2f7
#24272a
Text
#070c12
#eef2f6
Primary
#2d6a4f
#7ab799
Primary Foreground
#fafcfe
#131920
Accent
#b5838d
#b5838d
Accent Foreground
#070c12
#131920

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
Text19.07:1AAArequired17.41:1AAArequired3.07:1AA large6.16:1AA
Primary6.21:1AArequired5.67:1AA1.00:1Fail2.00:1Fail
Accent3.09:1AA large2.82:1Fail2.00:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.09:1Fail6.21:1AArequired3.09:1AA large
Accent Foreground19.07:1AAA17.41:1AAA3.07:1AA large6.16:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text15.71:1AAArequired13.34:1AAArequired2.06:1Fail2.83:1Fail
Primary7.62:1AAArequired6.47:1AA1.00:1Fail1.37:1Fail
Accent5.55:1AA4.71:1AA1.37:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.17:1Fail7.62:1AAArequired5.55:1AA
Accent Foreground1.00:1Fail1.17:1Fail7.62:1AAA5.55:1AArequired

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: #fafcfe;
  --surface: #edf2f7;
  --text: #070c12;
  --primary: #2d6a4f;
  --primary-foreground: #fafcfe;
  --accent: #b5838d;
  --accent-foreground: #070c12;
}

.dark {
  --background: #131920;
  --surface: #24272a;
  --text: #eef2f6;
  --primary: #7ab799;
  --primary-foreground: #131920;
  --accent: #b5838d;
  --accent-foreground: #131920;
}

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: #fafcfe;
  --surface: #edf2f7;
  --text: #070c12;
  --primary: #2d6a4f;
  --primary-foreground: #fafcfe;
  --accent: #b5838d;
  --accent-foreground: #070c12;
}

.dark {
  color-scheme: dark;
  --background: #131920;
  --surface: #24272a;
  --text: #eef2f6;
  --primary: #7ab799;
  --primary-foreground: #131920;
  --accent: #b5838d;
  --accent-foreground: #131920;
}

@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 Sage Wellness, which shares the muted style: text reaches 19.07:1 in light mode against 14.29:1, both use a green primary, and the accent is pink where Sage Wellness's is orange.
  • Compared with Moss and Stone, which shares the muted style: text reaches 19.07:1 in light mode against 17.04:1, both use a green primary, and the accent is pink where Moss and Stone's is gray.