title: Microsoft avatar colors assignment
body: <p>How does Microsoft choose how to assign a color to a contact in a Microsoft application?</p>
  
  <p>I've googled and I can't find any direction.</p>
  
  <p>In Outlook or Android, when I add a new contact that doesn't have an image attached to its avatar, Microsoft automatically assigns a colored circle with the initials in it. I am building an application where this can be useful. </p>
  
  <p>How does Microsoft achieve this? I mean, what's the logic behind it? Is it a color assigned to each initial in the alphabet? I think not, since in my contacts Leo and Laura have different colors. Conversely, Laura and Rick have the same colors. </p>
  
  <p>Below is an image of some examples. Notice the inconsistency between colors across initials</p>
  
  <p><a href="https://i.stack.imgur.com/m7Ecr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m7Ecr.png" alt="enter image description here"></a></p>