The Refract Journal

Articles on CSS, design and the web

Practical articles on CSS, interface design and image optimisation, written for people who build websites.

Articles, page 2

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

Put it into practice

All tools →