Ir para o conteúdo principal

Hex to RGBA

Convert hex colors (with alpha) to rgba() values.

What does this tool do?

Direct answerHex to RGBA decodes RGB channels plus an optional 8th-digit alpha channel.
Key fact8-digit hex #rrggbbaa encodes alpha as 0-255; 0x80 ≈ 0.5 opacity.
ProcessingRuns locally in your browser; no data is sent to a server.

How to use

  1. Type a hex color like #ff6347 or #ff634780.
  2. Click Convert.
  3. See the rgba() value.

Example

Input

#ff6347

Output

rgba(255, 99, 71, 1)

Who is this for?

This tool was built for people who need a fast answer in the browser — no install, no account, no data leaving the device.

Programmers working with low-level data, computer science students, and electronics hobbyists reading registers — anyone tired of converting number bases by hand.

Frequently asked questions

What is the default alpha?

6-digit hex means fully opaque: alpha 1.

What does 80 mean in #ff634780?

0x80 = 128/255 ≈ 0.5 opacity.

4-digit shorthand?

Yes — #f637 expands to #ff663377.

More tools in this category