Conversion of Byte data or Array to Hex

I am working on a image processing problem, wherein to identify specific color (hex) of the pixel, i am getting the color information in the form of a byte array, as the image is stored as byte data.

I need some quick mechanism to convert this byte array to a single resultant hex value, which can be used as the color attribute of that pixel.

What i have currently have is a array [134, 76, 32] coming in a variable named pix_color.

And I what to convert this to something like  #808000.

Please help.