Palette Library
Obsidian
A minimal palette for luxury with a gray primary and a purple accent. Text reaches 17.64:1 in light mode and 14.38:1 in dark mode.
How to use it
Obsidian's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fcfcff, cards #ededf4, and text #161618 at 17.64:1; buttons #18181b with #fcfcff labels at 17.30:1; highlights #a78bfa with #161618 text at 6.64:1.
- Dark mode: page #121214, cards #1e1e22, and text #e1e1e9 at 14.38:1; buttons #c9c9cd with #121214 labels at 11.33:1; highlights #a78bfa with #121214 text at 6.87:1.
- Links: #18181b reaches 17.30:1 on the light page, and #c9c9cd reaches 11.33:1 on the dark page.
- The accent as text: In light mode, keep #a78bfa for fills and badges, not text: it reaches only 2.65: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 | #121214 |
| Surface | #ededf4 | #1e1e22 |
| Text | #161618 | #e1e1e9 |
| Primary | #18181b | #c9c9cd |
| Primary Foreground | #fcfcff | #121214 |
| Accent | #a78bfa | #a78bfa |
| Accent Foreground | #161618 | #121214 |
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.64:1AAArequired | 15.50:1AAArequired | 1.02:1Fail | 6.64:1AA |
| Primary | 17.30:1AAArequired | 15.20:1AAA | 1.00:1Fail | 6.51:1AA |
| Accent | 2.65:1Fail | 2.33:1Fail | 6.51:1AA | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.13:1Fail | 17.30:1AAArequired | 2.65:1Fail |
| Accent Foreground | 17.64:1AAA | 15.50:1AAA | 1.02:1Fail | 6.64:1AArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 14.38:1AAArequired | 12.77:1AAArequired | 1.26:1Fail | 2.09:1Fail |
| Primary | 11.33:1AAArequired | 10.06:1AAA | 1.00:1Fail | 1.64:1Fail |
| Accent | 6.87:1AA | 6.10:1AA | 1.64:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.12:1Fail | 11.33:1AAArequired | 6.87:1AA |
| Accent Foreground | 1.00:1Fail | 1.12:1Fail | 11.33:1AAA | 6.87:1AArequired |
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: #ededf4;
--text: #161618;
--primary: #18181b;
--primary-foreground: #fcfcff;
--accent: #a78bfa;
--accent-foreground: #161618;
}
.dark {
--background: #121214;
--surface: #1e1e22;
--text: #e1e1e9;
--primary: #c9c9cd;
--primary-foreground: #121214;
--accent: #a78bfa;
--accent-foreground: #121214;
}
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: #ededf4;
--text: #161618;
--primary: #18181b;
--primary-foreground: #fcfcff;
--accent: #a78bfa;
--accent-foreground: #161618;
}
.dark {
color-scheme: dark;
--background: #121214;
--surface: #1e1e22;
--text: #e1e1e9;
--primary: #c9c9cd;
--primary-foreground: #121214;
--accent: #a78bfa;
--accent-foreground: #121214;
}
@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 Graphite Console, which shares the minimal style: text reaches 17.64:1 in light mode against 18.45:1, both use a gray primary, and the accent is purple where Graphite Console's is teal.
- Compared with Paper and Ink, which shares the minimal style: text reaches 17.64:1 in light mode against 14.91:1, both use a gray primary, and the accent is purple where Paper and Ink's is red.