# Hex Color code generator

**URL:** https://forum.adalo.com/t/hex-color-code-generator/27090
**Category:** External Collections, Custom Actions & Collections
**Created:** [May 11, 2022, 5:05pm UTC](https://forum.adalo.com/t/hex-color-code-generator/27090 "2022-05-11T17:05:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![pauladams](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/pauladams/32/5449_2.png) [@pauladams](https://forum.adalo.com/u/pauladams)
#### Post date: [May 11, 2022, 5:05pm UTC](https://forum.adalo.com/t/hex-color-code-generator/27090/1 "2022-05-11T17:05:28Z")

</div>

Hey fam,

How do i make the colour of a rectangle change based on the username/email of a user. I want to have a different colors for different users.

I know I can input color dynamically to the colour component, But am wondering where to get the hex code from?

Or is it possible to generate color from a rand function in adalo? if yes, how do I do so?

---

<div class="post-metadata">

### Author: ![Santiago](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/santiago/32/24169_2.png) [@Santiago](https://forum.adalo.com/u/Santiago)
#### Post date: [May 11, 2022, 5:35pm UTC](https://forum.adalo.com/t/hex-color-code-generator/27090/2 "2022-05-11T17:35:33Z")

</div>

Hi … in this web u can see the patterns

> **[Colormind - the AI powered color palette generator](http://colormind.io/)**
>
> Generate color combinations in one click. Colormind creates cohesive color schemes using a deep neural net.

> **[Trending Color Palettes - Coolors](https://coolors.co/palettes/trending)**
>
> Get inspired by thousands of beautiful color schemes and make something cool!

You can make a collection of colors with relationships to users, in the collection of colors an image (color photo) and a text where the color code is… you tell the user: select the color you want, update the current one there user in my color: and the color code is stored there… then in a rectangle you can put user\>mycolor

---

<div class="post-metadata">

### Author: ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)
#### Post date: [May 11, 2022, 11:15pm UTC](https://forum.adalo.com/t/hex-color-code-generator/27090/3 "2022-05-11T23:15:11Z")

</div>

Hi Paul,

Addition to Santiago’s great reply!

I found a free API that you can get a random hex colour code!

Made a video : [Random Color.mp4 - Google Drive](https://drive.google.com/file/d/1T3hpE2mpUqPXS501B_yZYop1CXptCL2a/view?usp=sharing)

API : [https://x-colors.herokuapp.com/](https://x-colors.herokuapp.com/)

Thank you

---

<div class="post-metadata">

### Author: ![pauladams](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/pauladams/32/5449_2.png) [@pauladams](https://forum.adalo.com/u/pauladams)
#### Post date: [May 12, 2022, 7:13am UTC](https://forum.adalo.com/t/hex-color-code-generator/27090/4 "2022-05-12T07:13:03Z")

</div>

Thank you Santiago

---

<div class="post-metadata">

### Author: ![pauladams](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/pauladams/32/5449_2.png) [@pauladams](https://forum.adalo.com/u/pauladams)
#### Post date: [May 12, 2022, 7:13am UTC](https://forum.adalo.com/t/hex-color-code-generator/27090/5 "2022-05-12T07:13:32Z")

</div>

Thank you Dilon, you just gave me the perfect solution. Thanks again
