Palette Library
Storefront
A vibrant palette for ecommerce with a blue primary and a red accent. Text reaches 13.34:1 in light mode and 17.62:1 in dark mode.
How to use it
Storefront's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #f9fbfc, cards #e9ebec, and text #222e38 at 13.34:1; buttons #364fc7 with #f9fbfc labels at 6.52:1; highlights #ff6b6b with #222e38 text at 4.99:1.
- Dark mode: page #0d0e0f, cards #11181e, and text #ebf6ff at 17.62:1; buttons #82a1ff with #0d0e0f labels at 7.81:1; highlights #ff6b6b with #0d0e0f text at 6.96:1.
- Links: #364fc7 reaches 6.52:1 on the light page, and #82a1ff reaches 7.81:1 on the dark page.
- The accent as text: In light mode, keep #ff6b6b for fills and badges, not text: it reaches only 2.67: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 | #f9fbfc | #0d0e0f |
| Surface | #e9ebec | #11181e |
| Text | #222e38 | #ebf6ff |
| Primary | #364fc7 | #82a1ff |
| Primary Foreground | #f9fbfc | #0d0e0f |
| Accent | #ff6b6b | #ff6b6b |
| Accent Foreground | #222e38 | #0d0e0f |
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 | 13.34:1AAArequired | 11.58:1AAArequired | 2.04:1Fail | 4.99:1AA |
| Primary | 6.52:1AArequired | 5.66:1AA | 1.00:1Fail | 2.44:1Fail |
| Accent | 2.67:1Fail | 2.32:1Fail | 2.44:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.15:1Fail | 6.52:1AArequired | 2.67:1Fail |
| Accent Foreground | 13.34:1AAA | 11.58:1AAA | 2.04:1Fail | 4.99:1AArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 17.62:1AAArequired | 16.32:1AAArequired | 2.25:1Fail | 2.53:1Fail |
| Primary | 7.81:1AAArequired | 7.23:1AAA | 1.00:1Fail | 1.12:1Fail |
| Accent | 6.96:1AA | 6.45:1AA | 1.12:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.07:1Fail | 7.81:1AAArequired | 6.96:1AA |
| Accent Foreground | 1.00:1Fail | 1.07:1Fail | 7.81:1AAA | 6.96: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: #f9fbfc;
--surface: #e9ebec;
--text: #222e38;
--primary: #364fc7;
--primary-foreground: #f9fbfc;
--accent: #ff6b6b;
--accent-foreground: #222e38;
}
.dark {
--background: #0d0e0f;
--surface: #11181e;
--text: #ebf6ff;
--primary: #82a1ff;
--primary-foreground: #0d0e0f;
--accent: #ff6b6b;
--accent-foreground: #0d0e0f;
}
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: #f9fbfc;
--surface: #e9ebec;
--text: #222e38;
--primary: #364fc7;
--primary-foreground: #f9fbfc;
--accent: #ff6b6b;
--accent-foreground: #222e38;
}
.dark {
color-scheme: dark;
--background: #0d0e0f;
--surface: #11181e;
--text: #ebf6ff;
--primary: #82a1ff;
--primary-foreground: #0d0e0f;
--accent: #ff6b6b;
--accent-foreground: #0d0e0f;
}
@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 Coral Reef, which shares the vibrant style: text reaches 13.34:1 in light mode against 13.16:1, the primary is blue where Coral Reef's is red, and the accent is red where Coral Reef's is teal.
- Compared with Market Stall, which shares the Ecommerce topic: text reaches 13.34:1 in light mode against 13.29:1, the primary is blue where Market Stall's is red, and the accent is red where Market Stall's is green.