Free Developer Tool

HEX to RGB Converter

Convert HEX color codes into RGB and HSL formats for seamless CSS and design integration.

HEX to RGB Converter

Type a HEX colour code with or without the # symbol, or use the colour picker.

Enter a HEX colour to see all converted values.

Get Results in Seconds

1

Enter your HEX colour code

Type with or without the # — both work. Supports 3-character shorthand (#fff) and full 6-character (#ffffff) codes.

2

Conversion happens instantly

As soon as you type a valid HEX code, the RGB and HSL values appear automatically.

3

Copy the values you need

Hit the copy button next to RGB or HSL to grab the value in the exact format your project needs.

4

Use the colour preview

The preview swatch shows you exactly what the colour looks like — so you can confirm before copying.

Common Questions

Why convert HEX to RGB?

Some design tools (like Figma, Photoshop, and Canva) use RGB values instead of HEX. Also, if you need colour with transparency in CSS, you need RGB — HEX doesn't natively support alpha without the 8-digit format.

What is the HEX colour format?

HEX is a base-16 representation of RGB values. #RRGGBB where each pair goes from 00 (0) to FF (255). So #FF0000 is pure red, #00FF00 is pure green, and #0000FF is pure blue.

Can I convert RGBA to HEX?

Standard HEX doesn't include alpha. You can use 8-digit HEX (#RRGGBBAA) which is supported in modern browsers, but not universally. For transparency, RGBA is generally more compatible.

Related Tools

More Design & Utility Tools

View all tools
Chat with us on WhatsApp