Color Models Explained
- HEX (#RRGGBB): Hexadecimal representation of Red, Green, and Blue intensity from 00 to FF (0 to 255). Used ubiquitously in HTML and CSS styling.
- RGB (Red, Green, Blue): Additive color model where colors are created by combining primary light channels (0–255). Standard for digital displays.
- HSL (Hue, Saturation, Lightness): Cylindrical-coordinate representation that aligns closer to human perception of color, making shading and saturation adjustments intuitive.
Quick Color Conversion Tips
To convert from HEX to RGB, split the 6-character hex code into three 2-digit pairs and convert each hexadecimal value (00–FF) to base 10 (0–255). For example, #1976D2 converts to Red = 19 (25), Green = 76 (118), and Blue = D2 (210).