24 bit hex to rbg converted in c