Palette Library

Pine and Paper

A muted palette for education with a green primary and an orange accent. Text reaches 18.32:1 in light mode and 17.78:1 in dark mode.

How to use it

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

  • Light mode: page #f1faf5, cards #ddece4, and text #070e0b at 18.32:1; buttons #1b4332 with #f1faf5 labels at 10.41:1; highlights #d8b4a0 with #070e0b text at 10.17:1.
  • Dark mode: page #040c08, cards #121313, and text #e5f7ee at 17.78:1; buttons #98c3ae with #040c08 labels at 10.13:1; highlights #c19e8b with #040c08 text at 8.03:1.
  • Links: #1b4332 reaches 10.41:1 on the light page, and #98c3ae reaches 10.13:1 on the dark page.
  • The accent as text: In light mode, keep #d8b4a0 for fills and badges, not text: it reaches only 1.80: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
#f1faf5
#040c08
Surface
#ddece4
#121313
Text
#070e0b
#e5f7ee
Primary
#1b4332
#98c3ae
Primary Foreground
#f1faf5
#040c08
Accent
#d8b4a0
#c19e8b
Accent Foreground
#070e0b
#040c08

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
Text18.32:1AAArequired15.96:1AAArequired1.76:1Fail10.17:1AAA
Primary10.41:1AAArequired9.07:1AAA1.00:1Fail5.77:1AA
Accent1.80:1Fail1.56:1Fail5.77:1AA1.00:1Fail
Primary Foreground1.00:1Fail1.14:1Fail10.41:1AAArequired1.80:1Fail
Accent Foreground18.32:1AAA15.96:1AAA1.76:1Fail10.17:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text17.78:1AAArequired16.72:1AAArequired1.75:1Fail2.21:1Fail
Primary10.13:1AAArequired9.52:1AAA1.00:1Fail1.26:1Fail
Accent8.03:1AAA7.56:1AAA1.26:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.06:1Fail10.13:1AAArequired8.03:1AAA
Accent Foreground1.00:1Fail1.06:1Fail10.13:1AAA8.03: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: #f1faf5;
  --surface: #ddece4;
  --text: #070e0b;
  --primary: #1b4332;
  --primary-foreground: #f1faf5;
  --accent: #d8b4a0;
  --accent-foreground: #070e0b;
}

.dark {
  --background: #040c08;
  --surface: #121313;
  --text: #e5f7ee;
  --primary: #98c3ae;
  --primary-foreground: #040c08;
  --accent: #c19e8b;
  --accent-foreground: #040c08;
}

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: #f1faf5;
  --surface: #ddece4;
  --text: #070e0b;
  --primary: #1b4332;
  --primary-foreground: #f1faf5;
  --accent: #d8b4a0;
  --accent-foreground: #070e0b;
}

.dark {
  color-scheme: dark;
  --background: #040c08;
  --surface: #121313;
  --text: #e5f7ee;
  --primary: #98c3ae;
  --primary-foreground: #040c08;
  --accent: #c19e8b;
  --accent-foreground: #040c08;
}

@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 18.32:1 in light mode against 14.29:1, both use a green primary, and both use a orange accent.
  • Compared with Forest Trail, which shares a color: text reaches 18.32:1 in light mode against 12.35:1, both use a green primary, and both use a orange accent.