TL
Tool Lab
💰Donate
💰Donate

HEX to RGBA

Convert HEX colors to RGBA with alpha transparency.

TransparentOpaque

About This Tool

The HEX to RGBA converter transforms hexadecimal color codes into RGBA format with optional opacity control. Web developers use this tool when adding transparency to colors in CSS, such as for overlays, shadows, and semi-transparent backgrounds.

Simply enter a hex color code (3, 6, or 8 characters) and the tool instantly outputs the equivalent rgba() value. You can also adjust the alpha (opacity) value from 0 to 1.

How to Use

  1. Enter a hex color code (e.g. #ff5733 or #f53).
  2. The RGBA output updates instantly.
  3. Adjust the alpha slider to set opacity (0 = transparent, 1 = opaque).
  4. Copy the rgba() value and paste it into your CSS.
  5. Use the 8-digit hex (#RRGGBBAA) for direct alpha encoding.

Use Cases

Useful for CSS overlays, box-shadow colors, semi-transparent UI elements, and any time you need to add opacity to a specific hex color.

FAQ

  • What is RGBA?RGBA is a CSS color format: Red, Green, Blue, and Alpha (opacity). The alpha channel ranges from 0 (fully transparent) to 1 (fully opaque).
  • Can I convert a 3-digit hex?Yes. #abc is automatically expanded to #aabbcc before conversion.
  • What does the 8-digit hex mean?An 8-digit hex like #FF5733AA includes an alpha channel in the last two digits, which also maps directly to RGBA.
  • Can I paste a CSS color name?No, only hex codes are supported. Use a color picker to first convert a named color to hex.