Skip to content

HEX to RGB Converter

Convert HEX colour codes to RGB and HSL, and back again.

RGB channels
Alpha
100%
Luminance
—
Best text
—

Quick Tool Overview

The HEX to RGB Converter turns a HEX colour code into RGB and HSL instantly, and converts back the other way. Three-digit shorthand is expanded automatically and eight-digit codes carrying an alpha channel are handled too.

What it does
Converts colours between HEX, RGB and HSL
You give it
A HEX code or a set of RGB values
You get back
Every other notation plus a large preview swatch
Best for
CSS work, brand guidelines and matching design specs
Color Tools Free, unlimited use No sign-up Runs in your browser

About the HEX to RGB Converter

Paste a HEX code and get RGB and HSL instantly, or work the other way and enter RGB values to get the HEX. Three-digit shorthand such as #f80 is expanded automatically, and eight-digit codes carrying an alpha channel are handled too.

A large preview swatch sits alongside the values, because a colour code alone tells you very little. The conversion is exact arithmetic, not an approximation, so values round-trip cleanly between formats.

Key features of the HEX to RGB Converter

Conversion in both directions

Go from HEX to RGB or from RGB back to HEX without switching tools.

Shorthand expanded automatically

Three-digit codes such as #f80 are read correctly rather than rejected.

Alpha channel support

Eight-digit HEX codes carrying transparency are parsed and converted along with the colour.

Large preview swatch

The colour is shown at a usable size next to the values, because a code on its own tells you very little.

Exact arithmetic

Conversions are computed, not approximated, so values round-trip cleanly between formats.

How to use the HEX to RGB Converter

  1. 1

    Enter a colour

    Type a HEX code, or fill in the red, green and blue fields.

  2. 2

    Read the conversions

    The other formats update immediately, with a preview swatch.

  3. 3

    Copy what you need

    Each output line has its own copy button.

Frequently asked questions

It is shorthand where each digit is doubled, so #f80 expands to #ff8800. It can only express colours where both digits of each channel match.

Reviews of the HEX to RGB Converter

What people who use the HEX to RGB Converter think of it. Reviews come from visitors and are posted as written.

No ratings yet

Yours would be the first.

  • 5 0 reviews rated 5 stars
  • 4 0 reviews rated 4 stars
  • 3 0 reviews rated 3 stars
  • 2 0 reviews rated 2 stars
  • 1 0 reviews rated 1 star

Write a review

Used this tool? Your rating helps the next person decide.

Your rating

Plain text only — links, email addresses and HTML are not accepted. Your name and review are shown publicly; nothing else is collected. See the privacy policy.

0 reviews

Newest first

No reviews yet

Be the first to rate the HEX to RGB Converter. It takes half a minute and no account.

Write the first review

More color tools