Hex to RGBA Converter
Enter your color into the Hex Color field and pick an alpha percentage, and the Hex to RGBA Converter breaks it into red, green, blue, and transparency values. Click Convert and the result appears in RGBA Output, formatted as rgba(...). If you're documenting file permissions or embedded register values in octal, the binary to octal converter converts a binary string in seconds.
How the Hex to RGBA Converter Works
This hex to rgba converter splits your hex color into its red, green, and blue channels, converts each channel from hexadecimal to its 0–255 decimal value, and combines them with the alpha percentage you selected to build a standard rgba(r, g, b, a) string — the exact syntax CSS, Sass, and most design tools expect for a translucent color.
Supported Hex Color Formats
- 6-digit hex — the standard form, e.g.
#FF6600. - 3-digit shorthand hex — e.g.
#F60, which the converter expands to#FF6600before converting (each digit is duplicated, matching how browsers interpret 3-digit hex in CSS).
Enter the color with or without the leading # — either way, the tool reads it as a standard hex color code.
Choosing the Alpha (Opacity) Percentage
Rather than typing a raw decimal alpha value, this converter uses a simple Alpha % dropdown with five common transparency levels: 100% (fully opaque, alpha 1), 75%, 50% (half transparent, alpha 0.5), 25%, and 0% (fully transparent, alpha 0). Pick the percentage that matches the transparency you need and the RGBA Output updates immediately — the result is a percentage divided by 100, so 50% becomes an alpha of 0.5 in the final rgba() string.

Worked Example: Converting a Hex Color to RGBA
Converting #FF6600 (a solid orange) at 50% opacity:
- Split into channels:
FF(red),66(green),00(blue). - Convert each hex pair to decimal:
FF= 255,66= 102,00= 0. - Apply the chosen alpha: 50% → an alpha value of 0.5.
- Result:
rgba(255, 102, 0, 0.5)
The math behind each color channel is the same conversion this site's Hex to RGB Converter performs — Hex to RGBA simply adds the alpha/transparency channel on top of that same red-green-blue breakdown.
Manual Hex-to-Decimal Channel Conversion
If you want to work out a channel by hand, each hex pair is two base-16 digits, so its decimal value is:
$$\text{Channel} = (d_1 \times 16^1) + (d_0 \times 16^0)$$
For 66: \(6 \times 16 + 6 \times 1 = 96 + 6 = 102\), matching the green channel above.
Why Convert Hex to RGBA Instead of Just Using Hex?
- Transparency control: standard 6-digit hex colors have no opacity channel —
rgba()is the format most CSS properties (backgrounds, borders, box-shadows, overlays) actually accept when you need a color to be partially see-through. - Overlays and scrims: a translucent dark
rgba(0, 0, 0, 0.5)over an image, or a subtle tint on a hover state, is much easier to express in rgba than by picking a new solid hex color for every opacity level. - Design-to-code handoff: designers frequently specify a base color plus an opacity percentage — this converter turns that pair directly into the CSS your stylesheet needs.
- Everything runs locally: the conversion happens entirely in your browser — the hex color you enter is never sent to a server.
Frequently Asked Questions
Does this tool accept 8-digit hex colors with an alpha channel already baked in (like #FF660080)?
No — this converter's hex input accepts standard 3-digit or 6-digit hex colors only. Alpha/transparency is set separately using the Alpha % dropdown rather than being read from extra hex digits. For debugging permission masks or hardware register values, the hex bitwise calculator computes AND, OR, and XOR results directly from hex input. Run the base36 to hex converter to verify a Base36-encoded value matches the hex number it was generated from.
What alpha values can I choose?
The dropdown offers 100%, 75%, 50%, 25%, and 0% opacity, covering the transparency levels most commonly needed for overlays, hover states, and translucent backgrounds.
What's the difference between RGB and RGBA?
RGB describes a color with just red, green, and blue channels and no transparency. RGBA adds a fourth "alpha" channel from 0 (fully transparent) to 1 (fully opaque), which is what lets a color show whatever is behind it.
Does this tool send my data anywhere?
No. The conversion runs entirely in your browser using client-side JavaScript. Nothing you type is uploaded or stored.