Hex RGB and HSL Explained: One Color, Three Codes
Every color your screen shows is three numbers wearing different outfits. You'll find hex RGB and HSL explained in plenty of textbooks, but the working version is short: hex and rgb() are the same three bytes written in different bases, while HSL rearranges them into hue, saturation, and lightness so a human can reason about them. This guide converts one blue, #3D5BFF, through every format a color picker outputs, explains when each code earns its place in a stylesheet, and lists the copying mistakes that quietly corrupt rendered colors.