# Set Color Programmatically?

**URL:** https://forum.adalo.com/t/set-color-programmatically/39328
**Category:** Design
**Created:** [May 29, 2023, 3:25pm UTC](https://forum.adalo.com/t/set-color-programmatically/39328 "2023-05-29T15:25:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![raldred](https://avatars.discourse-cdn.com/v4/letter/r/e79b87/32.png) [@raldred](https://forum.adalo.com/u/raldred)
#### Post date: [May 29, 2023, 3:25pm UTC](https://forum.adalo.com/t/set-color-programmatically/39328/1 "2023-05-29T15:25:54Z")

</div>

Is there a way to set an object’s color programmatically (such as based on a HEX color in the database)?

---

<div class="post-metadata">

### Author: ![ishantanusrivastava](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ishantanusrivastava/32/34947_2.png) [@ishantanusrivastava](https://forum.adalo.com/u/ishantanusrivastava)
#### Post date: [May 29, 2023, 6:14pm UTC](https://forum.adalo.com/t/set-color-programmatically/39328/2 "2023-05-29T18:14:08Z")

</div>

Hi,

Yes you can and for that you have to install magic rectangle component from marketplace.
