Convert between HEX, RGB, HSL, CMYK, and OKLCH with instant bidirectional conversion.
Color codes come in many formats: HEX, RGB, HSL, CMYK, and more. Our converter instantly translates between all major color formats, helping you work across different design tools and platforms.
Enter a HEX color code in the input field. The converter automatically displays the RGB, HSL, and CMYK equivalents. Use the preview box to see the color.
What is the difference between HEX and RGB? HEX is a 6-digit hexadecimal representation, while RGB uses decimal values 0-255 for each channel.
Why convert between color formats? Different tools use different formats. CSS accepts HEX, HSL, and RGB. Photoshop uses RGB or CMYK.