CSS Color Code Formats
Web developers and designers use various color formats to style elements. This tool helps you seamlessly convert between the three most popular formats.
HEX (Hexadecimal)
A 6-digit code representing Red, Green, and Blue values. It is the most common format used in HTML and CSS (e.g., #FFFFFF for white).
RGB (Red, Green, Blue)
Defines the intensity of red, green, and blue on a scale from 0 to 255. Example: rgb(255, 0, 0) is pure red.
HSL (Hue, Saturation, Lightness)
More intuitive for designers. Hue is a degree on the color wheel (0-360), Saturation is a percentage, and Lightness is a percentage.