Palette Library

Tropical Punch

A vibrant palette for food with a red primary and a green accent. Text reaches 15.52:1 in light mode and 16.87:1 in dark mode.

How to use it

Tropical Punch's roles on a real interface, with the ratios stored for this palette.

  • Light mode: page #fcfdff, cards #e7eef9, and text #1c232e at 15.52:1; buttons #e5383b with #000000 labels at 4.96:1; highlights #06d6a0 with #1c232e text at 8.37:1.
  • Dark mode: page #0b0f16, cards #191c22, and text #e9f1fd at 16.87:1; buttons #fe5250 with #0b0f16 labels at 5.97:1; highlights #06d6a0 with #0b0f16 text at 10.17:1.
  • Links: #e5383b reaches 4.15:1 on the light page, and #fe5250 reaches 5.97:1 on the dark page.
  • The accent as text: In light mode, keep #06d6a0 for fills and badges, not text: it reaches only 1.85: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
#fcfdff
#0b0f16
Surface
#e7eef9
#191c22
Text
#1c232e
#e9f1fd
Primary
#e5383b
#fe5250
Primary Foreground
#000000
#0b0f16
Accent
#06d6a0
#06d6a0
Accent Foreground
#1c232e
#0b0f16

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
Text15.52:1AAArequired13.53:1AAArequired3.73:1AA large8.37:1AAA
Primary4.15:1UIrequired3.62:1AA large1.00:1Fail2.24:1Fail
Accent1.85:1Fail1.61:1Fail2.24:1Fail1.00:1Fail
Primary Foreground20.63:1AAA17.99:1AAA4.96:1AArequired11.13:1AAA
Accent Foreground15.52:1AAA13.53:1AAA3.73:1AA large8.37:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text16.87:1AAArequired15.00:1AAArequired2.82:1Fail1.65:1Fail
Primary5.97:1AArequired5.31:1AA1.00:1Fail1.70:1Fail
Accent10.17:1AAA9.04:1AAA1.70:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.12:1Fail5.97:1AArequired10.17:1AAA
Accent Foreground1.00:1Fail1.12:1Fail5.97:1AA10.17: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: #fcfdff;
  --surface: #e7eef9;
  --text: #1c232e;
  --primary: #e5383b;
  --primary-foreground: #000000;
  --accent: #06d6a0;
  --accent-foreground: #1c232e;
}

.dark {
  --background: #0b0f16;
  --surface: #191c22;
  --text: #e9f1fd;
  --primary: #fe5250;
  --primary-foreground: #0b0f16;
  --accent: #06d6a0;
  --accent-foreground: #0b0f16;
}

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: #fcfdff;
  --surface: #e7eef9;
  --text: #1c232e;
  --primary: #e5383b;
  --primary-foreground: #000000;
  --accent: #06d6a0;
  --accent-foreground: #1c232e;
}

.dark {
  color-scheme: dark;
  --background: #0b0f16;
  --surface: #191c22;
  --text: #e9f1fd;
  --primary: #fe5250;
  --primary-foreground: #0b0f16;
  --accent: #06d6a0;
  --accent-foreground: #0b0f16;
}

@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 Food topic: text reaches 15.52:1 in light mode against 15.18:1, the primary is red where Orchard's is green, and the accent is green where Orchard's is red.
  • Compared with Coral Reef, which shares the vibrant style: text reaches 15.52:1 in light mode against 13.16:1, both use a red primary, and the accent is green where Coral Reef's is teal.