Palette Library
Pearl
A pastel palette for luxury with a purple primary and a red accent. Text reaches 13.67:1 in light mode and 14.01:1 in dark mode.
How to use it
Pearl's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fcfcff, cards #efeff3, and text #2a2b37 at 13.67:1; buttons #45475a with #fcfcff labels at 8.90:1; highlights #f2cdcd with #2a2b37 text at 9.59:1.
- Dark mode: page #14151b, cards #1c1d1f, and text #dfe1ef at 14.01:1; buttons #acafc5 with #14151b labels at 8.40:1; highlights #f2cdcd with #14151b text at 12.48:1.
- Links: #45475a reaches 8.90:1 on the light page, and #acafc5 reaches 8.40:1 on the dark page.
- The accent as text: In light mode, keep #f2cdcd for fills and badges, not text: it reaches only 1.42: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 | #fcfcff | #14151b |
| Surface | #efeff3 | #1c1d1f |
| Text | #2a2b37 | #dfe1ef |
| Primary | #45475a | #acafc5 |
| Primary Foreground | #fcfcff | #14151b |
| Accent | #f2cdcd | #f2cdcd |
| Accent Foreground | #2a2b37 | #14151b |
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.67:1AAArequired | 12.21:1AAArequired | 1.53:1Fail | 9.59:1AAA |
| Primary | 8.90:1AAArequired | 7.95:1AAA | 1.00:1Fail | 6.25:1AA |
| Accent | 1.42:1Fail | 1.27:1Fail | 6.25:1AA | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.11:1Fail | 8.90:1AAArequired | 1.42:1Fail |
| Accent Foreground | 13.67:1AAA | 12.21:1AAA | 1.53:1Fail | 9.59:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 14.01:1AAArequired | 12.97:1AAArequired | 1.66:1Fail | 1.12:1Fail |
| Primary | 8.40:1AAArequired | 7.78:1AAA | 1.00:1Fail | 1.48:1Fail |
| Accent | 12.48:1AAA | 11.55:1AAA | 1.48:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.07:1Fail | 8.40:1AAArequired | 12.48:1AAA |
| Accent Foreground | 1.00:1Fail | 1.07:1Fail | 8.40:1AAA | 12.48: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: #fcfcff;
--surface: #efeff3;
--text: #2a2b37;
--primary: #45475a;
--primary-foreground: #fcfcff;
--accent: #f2cdcd;
--accent-foreground: #2a2b37;
}
.dark {
--background: #14151b;
--surface: #1c1d1f;
--text: #dfe1ef;
--primary: #acafc5;
--primary-foreground: #14151b;
--accent: #f2cdcd;
--accent-foreground: #14151b;
}
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: #fcfcff;
--surface: #efeff3;
--text: #2a2b37;
--primary: #45475a;
--primary-foreground: #fcfcff;
--accent: #f2cdcd;
--accent-foreground: #2a2b37;
}
.dark {
color-scheme: dark;
--background: #14151b;
--surface: #1c1d1f;
--text: #dfe1ef;
--primary: #acafc5;
--primary-foreground: #14151b;
--accent: #f2cdcd;
--accent-foreground: #14151b;
}
@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 Royal Reserve, which shares the Luxury topic: text reaches 13.67:1 in light mode against 16.56:1, both use a purple primary, and the accent is red where Royal Reserve's is yellow.
- Compared with Pastel Planner, which shares the pastel style: text reaches 13.67:1 in light mode against 18.74:1, both use a purple primary, and the accent is red where Pastel Planner's is green.