Generate color from string in Erlang