Lava palette maker

Pick one brand colour. Get five soft pastels that sit well beside it, checked for text contrast and ready to copy as CSS.

Your brand colour

Pick it or paste the hex code. The five pastels share its hue family, so they sit well next to it.

Mood

Every pastel is checked against near-black text (#111111). All five keep body text above the WCAG AA contrast of 4.5 to 1.

CSS variables

 

How the lava palette maker works

The maker works in OKLCH, a colour space where equal steps look equally different to the eye.1 It keeps your colour's hue family, lifts the lightness into pastel range and lowers the saturation. Then it spreads five shades around the hue.

Each pastel is checked against near-black text for the WCAG AA contrast ratio of 4.5 to 1.2 Colours that would fall outside what screens can show are pulled back until they fit.

Use the pastels for backgrounds, cards and gradients. Keep your brand colour for buttons and the one thing you want people to click.

Questions people ask

What is a lava palette?

A set of soft colours that blend into each other like a slow lava lamp. It works well for background gradients behind text.

Are the colours accessible?

Each pastel keeps near-black body text above the WCAG AA contrast ratio of 4.5 to 1. White text on these pastels won't pass.

How do I use the CSS?

Paste the variables into your stylesheet, then use them like var(--mist). The --lava variable is a ready-made background gradient.

Why does the maker use OKLCH?

In older colour models, two colours with the same lightness value can look very different. OKLCH keeps them looking even, so the five pastels feel like one set.

Sources

  1. Björn Ottosson, "A perceptual color space for image processing," 2020. bottosson.github.io
  2. "Contrast (Minimum)," Web Content Accessibility Guidelines 2.2, W3C. w3.org

Where to next

Colour psychology for brands

What colour does, and what it doesn't.

Read the article

UI sizing guide

Buttons, cards, corners, touch targets.

Read the guide

Website design

Fast sites for people and AI search.

See the service
Book a 20-minute call