Anyone have the equation to convert a long value (0-16777215) to the ~ RGB values?

Thanks,