Convert between hex and rgb(a)