RGBA to HEX Converter

Enter RGBA values or an rgba() CSS string and get the HEX color code instantly with a live preview and one-click copy.

RGBA Input

Sets R, G, B channels

HEX Output

#FF5733 / A:1.00

Reverse: HEX to RGBA

Enter a 6-digit or 8-digit HEX code to extract R, G, B, and A values.

Copied!

Summary

Enter RGBA values or an rgba() CSS string and get the HEX color code instantly with a live preview and one-click copy.

How it works

  1. Each RGB channel (0-255) is converted to a two-digit hex pair. The alpha value (0.0-1.0) is multiplied by 255, rounded, and also converted to a hex pair. When alpha is 1 the output is #RRGGBB; otherwise it is #RRGGBBAA.

Use cases

Frequently Asked Questions

Related tools

Last updated: 2026-05-28 · Reviewed by Nham Vu