Added more flexible check for HEX color code. Also error is now less specific.