HomeColor ToolsHEX to RGB Converter

HEX to RGB Converter

Convert color formats between HEX, RGB, and HSL instantly.

Type in any field to convert between formats

How to use

  • • Enter a HEX color (e.g., #4f46e5 or #fff) to see its RGB and HSL equivalents.
  • • Enter an RGB color (e.g., rgb(79, 70, 229)) to convert to HEX and HSL.
  • • Enter an HSL color (e.g., hsl(243, 75%, 59%)) to convert to HEX and RGB.
  • • Click the copy icon next to any field to copy the value.

About this tool

The HEX/RGB/HSL Converter lets you enter a color in any of the three major web color formats and instantly see its equivalent in the other two. Live conversion means all three fields update simultaneously as you type, with a color swatch that gives you immediate visual feedback.

Web colors are represented in multiple formats across different tools and contexts. Design applications often work in HSL because it maps to human intuition about hue, saturation, and lightness. CSS developers frequently use HEX codes from design specs. RGB is common in programmatic color manipulation and image processing. This tool bridges all three.

Understanding color format conversion is foundational knowledge for anyone doing web design or front-end development. This converter makes the math transparent — you can see exactly how the same color looks expressed in each format, building intuition for what the numbers mean.