Palette Library
Lagoon
A vibrant palette for travel with a teal primary and a pink accent. Text reaches 17.24:1 in light mode and 17.29:1 in dark mode.
How to use it
Lagoon's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fafdff, cards #eef4f9, and text #0f1a23 at 17.24:1; buttons #0d9488 with #0f1a23 labels at 4.70:1; highlights #f472b6 with #0f1a23 text at 6.64:1.
- Dark mode: page #090b0d, cards #161819, and text #eaf1f7 at 17.29:1; buttons #38ada0 with #090b0d labels at 7.18:1; highlights #f472b6 with #090b0d text at 7.44:1.
- Links: #0d9488 reaches 3.66:1 on the light page, and #38ada0 reaches 7.18:1 on the dark page.
- The accent as text: In light mode, keep #f472b6 for fills and badges, not text: it reaches only 2.59: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 | #fafdff | #090b0d |
| Surface | #eef4f9 | #161819 |
| Text | #0f1a23 | #eaf1f7 |
| Primary | #0d9488 | #38ada0 |
| Primary Foreground | #0f1a23 | #090b0d |
| Accent | #f472b6 | #f472b6 |
| Accent Foreground | #0f1a23 | #090b0d |
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.24:1AAArequired | 15.88:1AAArequired | 4.70:1AA | 6.64:1AA |
| Primary | 3.66:1UIrequired | 3.37:1AA large | 1.00:1Fail | 1.41:1Fail |
| Accent | 2.59:1Fail | 2.38:1Fail | 1.41:1Fail | 1.00:1Fail |
| Primary Foreground | 17.24:1AAA | 15.88:1AAA | 4.70:1AArequired | 6.64:1AA |
| Accent Foreground | 17.24:1AAA | 15.88:1AAA | 4.70:1AA | 6.64:1AArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 17.29:1AAArequired | 15.62:1AAArequired | 2.40:1Fail | 2.32:1Fail |
| Primary | 7.18:1AAArequired | 6.49:1AA | 1.00:1Fail | 1.03:1Fail |
| Accent | 7.44:1AAA | 6.72:1AA | 1.03:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.10:1Fail | 7.18:1AAArequired | 7.44:1AAA |
| Accent Foreground | 1.00:1Fail | 1.10:1Fail | 7.18:1AAA | 7.44: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: #fafdff;
--surface: #eef4f9;
--text: #0f1a23;
--primary: #0d9488;
--primary-foreground: #0f1a23;
--accent: #f472b6;
--accent-foreground: #0f1a23;
}
.dark {
--background: #090b0d;
--surface: #161819;
--text: #eaf1f7;
--primary: #38ada0;
--primary-foreground: #090b0d;
--accent: #f472b6;
--accent-foreground: #090b0d;
}
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: #fafdff;
--surface: #eef4f9;
--text: #0f1a23;
--primary: #0d9488;
--primary-foreground: #0f1a23;
--accent: #f472b6;
--accent-foreground: #0f1a23;
}
.dark {
color-scheme: dark;
--background: #090b0d;
--surface: #161819;
--text: #eaf1f7;
--primary: #38ada0;
--primary-foreground: #090b0d;
--accent: #f472b6;
--accent-foreground: #090b0d;
}
@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 Coral Reef, which shares the vibrant style: text reaches 17.24:1 in light mode against 13.16:1, the primary is teal where Coral Reef's is red, and the accent is pink where Coral Reef's is teal.
- Compared with Neon District, which shares the vibrant style: text reaches 17.24:1 in light mode against 11.97:1, the primary is teal where Neon District's is pink, and the accent is pink where Neon District's is teal.