Palette Library
Lagoon Resort
An elegant palette for travel with a teal primary and a yellow accent. Text reaches 12.73:1 in light mode and 16.54:1 in dark mode.
How to use it
Lagoon Resort's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #eef8f9, cards #e7f0f1, and text #242f31 at 12.73:1; buttons #087f8c with #ffffff labels at 4.74:1; highlights #e9c46a with #242f31 text at 8.23:1.
- Dark mode: page #091618, cards #162325, and text #edf4f5 at 16.54:1; buttons #4eafbc with #091618 labels at 7.17:1; highlights #e9c46a with #091618 text at 11.02:1.
- Links: #087f8c reaches 4.39:1 on the light page, and #4eafbc reaches 7.17:1 on the dark page.
- The accent as text: In light mode, keep #e9c46a for fills and badges, not text: it reaches only 1.54: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 | #eef8f9 | #091618 |
| Surface | #e7f0f1 | #162325 |
| Text | #242f31 | #edf4f5 |
| Primary | #087f8c | #4eafbc |
| Primary Foreground | #ffffff | #091618 |
| Accent | #e9c46a | #e9c46a |
| Accent Foreground | #242f31 | #091618 |
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 | 12.73:1AAArequired | 11.88:1AAArequired | 2.89:1Fail | 8.23:1AAA |
| Primary | 4.39:1UIrequired | 4.09:1AA large | 1.00:1Fail | 2.84:1Fail |
| Accent | 1.54:1Fail | 1.44:1Fail | 2.84:1Fail | 1.00:1Fail |
| Primary Foreground | 1.08:1Fail | 1.15:1Fail | 4.74:1AArequired | 1.67:1Fail |
| Accent Foreground | 12.73:1AAA | 11.88:1AAA | 2.89:1Fail | 8.23:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 16.54:1AAArequired | 14.49:1AAArequired | 2.30:1Fail | 1.50:1Fail |
| Primary | 7.17:1AAArequired | 6.28:1AA | 1.00:1Fail | 1.53:1Fail |
| Accent | 11.02:1AAA | 9.65:1AAA | 1.53:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.14:1Fail | 7.17:1AAArequired | 11.02:1AAA |
| Accent Foreground | 1.00:1Fail | 1.14:1Fail | 7.17:1AAA | 11.02: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: #eef8f9;
--surface: #e7f0f1;
--text: #242f31;
--primary: #087f8c;
--primary-foreground: #ffffff;
--accent: #e9c46a;
--accent-foreground: #242f31;
}
.dark {
--background: #091618;
--surface: #162325;
--text: #edf4f5;
--primary: #4eafbc;
--primary-foreground: #091618;
--accent: #e9c46a;
--accent-foreground: #091618;
}
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: #eef8f9;
--surface: #e7f0f1;
--text: #242f31;
--primary: #087f8c;
--primary-foreground: #ffffff;
--accent: #e9c46a;
--accent-foreground: #242f31;
}
.dark {
color-scheme: dark;
--background: #091618;
--surface: #162325;
--text: #edf4f5;
--primary: #4eafbc;
--primary-foreground: #091618;
--accent: #e9c46a;
--accent-foreground: #091618;
}
@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 Silk Road, which shares the elegant style: text reaches 12.73:1 in light mode against 17.26:1, the primary is teal where Silk Road's is pink, and both use a yellow accent.
- Compared with Ivy League, which shares the elegant style: text reaches 12.73:1 in light mode against 13.94:1, both use a teal primary, and both use a yellow accent.