An input like '#AAAAAAAA' causes hex.Decode to panic. While this solution does not allow color codes with length 3, those return an error in hex.Decode either way.