About RGBA to HEX Converter
HEX, RGB, and HSL are three notations for the same sRGB colors. HEX writes the red, green, and blue channels as two hexadecimal digits each, RGB writes them as numbers from 0 to 255, and HSL describes hue in degrees with saturation and lightness in percent. This tool parses any of the three, including alpha, and prints all of them. HSL values are rounded to whole numbers, so converting back can differ by one step.
How to use RGBA to HEX Converter
- Fill in "Color".
- The result appears below and updates as you type.
- Copy the result with the copy button, or download it as a file where that is offered.
Questions about RGBA to HEX Converter
How do you convert HEX to RGB by hand?
Split the six digits into three pairs and convert each pair from base 16 to base 10. For #059669, the pair 05 is 5, 96 is 150, and 69 is 105, which gives rgb(5, 150, 105).
What do the last two digits of an 8-digit HEX color mean?
They are the alpha channel, from 00 (fully transparent) to FF (fully opaque). For example, 80 is 128 out of 255, or about 50 percent opacity. A 4-digit code is the shorthand form.
Runs in your browser. Page last updated .