Palette Library
Silk Road
An elegant palette for travel with a pink primary and a yellow accent. Text reaches 17.26:1 in light mode and 14.62:1 in dark mode.
How to use it
Silk Road's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fdfeff, cards #e7eff7, and text #0e1b27 at 17.26:1; buttons #7a1f5c with #fdfeff labels at 9.54:1; highlights #e0b354 with #0e1b27 text at 8.91:1.
- Dark mode: page #0b0e12, cards #171d23, and text #d1e2f3 at 14.62:1; buttons #ee8ac6 with #0b0e12 labels at 8.36:1; highlights #e0b354 with #0b0e12 text at 9.89:1.
- Links: #7a1f5c reaches 9.54:1 on the light page, and #ee8ac6 reaches 8.36:1 on the dark page.
- The accent as text: In light mode, keep #e0b354 for fills and badges, not text: it reaches only 1.93: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 | #fdfeff | #0b0e12 |
| Surface | #e7eff7 | #171d23 |
| Text | #0e1b27 | #d1e2f3 |
| Primary | #7a1f5c | #ee8ac6 |
| Primary Foreground | #fdfeff | #0b0e12 |
| Accent | #e0b354 | #e0b354 |
| Accent Foreground | #0e1b27 | #0b0e12 |
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 | 17.26:1AAArequired | 15.01:1AAArequired | 1.80:1Fail | 8.91:1AAA |
| Primary | 9.54:1AAArequired | 8.30:1AAA | 1.00:1Fail | 4.93:1AA |
| Accent | 1.93:1Fail | 1.68:1Fail | 4.93:1AA | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.14:1Fail | 9.54:1AAArequired | 1.93:1Fail |
| Accent Foreground | 17.26:1AAA | 15.01:1AAA | 1.80:1Fail | 8.91:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 14.62:1AAArequired | 12.84:1AAArequired | 1.74:1Fail | 1.47:1Fail |
| Primary | 8.36:1AAArequired | 7.34:1AAA | 1.00:1Fail | 1.18:1Fail |
| Accent | 9.89:1AAA | 8.69:1AAA | 1.18:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.13:1Fail | 8.36:1AAArequired | 9.89:1AAA |
| Accent Foreground | 1.00:1Fail | 1.13:1Fail | 8.36:1AAA | 9.89: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: #fdfeff;
--surface: #e7eff7;
--text: #0e1b27;
--primary: #7a1f5c;
--primary-foreground: #fdfeff;
--accent: #e0b354;
--accent-foreground: #0e1b27;
}
.dark {
--background: #0b0e12;
--surface: #171d23;
--text: #d1e2f3;
--primary: #ee8ac6;
--primary-foreground: #0b0e12;
--accent: #e0b354;
--accent-foreground: #0b0e12;
}
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: #fdfeff;
--surface: #e7eff7;
--text: #0e1b27;
--primary: #7a1f5c;
--primary-foreground: #fdfeff;
--accent: #e0b354;
--accent-foreground: #0e1b27;
}
.dark {
color-scheme: dark;
--background: #0b0e12;
--surface: #171d23;
--text: #d1e2f3;
--primary: #ee8ac6;
--primary-foreground: #0b0e12;
--accent: #e0b354;
--accent-foreground: #0b0e12;
}
@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 17.26:1 in light mode against 14.00:1, both use a pink primary, and both use a yellow accent.
- Compared with Flamingo, which shares the Travel topic: text reaches 17.26:1 in light mode against 13.40:1, both use a pink primary, and both use a yellow accent.