Palette Library
Midcentury
A retro palette for creative with an orange primary and a green accent. Text reaches 17.82:1 in light mode and 16.47:1 in dark mode.
How to use it
Midcentury's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fefaf4, cards #f3f1ee, and text #151311 at 17.82:1; buttons #bc6c25 with #151311 labels at 4.68:1; highlights #283618 with #fefaf4 text at 12.38:1.
- Dark mode: page #0d0803, cards #150f07, and text #ede9e2 at 16.47:1; buttons #d2803d with #0d0803 labels at 6.54:1; highlights #b1c3a0 with #0d0803 text at 10.61:1.
- Links: #bc6c25 reaches 3.80:1 on the light page, and #d2803d reaches 6.54:1 on the dark page.
- The accent as text: #283618 also works as text: 12.38:1 on the light page and 10.61: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 | #fefaf4 | #0d0803 |
| Surface | #f3f1ee | #150f07 |
| Text | #151311 | #ede9e2 |
| Primary | #bc6c25 | #d2803d |
| Primary Foreground | #151311 | #0d0803 |
| Accent | #283618 | #b1c3a0 |
| Accent Foreground | #fefaf4 | #0d0803 |
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.82:1AAArequired | 16.43:1AAArequired | 4.68:1AA | 1.43:1Fail |
| Primary | 3.80:1UIrequired | 3.50:1AA large | 1.00:1Fail | 3.25:1AA large |
| Accent | 12.38:1AAA | 11.42:1AAA | 3.25:1AA large | 1.00:1Fail |
| Primary Foreground | 17.82:1AAA | 16.43:1AAA | 4.68:1AArequired | 1.43:1Fail |
| Accent Foreground | 1.00:1Fail | 1.08:1Fail | 3.80:1AA large | 12.38:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 16.47:1AAArequired | 15.73:1AAArequired | 2.51:1Fail | 1.55:1Fail |
| Primary | 6.54:1AArequired | 6.24:1AA | 1.00:1Fail | 1.62:1Fail |
| Accent | 10.61:1AAA | 10.13:1AAA | 1.62:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.04:1Fail | 6.54:1AArequired | 10.61:1AAA |
| Accent Foreground | 1.00:1Fail | 1.04:1Fail | 6.54:1AA | 10.61: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: #fefaf4;
--surface: #f3f1ee;
--text: #151311;
--primary: #bc6c25;
--primary-foreground: #151311;
--accent: #283618;
--accent-foreground: #fefaf4;
}
.dark {
--background: #0d0803;
--surface: #150f07;
--text: #ede9e2;
--primary: #d2803d;
--primary-foreground: #0d0803;
--accent: #b1c3a0;
--accent-foreground: #0d0803;
}
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: #fefaf4;
--surface: #f3f1ee;
--text: #151311;
--primary: #bc6c25;
--primary-foreground: #151311;
--accent: #283618;
--accent-foreground: #fefaf4;
}
.dark {
color-scheme: dark;
--background: #0d0803;
--surface: #150f07;
--text: #ede9e2;
--primary: #d2803d;
--primary-foreground: #0d0803;
--accent: #b1c3a0;
--accent-foreground: #0d0803;
}
@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 Seventies Den, which shares the retro style: text reaches 17.82:1 in light mode against 16.24:1, both use a orange primary, and the accent is green where Seventies Den's is yellow.
- Compared with Forest Trail, which shares a color: text reaches 17.82:1 in light mode against 12.35:1, the primary is orange where Forest Trail's is green, and the accent is green where Forest Trail's is orange.