I know this exercise says that hex and decimal color representations are equivalent but are there any pros and cons to each representation?

Question

I know this exercise says that hex and decimal color representations are equivalent but are there any pros and cons to each representation?

Answer

As hexadecimal values are converted to rgb values by the browser, this is mostly a matter of preference. However, one benefit of the decimal color representation is that we can use the alpha channel to control the opacity of a color. This is not permitted within the hex representation.