Demonstrating RGB, HEX, and HSL Color Functions
RGB stands for Red, Green, Blue. Each value ranges from 0 to 255.
Syntax: rgb(52, 152, 219)
This produces a blue color by mixing 52 Red, 152 Green, and 219 Blue values.
HEX uses a # followed by 6 hexadecimal digits (00-FF) for Red, Green, Blue.
Syntax: #e74c3c
This produces a red color: e7=Red, 4c=Green, 3c=Blue in hex notation.
HSL stands for Hue, Saturation, Lightness. Hue is 0-360°, others are percentages.
Syntax: hsl(145, 63%, 49%)
Hue 145° = Green, 63% saturated, 49% lightness.