Palette Library

Sketchbook

A minimal palette for creative with a gray primary and a yellow accent. Text reaches 12.83:1 in light mode and 17.09:1 in dark mode.

How to use it

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

  • Light mode: page #feffff, cards #edf4fb, and text #273340 at 12.83:1; buttons #495057 with #feffff labels at 8.16:1; highlights #fab005 with #273340 text at 6.90:1.
  • Dark mode: page #0f1011, cards #171b1f, and text #e9f4ff at 17.09:1; buttons #a7afb7 with #0f1011 labels at 8.57:1; highlights #fab005 with #0f1011 text at 10.22:1.
  • Links: #495057 reaches 8.16:1 on the light page, and #a7afb7 reaches 8.57:1 on the dark page.
  • The accent as text: In light mode, keep #fab005 for fills and badges, not text: it reaches only 1.85: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
#feffff
#0f1011
Surface
#edf4fb
#171b1f
Text
#273340
#e9f4ff
Primary
#495057
#a7afb7
Primary Foreground
#feffff
#0f1011
Accent
#fab005
#fab005
Accent Foreground
#273340
#0f1011

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
Text12.83:1AAArequired11.58:1AAArequired1.57:1Fail6.90:1AA
Primary8.16:1AAArequired7.37:1AAA1.00:1Fail4.39:1AA large
Accent1.85:1Fail1.67:1Fail4.39:1AA large1.00:1Fail
Primary Foreground1.00:1Fail1.10:1Fail8.16:1AAArequired1.85:1Fail
Accent Foreground12.83:1AAA11.58:1AAA1.57:1Fail6.90:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text17.09:1AAArequired15.53:1AAArequired1.99:1Fail1.67:1Fail
Primary8.57:1AAArequired7.79:1AAA1.00:1Fail1.19:1Fail
Accent10.22:1AAA9.29:1AAA1.19:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.10:1Fail8.57:1AAArequired10.22:1AAA
Accent Foreground1.00:1Fail1.10:1Fail8.57:1AAA10.22: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: #feffff;
  --surface: #edf4fb;
  --text: #273340;
  --primary: #495057;
  --primary-foreground: #feffff;
  --accent: #fab005;
  --accent-foreground: #273340;
}

.dark {
  --background: #0f1011;
  --surface: #171b1f;
  --text: #e9f4ff;
  --primary: #a7afb7;
  --primary-foreground: #0f1011;
  --accent: #fab005;
  --accent-foreground: #0f1011;
}

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: #feffff;
  --surface: #edf4fb;
  --text: #273340;
  --primary: #495057;
  --primary-foreground: #feffff;
  --accent: #fab005;
  --accent-foreground: #273340;
}

.dark {
  color-scheme: dark;
  --background: #0f1011;
  --surface: #171b1f;
  --text: #e9f4ff;
  --primary: #a7afb7;
  --primary-foreground: #0f1011;
  --accent: #fab005;
  --accent-foreground: #0f1011;
}

@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 Paper and Ink, which shares the minimal style: text reaches 12.83:1 in light mode against 14.91:1, both use a gray primary, and the accent is yellow where Paper and Ink's is red.
  • Compared with Museum, which shares the Creative topic: text reaches 12.83:1 in light mode against 16.97:1, both use a gray primary, and both use a yellow accent.