Palette Library
Charcoal Rose
A minimal palette for ecommerce with a gray primary and a pink accent. Text reaches 18.95:1 in light mode and 15.90:1 in dark mode.
How to use it
Charcoal Rose's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fbfcfd, cards #e5edf7, and text #0a0d11 at 18.95:1; buttons #3f3f46 with #fbfcfd labels at 10.16:1; highlights #fb7185 with #0a0d11 text at 7.23:1.
- Dark mode: page #070b0f, cards #0d131a, and text #dde8f4 at 15.90:1; buttons #b4b4bc with #070b0f labels at 9.58:1; highlights #fb7185 with #070b0f text at 7.33:1.
- Links: #3f3f46 reaches 10.16:1 on the light page, and #b4b4bc reaches 9.58:1 on the dark page.
- The accent as text: In light mode, keep #fb7185 for fills and badges, not text: it reaches only 2.62: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 | #fbfcfd | #070b0f |
| Surface | #e5edf7 | #0d131a |
| Text | #0a0d11 | #dde8f4 |
| Primary | #3f3f46 | #b4b4bc |
| Primary Foreground | #fbfcfd | #070b0f |
| Accent | #fb7185 | #fb7185 |
| Accent Foreground | #0a0d11 | #070b0f |
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 | 18.95:1AAArequired | 16.49:1AAArequired | 1.86:1Fail | 7.23:1AAA |
| Primary | 10.16:1AAArequired | 8.84:1AAA | 1.00:1Fail | 3.88:1AA large |
| Accent | 2.62:1Fail | 2.27:1Fail | 3.88:1AA large | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.14:1Fail | 10.16:1AAArequired | 2.62:1Fail |
| Accent Foreground | 18.95:1AAA | 16.49:1AAA | 1.86:1Fail | 7.23:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 15.90:1AAArequired | 15.04:1AAArequired | 1.65:1Fail | 2.16:1Fail |
| Primary | 9.58:1AAArequired | 9.06:1AAA | 1.00:1Fail | 1.30:1Fail |
| Accent | 7.33:1AAA | 6.93:1AA | 1.30:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.05:1Fail | 9.58:1AAArequired | 7.33:1AAA |
| Accent Foreground | 1.00:1Fail | 1.05:1Fail | 9.58:1AAA | 7.33: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: #fbfcfd;
--surface: #e5edf7;
--text: #0a0d11;
--primary: #3f3f46;
--primary-foreground: #fbfcfd;
--accent: #fb7185;
--accent-foreground: #0a0d11;
}
.dark {
--background: #070b0f;
--surface: #0d131a;
--text: #dde8f4;
--primary: #b4b4bc;
--primary-foreground: #070b0f;
--accent: #fb7185;
--accent-foreground: #070b0f;
}
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: #fbfcfd;
--surface: #e5edf7;
--text: #0a0d11;
--primary: #3f3f46;
--primary-foreground: #fbfcfd;
--accent: #fb7185;
--accent-foreground: #0a0d11;
}
.dark {
color-scheme: dark;
--background: #070b0f;
--surface: #0d131a;
--text: #dde8f4;
--primary: #b4b4bc;
--primary-foreground: #070b0f;
--accent: #fb7185;
--accent-foreground: #070b0f;
}
@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 Graphite Console, which shares the minimal style: text reaches 18.95:1 in light mode against 18.45:1, both use a gray primary, and the accent is pink where Graphite Console's is teal.
- Compared with Paper and Ink, which shares the minimal style: text reaches 18.95:1 in light mode against 14.91:1, both use a gray primary, and the accent is pink where Paper and Ink's is red.