Palette Library
Sunrise Cafe
A playful palette for food with a red primary and a yellow accent. Text reaches 15.28:1 in light mode and 14.94:1 in dark mode.
How to use it
Sunrise Cafe's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #faf9f9, cards #f1f1f1, and text #222121 at 15.28:1; buttons #c2410c with #faf9f9 labels at 4.92:1; highlights #facc15 with #222121 text at 10.48:1.
- Dark mode: page #1e1411, cards #2b201d, and text #f4e7e3 at 14.94:1; buttons #f57045 with #1e1411 labels at 6.26:1; highlights #facc15 with #1e1411 text at 11.78:1.
- Links: #c2410c reaches 4.92:1 on the light page, and #f57045 reaches 6.26:1 on the dark page.
- The accent as text: In light mode, keep #facc15 for fills and badges, not text: it reaches only 1.45: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 | #faf9f9 | #1e1411 |
| Surface | #f1f1f1 | #2b201d |
| Text | #222121 | #f4e7e3 |
| Primary | #c2410c | #f57045 |
| Primary Foreground | #faf9f9 | #1e1411 |
| Accent | #facc15 | #facc15 |
| Accent Foreground | #222121 | #1e1411 |
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 | 15.28:1AAArequired | 14.21:1AAArequired | 3.10:1AA large | 10.48:1AAA |
| Primary | 4.92:1AArequired | 4.58:1AA | 1.00:1Fail | 3.38:1AA large |
| Accent | 1.45:1Fail | 1.35:1Fail | 3.38:1AA large | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.07:1Fail | 4.92:1AArequired | 1.45:1Fail |
| Accent Foreground | 15.28:1AAA | 14.21:1AAA | 3.10:1AA large | 10.48:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 14.94:1AAArequired | 13.10:1AAArequired | 2.38:1Fail | 1.26:1Fail |
| Primary | 6.26:1AArequired | 5.49:1AA | 1.00:1Fail | 1.88:1Fail |
| Accent | 11.78:1AAA | 10.33:1AAA | 1.88:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.14:1Fail | 6.26:1AArequired | 11.78:1AAA |
| Accent Foreground | 1.00:1Fail | 1.14:1Fail | 6.26:1AA | 11.78: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: #faf9f9;
--surface: #f1f1f1;
--text: #222121;
--primary: #c2410c;
--primary-foreground: #faf9f9;
--accent: #facc15;
--accent-foreground: #222121;
}
.dark {
--background: #1e1411;
--surface: #2b201d;
--text: #f4e7e3;
--primary: #f57045;
--primary-foreground: #1e1411;
--accent: #facc15;
--accent-foreground: #1e1411;
}
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: #faf9f9;
--surface: #f1f1f1;
--text: #222121;
--primary: #c2410c;
--primary-foreground: #faf9f9;
--accent: #facc15;
--accent-foreground: #222121;
}
.dark {
color-scheme: dark;
--background: #1e1411;
--surface: #2b201d;
--text: #f4e7e3;
--primary: #f57045;
--primary-foreground: #1e1411;
--accent: #facc15;
--accent-foreground: #1e1411;
}
@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 Orchard, which shares the playful style: text reaches 15.28:1 in light mode against 15.18:1, the primary is red where Orchard's is green, and the accent is yellow where Orchard's is red.
- Compared with Spice Route, which shares the Food topic: text reaches 15.28:1 in light mode against 13.53:1, both use a red primary, and both use a yellow accent.