Palette Library
Velvet Lounge
An elegant palette for luxury with a pink primary and a yellow accent. Text reaches 14.00:1 in light mode and 14.43:1 in dark mode.
How to use it
Velvet Lounge's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #f4f7fa, cards #e2e7ef, and text #202730 at 14.00:1; buttons #831843 with #f4f7fa labels at 8.97:1; highlights #d4a017 with #202730 text at 6.34:1.
- Dark mode: page #141618, cards #1c1e1f, and text #e0e6ed at 14.43:1; buttons #fa86a8 with #141618 labels at 7.80:1; highlights #d4a017 with #141618 text at 7.63:1.
- Links: #831843 reaches 8.97:1 on the light page, and #fa86a8 reaches 7.80:1 on the dark page.
- The accent as text: In light mode, keep #d4a017 for fills and badges, not text: it reaches only 2.20: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 | #f4f7fa | #141618 |
| Surface | #e2e7ef | #1c1e1f |
| Text | #202730 | #e0e6ed |
| Primary | #831843 | #fa86a8 |
| Primary Foreground | #f4f7fa | #141618 |
| Accent | #d4a017 | #d4a017 |
| Accent Foreground | #202730 | #141618 |
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 | 14.00:1AAArequired | 12.12:1AAArequired | 1.56:1Fail | 6.34:1AA |
| Primary | 8.97:1AAArequired | 7.76:1AAA | 1.00:1Fail | 4.06:1AA large |
| Accent | 2.20:1Fail | 1.91:1Fail | 4.06:1AA large | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.15:1Fail | 8.97:1AAArequired | 2.20:1Fail |
| Accent Foreground | 14.00:1AAA | 12.12:1AAA | 1.56:1Fail | 6.34:1AArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 14.43:1AAArequired | 13.31:1AAArequired | 1.84:1Fail | 1.89:1Fail |
| Primary | 7.80:1AAArequired | 7.20:1AAA | 1.00:1Fail | 1.02:1Fail |
| Accent | 7.63:1AAA | 7.04:1AAA | 1.02:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.08:1Fail | 7.80:1AAArequired | 7.63:1AAA |
| Accent Foreground | 1.00:1Fail | 1.08:1Fail | 7.80:1AAA | 7.63: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: #f4f7fa;
--surface: #e2e7ef;
--text: #202730;
--primary: #831843;
--primary-foreground: #f4f7fa;
--accent: #d4a017;
--accent-foreground: #202730;
}
.dark {
--background: #141618;
--surface: #1c1e1f;
--text: #e0e6ed;
--primary: #fa86a8;
--primary-foreground: #141618;
--accent: #d4a017;
--accent-foreground: #141618;
}
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: #f4f7fa;
--surface: #e2e7ef;
--text: #202730;
--primary: #831843;
--primary-foreground: #f4f7fa;
--accent: #d4a017;
--accent-foreground: #202730;
}
.dark {
color-scheme: dark;
--background: #141618;
--surface: #1c1e1f;
--text: #e0e6ed;
--primary: #fa86a8;
--primary-foreground: #141618;
--accent: #d4a017;
--accent-foreground: #141618;
}
@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 elegant style: text reaches 14.00:1 in light mode against 16.56:1, the primary is pink where Royal Reserve's is purple, and both use a yellow accent.
- Compared with Gold Standard, which shares the elegant style: text reaches 14.00:1 in light mode against 15.80:1, the primary is pink where Gold Standard's is gray, and both use a yellow accent.