Palette Library
Bramble
A bold palette for nature with a purple primary and a green accent. Text reaches 16.26:1 in light mode and 16.56:1 in dark mode.
How to use it
Bramble's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #f9f6fd, cards #eae6f3, and text #1b1920 at 16.26:1; buttons #5a189a with #f9f6fd labels at 9.65:1; highlights #9ef01a with #1b1920 text at 12.37:1.
- Dark mode: page #161519, cards #222026, and text #f5f4f5 at 16.56:1; buttons #c09bff with #161519 labels at 8.11:1; highlights #9ef01a with #161519 text at 12.92:1.
- Links: #5a189a reaches 9.65:1 on the light page, and #c09bff reaches 8.11:1 on the dark page.
- The accent as text: In light mode, keep #9ef01a for fills and badges, not text: it reaches only 1.31: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 | #f9f6fd | #161519 |
| Surface | #eae6f3 | #222026 |
| Text | #1b1920 | #f5f4f5 |
| Primary | #5a189a | #c09bff |
| Primary Foreground | #f9f6fd | #161519 |
| Accent | #9ef01a | #9ef01a |
| Accent Foreground | #1b1920 | #161519 |
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.26:1AAArequired | 14.18:1AAArequired | 1.68:1Fail | 12.37:1AAA |
| Primary | 9.65:1AAArequired | 8.42:1AAA | 1.00:1Fail | 7.34:1AAA |
| Accent | 1.31:1Fail | 1.14:1Fail | 7.34:1AAA | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.14:1Fail | 9.65:1AAArequired | 1.31:1Fail |
| Accent Foreground | 16.26:1AAA | 14.18:1AAA | 1.68:1Fail | 12.37:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 16.56:1AAArequired | 14.69:1AAArequired | 2.04:1Fail | 1.28:1Fail |
| Primary | 8.11:1AAArequired | 7.19:1AAA | 1.00:1Fail | 1.59:1Fail |
| Accent | 12.92:1AAA | 11.46:1AAA | 1.59:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.12:1Fail | 8.11:1AAArequired | 12.92:1AAA |
| Accent Foreground | 1.00:1Fail | 1.12:1Fail | 8.11:1AAA | 12.92: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: #f9f6fd;
--surface: #eae6f3;
--text: #1b1920;
--primary: #5a189a;
--primary-foreground: #f9f6fd;
--accent: #9ef01a;
--accent-foreground: #1b1920;
}
.dark {
--background: #161519;
--surface: #222026;
--text: #f5f4f5;
--primary: #c09bff;
--primary-foreground: #161519;
--accent: #9ef01a;
--accent-foreground: #161519;
}
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: #f9f6fd;
--surface: #eae6f3;
--text: #1b1920;
--primary: #5a189a;
--primary-foreground: #f9f6fd;
--accent: #9ef01a;
--accent-foreground: #1b1920;
}
.dark {
color-scheme: dark;
--background: #161519;
--surface: #222026;
--text: #f5f4f5;
--primary: #c09bff;
--primary-foreground: #161519;
--accent: #9ef01a;
--accent-foreground: #161519;
}
@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 Terminal Glow, which shares the bold style: text reaches 16.26:1 in light mode against 13.92:1, the primary is purple where Terminal Glow's is green, and the accent is green where Terminal Glow's is purple.
- Compared with Forest Trail, which shares the Nature topic: text reaches 16.26:1 in light mode against 12.35:1, the primary is purple where Forest Trail's is green, and the accent is green where Forest Trail's is orange.