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.

Get startedNew

Explore 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.

Get startedNew

Explore your palette →

Roles

Five roles and their two foregrounds. Copy the exact HEX values.

RoleLightDark
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.

light mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text12.73:1AAArequired11.88:1AAArequired2.89:1Fail8.23:1AAA
Primary4.39:1UIrequired4.09:1AA large1.00:1Fail2.84:1Fail
Accent1.54:1Fail1.44:1Fail2.84:1Fail1.00:1Fail
Primary Foreground1.08:1Fail1.15:1Fail4.74:1AArequired1.67:1Fail
Accent Foreground12.73:1AAA11.88:1AAA2.89:1Fail8.23:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text16.54:1AAArequired14.49:1AAArequired2.30:1Fail1.50:1Fail
Primary7.17:1AAArequired6.28:1AA1.00:1Fail1.53:1Fail
Accent11.02:1AAA9.65:1AAA1.53:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.14:1Fail7.17:1AAArequired11.02:1AAA
Accent Foreground1.00:1Fail1.14:1Fail7.17:1AAA11.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.