# Cores personalizadas para o gerador de avatares de letras padrão

**URL:** <https://meta.discourse.org/t/custom-colors-for-default-letter-avatar-generator/111414>\
**Category:** Feature\
**Created:** [Março 12, 2019, 7:06pm UTC](https://meta.discourse.org/t/custom-colors-for-default-letter-avatar-generator/111414 "2019-03-12T19:06:24Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [Março 13, 2019, 4:28am UTC](https://meta.discourse.org/t/custom-colors-for-default-letter-avatar-generator/111414/3 "2019-03-13T04:28:46Z")

</div>

Working through this … our letter avatar service already allows for color to be specified:

![](https://global.discourse-cdn.com/meta/original/3X/f/5/f53f648aa77e539f5b792fb1ce001ad7c547475b.png)

`https://avatars.discourse.org/v3/letter/m/ff0000/64.png`

![](https://global.discourse-cdn.com/meta/original/3X/8/b/8b4d3fd8c7bce2b9972449bd7c4e1842a557b215.png)

`https://avatars.discourse.org/v3/letter/m/00ff00/64.png`

![](https://global.discourse-cdn.com/meta/original/3X/e/b/eb9c30e71f8f776914960b95f7314d7e88b9d8d3.png)

`https://avatars.discourse.org/v3/letter/m/0000ff/64.png`

I am warm to a site setting that lets you restrict this, seems like the simplest thing to do here vs defining custom color palettes.

`restrict_letter_avatar_colors` : `aa00aa,bbccdd,332244`

If set only pick letter avatars from the restricted list.

@maja can you add this to your list?

Clearly the default is just to work as we do today, but if people define colors in the settings then we would only use a subset.

---

_[View the full topic](https://meta.discourse.org/t/custom-colors-for-default-letter-avatar-generator/111414)._
