fast&private
All tools

Convert HEX Color to RGBA

Convert 8-digit hex color codes (RRGGBBAA) to RGBA with alpha channel.

Your data is never sent to any server.

The hex to RGBA converter extracts the four color channels from an 8-digit hex code: red, green, blue and alpha. The result appears both as an rgba() function ready for CSS and with each channel broken down for easy reading or editing.

What it’s for

  • Reading transparency from a design hex: when you receive an #RRGGBBAA code from Figma, Sketch or another tool, this converter translates it into the rgba() you need for your code.
  • Debugging styles: quickly check what alpha value a color copied from a stylesheet has.
  • Going from hex to CSS: get the rgba() with the alpha already in 0–1 format, without calculating anything by hand.
  • Converting between formats: use the variant toggle above to switch to RGBA → Hex for the reverse operation.

How to use HEX to RGBA

  1. 1

    Type the 8-digit hex code

    Enter or paste the 8-character hex code (RRGGBBAA) in the input field. Only valid hex characters (0–9, A–F) are accepted; the field converts to uppercase automatically.

  2. 2

    Wait for 8 characters

    The 0/8 counter shows how many characters you have entered. The result appears as soon as the code reaches exactly 8 characters.

  3. 3

    Read the RGBA values

    The result shows the R, G, B channels (0–255) and the alpha as a 0–1 value, plus the full rgba() function ready to copy.

  4. 4

    Copy the result

    Press "Copy" to send the rgba() value to your clipboard.

Frequently asked questions

What is an 8-digit hex?

It is an extension of the 6-digit hex that adds a transparency channel. The first six characters are the color (RR, GG, BB) and the last two are the opacity (AA), where 00 is fully transparent and FF is fully opaque.

Why does the alpha channel appear as a number between 0 and 1?

CSS and most design tools express opacity in the rgba() function as a decimal between 0 and 1. This tool converts the two hex alpha digits to that range by dividing by 255.

What is the difference between

Some programs such as Android and certain hex editors use the AARRGGBB format (alpha first). This converter uses the CSS standard, where alpha comes last (RRGGBBAA).

Do all browsers support 8-digit hex?

Yes. The 8-digit hex is supported in all modern browsers. If you need compatibility with IE11 or older versions, use the rgba() function this tool generates.

Is my data sent to any server?

No. The conversion happens entirely in your browser. Nothing you type leaves your device.