I need to convert a long value of a color to the relative R G B values mathematically, since I don't know how, I leave it to this board's capible 'hands'.

Thank you,