client side random color generation for badges