Choosing the Right Colour Format for CSS
HEX is the most compact and widely used. RGB is useful when you need to control opacity with rgba(). HSL is best for programmatic colour manipulation — adjusting lightness or saturation while keeping the hue constant.