Tag

Colour

6 articles

UI design

How to get a colour palette from an image

How palette extractors pick colours from a photo with k-means clustering, why they miss small accent colours, and how to turn the result into an accessible web palette.

4 min read
CSS techniques

CSS mesh gradients without images

CSS has no mesh gradient function, but layered radial gradients get you the same soft, flowing look in a few hundred bytes. Here is how they work, how to pick colours, and how to animate them.

4 min read
UI design

Building a colour palette with OKLCH in CSS

OKLCH lets you build colour palettes with evenly spaced shades and predictable contrast. Here is the syntax, an 11-step scale with real contrast results, and how to use it safely.

4 min read

Put it into practice

All tools →