only use alpha value from hex if format is rgba
Merge pull request #1773 from julesjanssen/1.8/develop

Only use alpha value from hex if format is rgba