HEX to RGB

Convert a hex color code into RGB, RGBA, and HSL values, with a live swatch so you can see the color. It supports 3, 6, and 8 digit hex, including alpha.

RGBrgb(59, 130, 246)
RGBArgba(59, 130, 246, 1)
HSLhsl(217, 91%, 60%)

About HEX to RGB

Hex codes are the color format you see most often in CSS and design tools, written as a hash followed by six digits. RGB describes the same color as red, green, and blue values from 0 to 255, which some tools and languages prefer.

This converter reads your hex code and shows the matching RGB, RGBA, and HSL values at once, along with a swatch so you can confirm the color at a glance.

How to Use

  1. Type or paste a hex color code, or pick one with the color picker.
  2. Read the RGB, RGBA, and HSL values below.
  3. Copy the format you need with one click.
  4. Use the RGB to HEX tool to convert the other way.

Frequently Asked Questions

Does it support shorthand and alpha hex?

Yes. It accepts 3 digit shorthand like #39f, standard 6 digit hex, and 8 digit hex that includes an alpha channel.

What is the difference between RGB and RGBA?

RGB has red, green, and blue channels. RGBA adds an alpha channel for transparency, where 1 is fully opaque and 0 is fully transparent.

Is the tool private?

Yes. The conversion happens in your browser and nothing is uploaded.

About Matt George

I'm Matt George, a software engineer in the startup space. I run my own shop building software for early-stage founders, and I love making free tools and experiences that people actually use. Enjoy using HEX to RGB!

More Free Tools