ARGB hex to A, R, G and B values function

cm() functions allow us to convert R, G and B values to an ARGB hex colour.

it would be nice if there was a way to do the opposite, convert ARGB or RGB hex to it's A, R, G and B values.