Palette Library
Inkwell
A minimal palette for education with a blue primary and a yellow accent. Text reaches 15.09:1 in light mode and 15.39:1 in dark mode.
How to use it
Inkwell's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #f5f6f8, cards #eceef2, and text #1f2021 at 15.09:1; buttons #1e293b with #f5f6f8 labels at 13.52:1; highlights #f59e0b with #1f2021 text at 7.59:1.
- Dark mode: page #13171d, cards #1f242c, and text #e7eef8 at 15.39:1; buttons #b3c1d9 with #13171d labels at 9.88:1; highlights #f59e0b with #13171d text at 8.37:1.
- Links: #1e293b reaches 13.52:1 on the light page, and #b3c1d9 reaches 9.88:1 on the dark page.
- The accent as text: In light mode, keep #f59e0b for fills and badges, not text: it reaches only 1.98: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 | #f5f6f8 | #13171d |
| Surface | #eceef2 | #1f242c |
| Text | #1f2021 | #e7eef8 |
| Primary | #1e293b | #b3c1d9 |
| Primary Foreground | #f5f6f8 | #13171d |
| Accent | #f59e0b | #f59e0b |
| Accent Foreground | #1f2021 | #13171d |
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 | 15.09:1AAArequired | 14.04:1AAArequired | 1.11:1Fail | 7.59:1AAA |
| Primary | 13.52:1AAArequired | 12.59:1AAA | 1.00:1Fail | 6.81:1AA |
| Accent | 1.98:1Fail | 1.84:1Fail | 6.81:1AA | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.07:1Fail | 13.52:1AAArequired | 1.98:1Fail |
| Accent Foreground | 15.09:1AAA | 14.04:1AAA | 1.11:1Fail | 7.59:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 15.39:1AAArequired | 13.35:1AAArequired | 1.55:1Fail | 1.83:1Fail |
| Primary | 9.88:1AAArequired | 8.57:1AAA | 1.00:1Fail | 1.18:1Fail |
| Accent | 8.37:1AAA | 7.25:1AAA | 1.18:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.15:1Fail | 9.88:1AAArequired | 8.37:1AAA |
| Accent Foreground | 1.00:1Fail | 1.15:1Fail | 9.88:1AAA | 8.37: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: #f5f6f8;
--surface: #eceef2;
--text: #1f2021;
--primary: #1e293b;
--primary-foreground: #f5f6f8;
--accent: #f59e0b;
--accent-foreground: #1f2021;
}
.dark {
--background: #13171d;
--surface: #1f242c;
--text: #e7eef8;
--primary: #b3c1d9;
--primary-foreground: #13171d;
--accent: #f59e0b;
--accent-foreground: #13171d;
}
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: #f5f6f8;
--surface: #eceef2;
--text: #1f2021;
--primary: #1e293b;
--primary-foreground: #f5f6f8;
--accent: #f59e0b;
--accent-foreground: #1f2021;
}
.dark {
color-scheme: dark;
--background: #13171d;
--surface: #1f242c;
--text: #e7eef8;
--primary: #b3c1d9;
--primary-foreground: #13171d;
--accent: #f59e0b;
--accent-foreground: #13171d;
}
@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 Chalkboard, which shares the Education topic: text reaches 15.09:1 in light mode against 12.43:1, both use a blue primary, and both use a yellow accent.
- Compared with Atlas, which shares the Education topic: text reaches 15.09:1 in light mode against 12.60:1, both use a blue primary, and both use a yellow accent.