Palette Library

Hacker Green

A minimal palette for developer tools with a green primary and a gray accent. Text reaches 17.10:1 in light mode and 15.73:1 in dark mode.

How to use it

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

  • Light mode: page #f6f8f6, cards #e9eae9, and text #0f1710 at 17.10:1; buttons #2b8a3e with #000000 labels at 4.80:1; highlights #212529 with #f6f8f6 text at 14.45:1.
  • Dark mode: page #151d15, cards #272a27, and text #ebf8ec at 15.73:1; buttons #59b466 with #151d15 labels at 6.68:1; highlights #bec3c8 with #151d15 text at 9.70:1.
  • Links: #2b8a3e reaches 4.09:1 on the light page, and #59b466 reaches 6.68:1 on the dark page.
  • The accent as text: #212529 also works as text: 14.45:1 on the light page and 9.70:1 on the dark 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
#f6f8f6
#151d15
Surface
#e9eae9
#272a27
Text
#0f1710
#ebf8ec
Primary
#2b8a3e
#59b466
Primary Foreground
#000000
#151d15
Accent
#212529
#bec3c8
Accent Foreground
#f6f8f6
#151d15

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
Text17.10:1AAArequired15.13:1AAArequired4.17:1AA large1.18:1Fail
Primary4.09:1UIrequired3.62:1AA large1.00:1Fail3.53:1AA large
Accent14.45:1AAA12.78:1AAA3.53:1AA large1.00:1Fail
Primary Foreground19.67:1AAA17.41:1AAA4.80:1AArequired1.36:1Fail
Accent Foreground1.00:1Fail1.13:1Fail4.09:1AA large14.45:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text15.73:1AAArequired13.25:1AAArequired2.35:1Fail1.62:1Fail
Primary6.68:1AArequired5.62:1AA1.00:1Fail1.45:1Fail
Accent9.70:1AAA8.17:1AAA1.45:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.18:1Fail6.68:1AArequired9.70:1AAA
Accent Foreground1.00:1Fail1.18:1Fail6.68:1AA9.70: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: #f6f8f6;
  --surface: #e9eae9;
  --text: #0f1710;
  --primary: #2b8a3e;
  --primary-foreground: #000000;
  --accent: #212529;
  --accent-foreground: #f6f8f6;
}

.dark {
  --background: #151d15;
  --surface: #272a27;
  --text: #ebf8ec;
  --primary: #59b466;
  --primary-foreground: #151d15;
  --accent: #bec3c8;
  --accent-foreground: #151d15;
}

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: #f6f8f6;
  --surface: #e9eae9;
  --text: #0f1710;
  --primary: #2b8a3e;
  --primary-foreground: #000000;
  --accent: #212529;
  --accent-foreground: #f6f8f6;
}

.dark {
  color-scheme: dark;
  --background: #151d15;
  --surface: #272a27;
  --text: #ebf8ec;
  --primary: #59b466;
  --primary-foreground: #151d15;
  --accent: #bec3c8;
  --accent-foreground: #151d15;
}

@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 Graphite Console, which shares the minimal style: text reaches 17.10:1 in light mode against 18.45:1, the primary is green where Graphite Console's is gray, and the accent is gray where Graphite Console's is teal.
  • Compared with Code Review, which shares the minimal style: text reaches 17.10:1 in light mode against 17.06:1, the primary is green where Code Review's is blue, and the accent is gray where Code Review's is green.