Palette Library
Museum
An elegant palette for creative with a gray primary and a yellow accent. Text reaches 16.97:1 in light mode and 13.82:1 in dark mode.
How to use it
Museum's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #f7f5f6, cards #ecebeb, and text #1c1114 at 16.97:1; buttons #4a4a4a with #f7f5f6 labels at 8.16:1; highlights #b08d57 with #1c1114 text at 5.96:1.
- Dark mode: page #1a1415, cards #1f1c1d, and text #f4dae1 at 13.82:1; buttons #b0b0b0 with #1a1415 labels at 8.38:1; highlights #b08d57 with #1a1415 text at 5.88:1.
- Links: #4a4a4a reaches 8.16:1 on the light page, and #b0b0b0 reaches 8.38:1 on the dark page.
- The accent as text: In light mode, keep #b08d57 for fills and badges, not text: it reaches only 2.84: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 | #f7f5f6 | #1a1415 |
| Surface | #ecebeb | #1f1c1d |
| Text | #1c1114 | #f4dae1 |
| Primary | #4a4a4a | #b0b0b0 |
| Primary Foreground | #f7f5f6 | #1a1415 |
| Accent | #b08d57 | #b08d57 |
| Accent Foreground | #1c1114 | #1a1415 |
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 | 16.97:1AAArequired | 15.48:1AAArequired | 2.07:1Fail | 5.96:1AA |
| Primary | 8.16:1AAArequired | 7.44:1AAA | 1.00:1Fail | 2.86:1Fail |
| Accent | 2.84:1Fail | 2.59:1Fail | 2.86:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.09:1Fail | 8.16:1AAArequired | 2.84:1Fail |
| Accent Foreground | 16.97:1AAA | 15.48:1AAA | 2.07:1Fail | 5.96:1AArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 13.82:1AAArequired | 12.85:1AAArequired | 1.64:1Fail | 2.34:1Fail |
| Primary | 8.38:1AAArequired | 7.79:1AAA | 1.00:1Fail | 1.42:1Fail |
| Accent | 5.88:1AA | 5.46:1AA | 1.42:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.07:1Fail | 8.38:1AAArequired | 5.88:1AA |
| Accent Foreground | 1.00:1Fail | 1.07:1Fail | 8.38:1AAA | 5.88: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: #f7f5f6;
--surface: #ecebeb;
--text: #1c1114;
--primary: #4a4a4a;
--primary-foreground: #f7f5f6;
--accent: #b08d57;
--accent-foreground: #1c1114;
}
.dark {
--background: #1a1415;
--surface: #1f1c1d;
--text: #f4dae1;
--primary: #b0b0b0;
--primary-foreground: #1a1415;
--accent: #b08d57;
--accent-foreground: #1a1415;
}
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: #f7f5f6;
--surface: #ecebeb;
--text: #1c1114;
--primary: #4a4a4a;
--primary-foreground: #f7f5f6;
--accent: #b08d57;
--accent-foreground: #1c1114;
}
.dark {
color-scheme: dark;
--background: #1a1415;
--surface: #1f1c1d;
--text: #f4dae1;
--primary: #b0b0b0;
--primary-foreground: #1a1415;
--accent: #b08d57;
--accent-foreground: #1a1415;
}
@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 16.97:1 in light mode against 15.80:1, both use a gray primary, and both use a yellow accent.
- Compared with Onyx Gold, which shares the elegant style: text reaches 16.97:1 in light mode against 14.65:1, both use a gray primary, and both use a yellow accent.