Palette Library
Onyx Gold
An elegant palette for luxury with a gray primary and a yellow accent. Text reaches 14.65:1 in light mode and 17.33:1 in dark mode.
How to use it
Onyx Gold's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fbf9f7, cards #f6efe9, and text #2c231c at 14.65:1; buttons #0a0a0a with #fbf9f7 labels at 18.85:1; highlights #c5a028 with #2c231c text at 6.18:1.
- Dark mode: page #11100f, cards #251c15, and text #f6f4f3 at 17.33:1; buttons #d1d1d1 with #11100f labels at 12.44:1; highlights #c5a028 with #11100f text at 7.63:1.
- Links: #0a0a0a reaches 18.85:1 on the light page, and #d1d1d1 reaches 12.44:1 on the dark page.
- The accent as text: In light mode, keep #c5a028 for fills and badges, not text: it reaches only 2.37: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 | #fbf9f7 | #11100f |
| Surface | #f6efe9 | #251c15 |
| Text | #2c231c | #f6f4f3 |
| Primary | #0a0a0a | #d1d1d1 |
| Primary Foreground | #fbf9f7 | #11100f |
| Accent | #c5a028 | #c5a028 |
| Accent Foreground | #2c231c | #11100f |
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.65:1AAArequired | 13.51:1AAArequired | 1.28:1Fail | 6.18:1AA |
| Primary | 18.85:1AAArequired | 17.38:1AAA | 1.00:1Fail | 7.95:1AAA |
| Accent | 2.37:1Fail | 2.18:1Fail | 7.95:1AAA | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.08:1Fail | 18.85:1AAArequired | 2.37:1Fail |
| Accent Foreground | 14.65:1AAA | 13.51:1AAA | 1.28:1Fail | 6.18:1AArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 17.33:1AAArequired | 15.25:1AAArequired | 1.39:1Fail | 2.27:1Fail |
| Primary | 12.44:1AAArequired | 10.95:1AAA | 1.00:1Fail | 1.63:1Fail |
| Accent | 7.63:1AAA | 6.71:1AA | 1.63:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.13:1Fail | 12.44:1AAArequired | 7.63:1AAA |
| Accent Foreground | 1.00:1Fail | 1.13:1Fail | 12.44: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: #fbf9f7;
--surface: #f6efe9;
--text: #2c231c;
--primary: #0a0a0a;
--primary-foreground: #fbf9f7;
--accent: #c5a028;
--accent-foreground: #2c231c;
}
.dark {
--background: #11100f;
--surface: #251c15;
--text: #f6f4f3;
--primary: #d1d1d1;
--primary-foreground: #11100f;
--accent: #c5a028;
--accent-foreground: #11100f;
}
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: #fbf9f7;
--surface: #f6efe9;
--text: #2c231c;
--primary: #0a0a0a;
--primary-foreground: #fbf9f7;
--accent: #c5a028;
--accent-foreground: #2c231c;
}
.dark {
color-scheme: dark;
--background: #11100f;
--surface: #251c15;
--text: #f6f4f3;
--primary: #d1d1d1;
--primary-foreground: #11100f;
--accent: #c5a028;
--accent-foreground: #11100f;
}
@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 Gold Standard, which shares the elegant style: text reaches 14.65:1 in light mode against 15.80:1, both use a gray primary, and both use a yellow accent.
- Compared with Velvet Lounge, which shares the elegant style: text reaches 14.65:1 in light mode against 14.00:1, the primary is gray where Velvet Lounge's is pink, and both use a yellow accent.