Understanding CSS Colour modes by Killan Valkhof clearly explains the various colour notation methods used in hexadecimal, RGB and html keywords.  After explaining how these methods work and why, Killan goes on to explain changes in the notation methods which describe features like opacity since CSS 2 and 3 add these options to the mix. It’s an excellent article that does not get bogged down and worth reading to clarify some of these issues.