Exhibit 20 of 23

One colour, a whole palette

Pick a seed colour. The poster and its palette are repainted from it: surface, ink, tints, lines and the colour opposite, all worked out by CSS.

The exhibit

Seed colour
  • Seed
  • Surface
  • Ink
  • Soft
  • Line
  • Opposite

The Neon Void

Warm-up set

DJ Sloppy Droppy, then the acts. Humans, robots, animals, slop and aliens welcome.

Doors open

How it works

The seed is one custom property, set by whichever chip is picked. Everything else is a relative colour: oklch(from var(--seed) 0.97 0.02 h) reads “the seed’s hue, at lightness 0.97 and hardly any chroma”, which is a surface; 0.27 0.07 h is the ink. color-mix(in oklch, var(--seed) 30%, var(--surface)) makes the soft tint, and calc(h + 180) turns the hue to the opposite side of the wheel.

OKLCH’s lightness is close to how light a colour looks, so fixing it fixes the contrast: ink at 0.27 on a surface at 0.97 reads well whatever the hue. The site’s check measures the poster’s text against its background for every seed.

The key CSS

Cut from this exhibit’s stylesheet as it is served.

/* the seed: whichever chip is picked */
.x-palette .palette:has(#seed-moss:checked) .paint { --seed: oklch(0.7 0.14 145); }
.x-palette .palette:has(#seed-tide:checked) .paint { --seed: oklch(0.7 0.14 200); }
.x-palette .palette:has(#seed-dusk:checked) .paint { --seed: oklch(0.7 0.14 285); }
.x-palette .palette:has(#seed-berry:checked) .paint { --seed: oklch(0.7 0.14 350); }
.x-palette .palette:has(#seed-ember:checked) .paint { --seed: oklch(0.7 0.14 35); }
.x-palette .palette:has(#seed-brass:checked) .paint { --seed: oklch(0.7 0.14 85); }

/* everything else, worked out from the seed: same hue, fixed lightness, so the contrast holds for any hue */
@supports (color: oklch(from red l c h)) {
  .x-palette .paint {
    --surface: oklch(from var(--seed) 0.97 0.02 h);
    --ink: oklch(from var(--seed) 0.27 0.07 h);
    --soft: color-mix(in oklch, var(--seed) 30%, var(--surface));
    --line: color-mix(in oklch, var(--seed) 60%, var(--surface));
    --far: oklch(from var(--seed) l c calc(h + 180));   /* across the wheel */
  }
}
.x-palette .poster { background: var(--surface); color: var(--ink); border: 3px solid var(--line); box-shadow: 10px 10px 0 var(--soft); }
.x-palette .poster .tag { background: var(--seed); color: var(--ink); }
.x-palette .poster .kicker { color: var(--ink); border-bottom: 4px solid var(--far); display: inline-block; }

Accessibility

The seeds are radio buttons with their names, not just colours, so nobody has to tell the chips apart by hue. CSS can’t measure contrast as it paints; the fixed lightnesses are the guarantee, and the check is the proof. A script could also print each colour’s value; CSS can’t turn a colour into text.

Browser support

  • relative colours in oklch() Works in this browser.Not in this browser: The palette stays the moss one, written out in full, whatever you pick; only the seed swatch changes. Checked 2026-11-13: Chromium 140 yes, Firefox 141 yes.
  • color-mix() Works in this browser.Not in this browser: The tints are written out by hand instead of mixed. Checked 2026-11-13: Chromium 140 yes, Firefox 141 yes.
  • :has() Works in this browser.Not in this browser: Without :has() it can’t work; the page says so instead of half-working. Checked 2026-11-13: Chromium 140 yes, Firefox 141 yes.
Slop at the top