This is a HEX to RGBA converter. Paste a HEX code and get rgb() / rgba() with alpha as 0–1, 0–255 or a percent. #FF573380 is rgba(255, 87, 51, 0.5).
Examples — click a swatch
Click a value to copy it
Convert several colors at once. One per line, or commas such as #3B82F6, #FF573380. Fill example loads three rows and the table below.
This is a HEX to RGBA converter: it turns a design HEX into CSS rgb() and rgba(). It accepts 3-digit #F53, 6-digit #FF5733 and 8-digit #FF573380. #FF573380 is rgba(255, 87, 51, 0.5). HEX to RGB nearby has no alpha; HSL and contrast stay on Color Converter.
8-digit HEX stores alpha in the last two digits: 80 hex is 128, 128/255 ≈ 0.502, not a clean 0.5. When alpha is 1, the CSS variable uses 6-digit HEX; otherwise HEX8. Modern CSS rgba(255 87 51 / 50%) is accepted. Chinese fullwidth commas such as 255,87,51 are accepted. Invalid HEX shows an error instead of crashing. Related: HEX to RGB, opacity overlay, Color Converter.
Yes. Each digit is doubled: #F53 becomes #FF5533, then rgb(255, 85, 51).
0x80 is 128. 128 ÷ 255 ≈ 0.502. Switch alpha to 0–255 or % if you think in bytes or percents.
No. Color HEX is three or four channels. Arbitrary integers stay on HEX to decimal.