HEX, RGB and HSL
A screen color is built from three channels — red, green and blue — each from 0 to 255. The same color can be written three common ways:
HEX writes each channel as two hexadecimal digits. RGB lists the same three numbers in decimal. HSL describes the color by hue (the angle on the color wheel, 0–360°), saturation (how vivid) and lightness (how bright) — often easier to tweak by eye.
Worked example
The blue #2563EB in each format:
Picking good colors
HSL makes palettes easy: keep the hue and vary lightness for tints and shades, or rotate the hue by 30–60° for harmonious neighbours and 180° for a complementary accent. When colors carry meaning (text on a background, buttons, status), check that there's enough contrast for readability — light text needs a dark enough background and vice versa. All three formats describe the exact same pixel, so use whichever your tool or stylesheet prefers.