IT Market
Tools/Design/Colors/HEX to RGBA Converter with Alpha — Online
HEX → RGBA

Конвертер цветов из HEX в RGBA с прозрачностью

Tool guide

HEX to RGBA Converter with Alpha — Online

A scrim behind a modal, a translucent plate under text on a photo, a soft card shadow: each of these needs a color with a fourth number rather than a solid fill. Type the code into the HEX field, set a value in the transparency box between 0 and 1, press convert and take the result with the copy button. The string is assembled by the page itself, so your color code stays in the browser. See also: HEX turned into plain RGB channels, make sure semi-transparent text stays readable, choose a colour visually and grab the code.

How to use it

  1. Type a six-digit code into the HEX field; the form starts with the sample value #FF0000.
  2. Set opacity in the transparency box: 1 is fully solid, 0 is completely invisible.
  3. A modal backdrop usually sits near 0.5, while a soft shadow works around 0.15.
  4. Press convert and check the assembled string, for example rgba(255, 0, 0, 0.5).
  5. Copy the result and paste it into a background, border or box-shadow declaration.

FAQ

How is rgba alpha different from the opacity property?

Opacity fades the whole element, including its text, icons and border, while the alpha inside rgba affects only the property that carries the color. That is why a readable translucent plate is built with an rgba background: with opacity the letters would fade along with the panel.

What alpha should a modal backdrop use?

Something between 0.4 and 0.6 works in practice: the page below stays recognisable without competing for attention. Around 0.8 the layer reads as a solid fill, and below 0.3 the dialog stops feeling separate. Test on both a light and a dark page.

Can alpha be written as a percentage, such as 50%?

Modern browsers do accept rgba(0 0 0 / 50%), but the field here expects a fraction from 0 to 1. Divide by a hundred: 50% becomes 0.5 and 15% becomes 0.15. Use a dot for the decimal separator, since a comma separates arguments in CSS.

Does rgba work in HTML email and old Internet Explorer?

Browser support is universal, but mail clients vary: Outlook on the Word engine frequently drops translucent backgrounds. For newsletters declare a solid fallback color on the line before the rgba value so the layout never renders with no background at all.

Why does translucent white look grey over a dark photo?

The final pixel is a blend of your color with whatever sits underneath, weighted by alpha. Over a dark image, white at 0.3 inevitably reads as grey. If you need the pure tint, raise the alpha toward 1 or place a dedicated layer under the text.

Is the color code sent anywhere?

No. Both values stay in the open tab, since the page only splices the channels and the alpha into a string. That is convenient while a palette is still unannounced. On a phone, switch to the numeric keyboard so the decimal separator does not get autocorrected.

Examples

Dim layer behind a modal window
Before: HEX #000000, transparency 0.5
After: rgba(0, 0, 0, 0.5)
Soft shadow under a product card
Before: HEX #1A2B4C, transparency 0.15
After: rgba(26, 43, 76, 0.15) used inside box-shadow