If you have a hex file of colours e.g. 48% of instagram 2015 vancouver dominant colours, here’s how to use xxd to do it ("-r" to create the hex dump, -p to take the ascii values):

xxd -r -p ig-vancouver-2015-dominant-colours.txt ig-vancouver-2015-dominant-colours.try3.rgb