Skip to content

How cohesion works

Randomly sampled hex codes clash because nothing ties them together. A cohesive palette starts the same way, then puts every swatch under one shared light source, and repairs the contrast that the overlay costs.

1 · Base generation

A harmony is picked, analogous, complementary, split-complementary, triadic, tetradic or a free random set, and swatches are laid out along an eased lightness ramp with a chroma arc that peaks in the middle.

2 · Cohesion layer

One key colour is composited over every swatch in linear sRGB, exactly the way an image editor blends an overlay layer, at 10, 35% strength. Each swatch is then pulled back toward its original OKLab lightness, and its hue is nudged toward the key hue in OKLCH. Channel blends cannot move a clipped primary, so that hue pull is what guarantees a shared axis.

3 · Contrast & vibrancy guards

A heavy overlay drains both separation and chroma. The contrast guard sorts by lightness and pushes neighbours apart until every pair clears a minimum gap; the vibrancy guard scales mean chroma back up toward a target, clamped to what sRGB can actually display at that lightness.

Before and after

The same three palettes, raw on top and cohered underneath. Same swatch count, same lightness ladder, one shared atmosphere.

Fern Drift

key #f39c12 · 22% · overlay

Marmalade & Faded

key #f39c12 · 22% · overlay

Whispers of Saffron

key #f39c12 · 22% · overlay

Contrast checking

Open any palette and the editor shows a full WCAG 2.1 matrix: every swatch against every other, plus black-and-white text safety per swatch. 4.5:1 passes AA for body text, 3:1 for large text, 7:1 for AAA.

Export formats

  • CSS variables
  • Tailwind v4
  • SCSS
  • JSON
  • Swift
  • Android XML
  • SVG
  • PNG card

Swatches are named by hue family, so the CSS and Tailwind exports come out readable (--color-teal-1) rather than numbered only.

Keyboard

Space
Regenerate every unpinned swatch in the generator
Esc
Close the editor or the cohesion panel
Tab
Move between swatches, every stripe is a real button, Enter copies it