calculate hostname color once