Skip to content

Instantly share code, notes, and snippets.

@MicahElliott
Last active November 26, 2019 00:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MicahElliott/1772237 to your computer and use it in GitHub Desktop.
Save MicahElliott/1772237 to your computer and use it in GitHub Desktop.
Generated User Names by Color

Generated User Names by Color

Good for: demo purposes or seeding a small group of assignable user names/avatars.

I came across a need for a set of neutral generated user names. Pulling them out of a gender-neutral name dictionary was pretty lame. I also wanted some form of distinguishable avatar. This led to looking at a list of web-friendly color names.

I removed the colors that were too similar or too close to white. Also removed were the duplicated color names like dark FOO and light BAR.

The colors could be displayed as boxes for the avatars. They match the names!

It turns out that color names and popular human names have a lot in common!

The list is a TDV (tab-delimited values) file. Use cut/awk to translate it into whatever HTML you desire.

Alice Blue F0F8FF
Aqua Marine 7FFFD4
Blanched Almond FFEBCD
Blue Violet 8A2BE2
Burly Wood DEB887
Cadet Blue 5F9EA0
Char Treuse 7FFF00
Choco Late D2691E
Cornflower Blue 6495ED
Crim Son DC143C
Cy An 00FFFF
Deep Pink FF1493
Dodger Blue 1E90FF
Fire Brick B22222
Forest Green 228B22
Gains Boro DCDCDC
Golden Rod DAA520
Green Yellow ADFF2F
Hot Pink FF69B4
Indian Red CD5C5C
Indi Go 4B0082
Kha Ki F0E68C
Lawn Green 7CFC00
Lemon Chiffon FFFACD
Lime Green 32CD32
Mag Enta FF00FF
Mar Oon 800000
Midnight Blue 191970
Misty Rose FFE4E1
Mocca Sin FFE4B5
Na Vy 000080
Olive Drab 6B8E23
Orange Red FF4500
Or Chid DA70D6
Papaya Whip FFEFD5
Peach Puff FFDAB9
Powder Blue B0E0E6
Rosy Brown BC8F8F
Royal Blue 4169E1
Saddle Brown 8B4513
Sal Mon FA8072
Sandy Brown F4A460
Sea Green 2E8B57
Si Enna A0522D
Sil Ver C0C0C0
Sky Blue 87CEEB
Slate Blue 6A5ACD
Spring Green 00FF7F
Steel Blue 4682B4
Te Al 008080
Tom Ato FF6347
Tur Quoise 40E0D0
Vi Olet EE82EE
Whe At F5DEB3
Yel Low FFFF00
Yellow Green 9ACD32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment