Convert Hex Color Code to rgba(Red, Green, Blue, Opacity) HTML/CSS format

color:hex_to_rgba(STRING $hex_color_code, FLOAT $opacity=1) : STRING

color:hex_to_rgba('#0b86eb')
#=> "rgba(11, 134, 235, 1)"

color:hex_to_rgba('000111', 0.5)
#=> "rgba(0, 1, 17, 0.5)"

Copyright ©2013-2022 SunSed®. All rights reserved.