Palette Library
Midnight Orchid
An elegant palette for creative with a purple primary and a pink accent. Text reaches 13.15:1 in light mode and 15.72:1 in dark mode.
How to use it
Midnight Orchid's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fcfaf7, cards #efedeb, and text #2f2d2c at 13.15:1; buttons #6d28d9 with #fcfaf7 labels at 6.81:1; highlights #f472b6 with #2f2d2c text at 5.17:1.
- Dark mode: page #0e0d0b, cards #171616, and text #e8e7e6 at 15.72:1; buttons #aa90ff with #0e0d0b labels at 7.53:1; highlights #f472b6 with #0e0d0b text at 7.33:1.
- Links: #6d28d9 reaches 6.81:1 on the light page, and #aa90ff reaches 7.53:1 on the dark page.
- The accent as text: In light mode, keep #f472b6 for fills and badges, not text: it reaches only 2.54: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 | #fcfaf7 | #0e0d0b |
| Surface | #efedeb | #171616 |
| Text | #2f2d2c | #e8e7e6 |
| Primary | #6d28d9 | #aa90ff |
| Primary Foreground | #fcfaf7 | #0e0d0b |
| Accent | #f472b6 | #f472b6 |
| Accent Foreground | #2f2d2c | #0e0d0b |
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.15:1AAArequired | 11.73:1AAArequired | 1.92:1Fail | 5.17:1AA |
| Primary | 6.81:1AArequired | 6.08:1AA | 1.00:1Fail | 2.68:1Fail |
| Accent | 2.54:1Fail | 2.26:1Fail | 2.68:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.12:1Fail | 6.81:1AArequired | 2.54:1Fail |
| Accent Foreground | 13.15:1AAA | 11.73:1AAA | 1.92:1Fail | 5.17:1AArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 15.72:1AAArequired | 14.62:1AAArequired | 2.08:1Fail | 2.14:1Fail |
| Primary | 7.53:1AAArequired | 7.00:1AAA | 1.00:1Fail | 1.02:1Fail |
| Accent | 7.33:1AAA | 6.81:1AA | 1.02:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.07:1Fail | 7.53:1AAArequired | 7.33:1AAA |
| Accent Foreground | 1.00:1Fail | 1.07:1Fail | 7.53: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: #fcfaf7;
--surface: #efedeb;
--text: #2f2d2c;
--primary: #6d28d9;
--primary-foreground: #fcfaf7;
--accent: #f472b6;
--accent-foreground: #2f2d2c;
}
.dark {
--background: #0e0d0b;
--surface: #171616;
--text: #e8e7e6;
--primary: #aa90ff;
--primary-foreground: #0e0d0b;
--accent: #f472b6;
--accent-foreground: #0e0d0b;
}
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: #fcfaf7;
--surface: #efedeb;
--text: #2f2d2c;
--primary: #6d28d9;
--primary-foreground: #fcfaf7;
--accent: #f472b6;
--accent-foreground: #2f2d2c;
}
.dark {
color-scheme: dark;
--background: #0e0d0b;
--surface: #171616;
--text: #e8e7e6;
--primary: #aa90ff;
--primary-foreground: #0e0d0b;
--accent: #f472b6;
--accent-foreground: #0e0d0b;
}
@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 Lavender Field, which shares the Creative topic: text reaches 13.15:1 in light mode against 19.07:1, both use a purple primary, and the accent is pink where Lavender Field's is green.
- Compared with Velvet Lounge, which shares the elegant style: text reaches 13.15:1 in light mode against 14.00:1, the primary is purple where Velvet Lounge's is pink, and the accent is pink where Velvet Lounge's is yellow.