TLDR Web Dev · MISCELLANEOUS

COLOR FORMATS IN CSS

joshwcomeau.com8 min read

Summary from the TLDR Web Dev newsletter

CSS has a whole slew of different color formats: hex codes, rgb(), hsl(), and lch()... the list goes on! It can be hard to figure out which one to use. This tutorial will take you on a tour of the different options and show you how they work, how to decipher them, and how to use them to your advantage.