Dim $RGB[3] = [255, 0, 0]
$Web = _ColorConvertRGBtoWeb($RGB)
MsgBox(0, 'Hex', $Web)
Func _ColorConvertRGBtoWeb($avArray)
If UBound($avArray) <> 3 Or UBound($avArray, 0) <> 1 Then Return SetError(1, 10, 0)
for $i = 0 to 2
$avArray[$i] *= 255
Next
Return '0x' & Hex($avArray[0], 2) & Hex($avArray[1], 2) & Hex($avArray[2], 2)
EndFunc