Palette Library
Linen
A muted palette for ecommerce with a brown primary and a yellow accent. Text reaches 16.23:1 in light mode and 15.62:1 in dark mode.
How to use it
Linen's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fdfbfb, cards #efebe8, and text #281b10 at 16.23:1; buttons #6b5b4b with #fdfbfb labels at 6.31:1; highlights #c9b79c with #281b10 text at 8.55:1.
- Dark mode: page #17100a, cards #211f1d, and text #f3e8df at 15.62:1; buttons #b5a392 with #17100a labels at 7.73:1; highlights #948369 with #17100a text at 5.12:1.
- Links: #6b5b4b reaches 6.31:1 on the light page, and #b5a392 reaches 7.73:1 on the dark page.
- The accent as text: In light mode, keep #c9b79c for fills and badges, not text: it reaches only 1.89: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 | #fdfbfb | #17100a |
| Surface | #efebe8 | #211f1d |
| Text | #281b10 | #f3e8df |
| Primary | #6b5b4b | #b5a392 |
| Primary Foreground | #fdfbfb | #17100a |
| Accent | #c9b79c | #948369 |
| Accent Foreground | #281b10 | #17100a |
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.23:1AAArequired | 14.12:1AAArequired | 2.56:1Fail | 8.55:1AAA |
| Primary | 6.31:1AArequired | 5.49:1AA | 1.00:1Fail | 3.33:1AA large |
| Accent | 1.89:1Fail | 1.65:1Fail | 3.33:1AA large | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.14:1Fail | 6.31:1AArequired | 1.89:1Fail |
| Accent Foreground | 16.23:1AAA | 14.12:1AAA | 2.56:1Fail | 8.55:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 15.62:1AAArequired | 13.62:1AAArequired | 2.02:1Fail | 3.05:1AA large |
| Primary | 7.73:1AAArequired | 6.74:1AA | 1.00:1Fail | 1.50:1Fail |
| Accent | 5.12:1AA | 4.46:1AA large | 1.50:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.14:1Fail | 7.73:1AAArequired | 5.12:1AA |
| Accent Foreground | 1.00:1Fail | 1.14:1Fail | 7.73:1AAA | 5.12: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: #fdfbfb;
--surface: #efebe8;
--text: #281b10;
--primary: #6b5b4b;
--primary-foreground: #fdfbfb;
--accent: #c9b79c;
--accent-foreground: #281b10;
}
.dark {
--background: #17100a;
--surface: #211f1d;
--text: #f3e8df;
--primary: #b5a392;
--primary-foreground: #17100a;
--accent: #948369;
--accent-foreground: #17100a;
}
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: #fdfbfb;
--surface: #efebe8;
--text: #281b10;
--primary: #6b5b4b;
--primary-foreground: #fdfbfb;
--accent: #c9b79c;
--accent-foreground: #281b10;
}
.dark {
color-scheme: dark;
--background: #17100a;
--surface: #211f1d;
--text: #f3e8df;
--primary: #b5a392;
--primary-foreground: #17100a;
--accent: #948369;
--accent-foreground: #17100a;
}
@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 Caramel, which shares the Ecommerce topic: text reaches 16.23:1 in light mode against 15.95:1, both use a brown primary, and both use a yellow accent.
- Compared with Espresso Bar, which shares a color: text reaches 16.23:1 in light mode against 14.58:1, both use a brown primary, and both use a yellow accent.