Palette Library
Royal Reserve
An elegant palette for luxury with a purple primary and a yellow accent. Text reaches 16.56:1 in light mode and 14.96:1 in dark mode.
How to use it
Royal Reserve's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fdfdff, cards #ecedf8, and text #1b1c2b at 16.56:1; buttons #312e81 with #fdfdff labels at 11.24:1; highlights #c9a227 with #1b1c2b text at 6.95:1.
- Dark mode: page #181819, cards #20212a, and text #e9ebf9 at 14.96:1; buttons #a6aeff with #181819 labels at 8.55:1; highlights #c9a227 with #181819 text at 7.33:1.
- Links: #312e81 reaches 11.24:1 on the light page, and #a6aeff reaches 8.55:1 on the dark page.
- The accent as text: In light mode, keep #c9a227 for fills and badges, not text: it reaches only 2.38: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 | #fdfdff | #181819 |
| Surface | #ecedf8 | #20212a |
| Text | #1b1c2b | #e9ebf9 |
| Primary | #312e81 | #a6aeff |
| Primary Foreground | #fdfdff | #181819 |
| Accent | #c9a227 | #c9a227 |
| Accent Foreground | #1b1c2b | #181819 |
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.56:1AAArequired | 14.45:1AAArequired | 1.47:1Fail | 6.95:1AA |
| Primary | 11.24:1AAArequired | 9.81:1AAA | 1.00:1Fail | 4.72:1AA |
| Accent | 2.38:1Fail | 2.07:1Fail | 4.72:1AA | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.14:1Fail | 11.24:1AAArequired | 2.38:1Fail |
| Accent Foreground | 16.56:1AAA | 14.45:1AAA | 1.47:1Fail | 6.95:1AArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 14.96:1AAArequired | 13.49:1AAArequired | 1.75:1Fail | 2.04:1Fail |
| Primary | 8.55:1AAArequired | 7.71:1AAA | 1.00:1Fail | 1.16:1Fail |
| Accent | 7.33:1AAA | 6.61:1AA | 1.16:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.10:1Fail | 8.55:1AAArequired | 7.33:1AAA |
| Accent Foreground | 1.00:1Fail | 1.10:1Fail | 8.55: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: #fdfdff;
--surface: #ecedf8;
--text: #1b1c2b;
--primary: #312e81;
--primary-foreground: #fdfdff;
--accent: #c9a227;
--accent-foreground: #1b1c2b;
}
.dark {
--background: #181819;
--surface: #20212a;
--text: #e9ebf9;
--primary: #a6aeff;
--primary-foreground: #181819;
--accent: #c9a227;
--accent-foreground: #181819;
}
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: #fdfdff;
--surface: #ecedf8;
--text: #1b1c2b;
--primary: #312e81;
--primary-foreground: #fdfdff;
--accent: #c9a227;
--accent-foreground: #1b1c2b;
}
.dark {
color-scheme: dark;
--background: #181819;
--surface: #20212a;
--text: #e9ebf9;
--primary: #a6aeff;
--primary-foreground: #181819;
--accent: #c9a227;
--accent-foreground: #181819;
}
@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 Velvet Lounge, which shares the elegant style: text reaches 16.56:1 in light mode against 14.00:1, the primary is purple where Velvet Lounge's is pink, and both use a yellow accent.
- Compared with Plum Press, which shares the elegant style: text reaches 16.56:1 in light mode against 17.36:1, both use a purple primary, and both use a yellow accent.