Top posts

Every blog post that took off on Hacker News, ranked by the votes of its best submission. 6,153 posts.

Any topic
2022
2807

Color Formats in CSS

CSS gives us so many options when it comes to expressing color—we can use hex codes, rgb, hsl, and more. Which option should we choose? This turns out to be a surprisingly important decision! In this article, we'll take a tour of color formats in CSS, and see which option will serve us best.