Web & UX · · 1 min read

HEX vs RGB vs HSL: Which Color Format to Use

Same color, three ways to write it. And one of them makes building palettes much easier.

HEX: #E4572E. The web standard. Compact and easy to copy, but hard to adjust by eye. What does changing "57" to "67" actually do?

RGB: how much red, green and blue light (0–255 each). Clear for screens, still not intuitive for design decisions.

HSL: Hue, Saturation, Lightness.

  • Hue: where it sits on the color wheel (0–360°)
  • Saturation: how vivid it is
  • Lightness: how light or dark it is

That's why HSL is great for palettes: keep the hue, change lightness, and you get a matching set of tints and shades in seconds. Want a hover state? Drop the lightness a few points. Done.

Most design tools and CSS support all three, so switch freely.

Web DesignCSSColor Theory
Discuss on LinkedIn