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.
NewExplore 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.
NewExplore your palette →
Roles
Five roles and their two foregrounds. Copy the exact HEX values.
| Role | Light | Dark |
|---|---|---|
| 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.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 17.10:1AAArequired | 15.13:1AAArequired | 4.17:1AA large | 1.18:1Fail |
| Primary | 4.09:1UIrequired | 3.62:1AA large | 1.00:1Fail | 3.53:1AA large |
| Accent | 14.45:1AAA | 12.78:1AAA | 3.53:1AA large | 1.00:1Fail |
| Primary Foreground | 19.67:1AAA | 17.41:1AAA | 4.80:1AArequired | 1.36:1Fail |
| Accent Foreground | 1.00:1Fail | 1.13:1Fail | 4.09:1AA large | 14.45:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 15.73:1AAArequired | 13.25:1AAArequired | 2.35:1Fail | 1.62:1Fail |
| Primary | 6.68:1AArequired | 5.62:1AA | 1.00:1Fail | 1.45:1Fail |
| Accent | 9.70:1AAA | 8.17:1AAA | 1.45:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.18:1Fail | 6.68:1AArequired | 9.70:1AAA |
| Accent Foreground | 1.00:1Fail | 1.18:1Fail | 6.68:1AA | 9.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.