Palette Library
Open Source
A calm palette for developer tools with a green primary and a yellow accent. Text reaches 16.50:1 in light mode and 18.13:1 in dark mode.
How to use it
Open Source's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #f5f8fa, cards #e2edf6, and text #101a22 at 16.50:1; buttons #0b6e4f with #f5f8fa labels at 5.86:1; highlights #f2c14e with #101a22 text at 10.49:1.
- Dark mode: page #05080b, cards #121415, and text #e9f5ff at 18.13:1; buttons #67bb98 with #05080b labels at 8.73:1; highlights #f2c14e with #05080b text at 11.96:1.
- Links: #0b6e4f reaches 5.86:1 on the light page, and #67bb98 reaches 8.73:1 on the dark page.
- The accent as text: In light mode, keep #f2c14e for fills and badges, not text: it reaches only 1.57: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.
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 | #f5f8fa | #05080b |
| Surface | #e2edf6 | #121415 |
| Text | #101a22 | #e9f5ff |
| Primary | #0b6e4f | #67bb98 |
| Primary Foreground | #f5f8fa | #05080b |
| Accent | #f2c14e | #f2c14e |
| Accent Foreground | #101a22 | #05080b |
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 | 16.50:1AAArequired | 14.81:1AAArequired | 2.81:1Fail | 10.49:1AAA |
| Primary | 5.86:1AArequired | 5.26:1AA | 1.00:1Fail | 3.72:1AA large |
| Accent | 1.57:1Fail | 1.41:1Fail | 3.72:1AA large | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.11:1Fail | 5.86:1AArequired | 1.57:1Fail |
| Accent Foreground | 16.50:1AAA | 14.81:1AAA | 2.81:1Fail | 10.49:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 18.13:1AAArequired | 16.68:1AAArequired | 2.07:1Fail | 1.51:1Fail |
| Primary | 8.73:1AAArequired | 8.03:1AAA | 1.00:1Fail | 1.36:1Fail |
| Accent | 11.96:1AAA | 11.00:1AAA | 1.36:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.08:1Fail | 8.73:1AAArequired | 11.96:1AAA |
| Accent Foreground | 1.00:1Fail | 1.08:1Fail | 8.73:1AAA | 11.96: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: #f5f8fa;
--surface: #e2edf6;
--text: #101a22;
--primary: #0b6e4f;
--primary-foreground: #f5f8fa;
--accent: #f2c14e;
--accent-foreground: #101a22;
}
.dark {
--background: #05080b;
--surface: #121415;
--text: #e9f5ff;
--primary: #67bb98;
--primary-foreground: #05080b;
--accent: #f2c14e;
--accent-foreground: #05080b;
}
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: #f5f8fa;
--surface: #e2edf6;
--text: #101a22;
--primary: #0b6e4f;
--primary-foreground: #f5f8fa;
--accent: #f2c14e;
--accent-foreground: #101a22;
}
.dark {
color-scheme: dark;
--background: #05080b;
--surface: #121415;
--text: #e9f5ff;
--primary: #67bb98;
--primary-foreground: #05080b;
--accent: #f2c14e;
--accent-foreground: #05080b;
}
@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 Harbor Light, which shares the calm style: text reaches 16.50:1 in light mode against 13.10:1, the primary is green where Harbor Light's is blue, and both use a yellow accent.
- Compared with Steady Ledger, which shares the calm style: text reaches 16.50:1 in light mode against 16.94:1, both use a green primary, and the accent is yellow where Steady Ledger's is blue.