What is HEX colour?
HEX (hexadecimal) colour is a 6-character code representing red, green and blue values. Example: #FF5733 = Red 255, Green 87, Blue 51.
What is RGB colour?
RGB stands for Red, Green, Blue. Each channel ranges from 0–255. Example: rgb(255, 87, 51). RGB is an additive colour model used for screens.
What is HSL colour?
HSL stands for Hue, Saturation, Lightness. Hue is 0–360°, Saturation and Lightness are 0–100%. HSL is more intuitive for creating colour variations.
Which format should I use in CSS?
All three work in CSS. HEX is most common, RGB is useful when you need transparency (rgba), and HSL is excellent for creating colour themes and tints programmatically.