Palette Library
Typewriter
A retro palette for education with a gray primary and a red accent. Text reaches 14.10:1 in light mode and 17.32:1 in dark mode.
How to use it
Typewriter's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fcf8f4, cards #ebeaea, and text #282726 at 14.10:1; buttons #2d2d2d with #fcf8f4 labels at 13.03:1; highlights #c44536 with #fcf8f4 text at 4.67:1.
- Dark mode: page #101010, cards #211a13, and text #fbf3eb at 17.32:1; buttons #bebebe with #101010 labels at 10.23:1; highlights #f16e5c with #101010 text at 6.45:1.
- Links: #2d2d2d reaches 13.03:1 on the light page, and #bebebe reaches 10.23:1 on the dark page.
- The accent as text: #c44536 also works as text: 4.67:1 on the light page and 6.45: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 | #fcf8f4 | #101010 |
| Surface | #ebeaea | #211a13 |
| Text | #282726 | #fbf3eb |
| Primary | #2d2d2d | #bebebe |
| Primary Foreground | #fcf8f4 | #101010 |
| Accent | #c44536 | #f16e5c |
| Accent Foreground | #fcf8f4 | #101010 |
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 | 14.10:1AAArequired | 12.41:1AAArequired | 1.08:1Fail | 3.01:1AA large |
| Primary | 13.03:1AAArequired | 11.46:1AAA | 1.00:1Fail | 2.78:1Fail |
| Accent | 4.67:1AA | 4.11:1AA large | 2.78:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.13:1Fail | 13.03:1AAArequired | 4.67:1AA |
| Accent Foreground | 1.00:1Fail | 1.13:1Fail | 13.03:1AAA | 4.67:1AArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 17.32:1AAArequired | 15.65:1AAArequired | 1.69:1Fail | 2.68:1Fail |
| Primary | 10.23:1AAArequired | 9.24:1AAA | 1.00:1Fail | 1.58:1Fail |
| Accent | 6.45:1AA | 5.83:1AA | 1.58:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.10:1Fail | 10.23:1AAArequired | 6.45:1AA |
| Accent Foreground | 1.00:1Fail | 1.10:1Fail | 10.23:1AAA | 6.45:1AArequired |
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: #fcf8f4;
--surface: #ebeaea;
--text: #282726;
--primary: #2d2d2d;
--primary-foreground: #fcf8f4;
--accent: #c44536;
--accent-foreground: #fcf8f4;
}
.dark {
--background: #101010;
--surface: #211a13;
--text: #fbf3eb;
--primary: #bebebe;
--primary-foreground: #101010;
--accent: #f16e5c;
--accent-foreground: #101010;
}
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: #fcf8f4;
--surface: #ebeaea;
--text: #282726;
--primary: #2d2d2d;
--primary-foreground: #fcf8f4;
--accent: #c44536;
--accent-foreground: #fcf8f4;
}
.dark {
color-scheme: dark;
--background: #101010;
--surface: #211a13;
--text: #fbf3eb;
--primary: #bebebe;
--primary-foreground: #101010;
--accent: #f16e5c;
--accent-foreground: #101010;
}
@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 retro style: text reaches 14.10:1 in light mode against 12.43:1, the primary is gray where Chalkboard's is blue, and the accent is red where Chalkboard's is yellow.
- Compared with Paper and Ink, which shares a color: text reaches 14.10:1 in light mode against 14.91:1, both use a gray primary, and both use a red accent.