LIVE TOOL
COLOR CODE CONVERTER
Convert between HEX, RGB, and HSL color codes instantly. Perfect for web development, design, and CSS styling.
Enter Color (HEX, RGB, or HSL)
Understanding Color Code Formats
There are three main formats for representing colors in web development:
- HEX (#RRGGBB): A hexadecimal representation using 6 characters. Most common in CSS and design tools.
- RGB (R, G, B): Specifies red, green, and blue values from 0-255. Native to digital screens.
- HSL (H, S%, L%): Hue (0-360°), Saturation (0-100%), Lightness (0-100%). Most intuitive for humans.
Supported Input Formats
- HEX: #FF5733, FF5733
- RGB: rgb(255, 87, 51), rgba(255, 87, 51, 1)
- HSL: hsl(11, 100%, 60%), hsla(11, 100%, 60%, 1)