# How do I change Button background colour?

**URL:** <https://community.thunkable.com/t/how-do-i-change-button-background-colour/76053>\
**Category:** Questions about Thunkable X\
**Created:** [May 9, 2019, 11:01am UTC](https://community.thunkable.com/t/how-do-i-change-button-background-colour/76053 "2019-05-09T11:01:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![talkingtree](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@talkingtree](https://community.thunkable.com/u/talkingtree)\
**Post date:** [May 9, 2019, 11:01am UTC](https://community.thunkable.com/t/how-do-i-change-button-background-colour/76053/1 "2019-05-09T11:01:02Z")

</div>

Hi,

I’m trying to make a button “yes” or “no” for a timetable. So it displays as gray if “false” and displays as blue if “true”. However it is not changing colour once pressed even though the string is set to “#4A90E2” in the blocks. Am I adding the number Hex wrong?

Blocks  
 ![](https://i.imgur.com/bllZJmh.png)

Design  
 ![](https://i.imgur.com/SX8OaKp.png)

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [May 9, 2019, 12:18pm UTC](https://community.thunkable.com/t/how-do-i-change-button-background-colour/76053/3 "2019-05-09T12:18:07Z")

</div>

Hey Terry,

I don’t think you can pass hex like this to a color block.

You can use one of the built-in colors like this:

![00](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/a/fabf22bbdf02998d0fc6ebc87f11cbc72ea40cbe.png)

Or specify the RBG values like this.

![15](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/4/e45613aabd0ec9b9e16b58b23277fc7c64b407f9.png)

---

<div class="post-metadata">

**Author:** ![talkingtree](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@talkingtree](https://community.thunkable.com/u/talkingtree)\
**Post date:** [May 9, 2019, 12:24pm UTC](https://community.thunkable.com/t/how-do-i-change-button-background-colour/76053/4 "2019-05-09T12:24:39Z")

</div>

Ok great, got it setup like this

[![](https://i.imgur.com/a5AFZ2K.png) ](https://i.imgur.com/a5AFZ2K.png)

---

<div class="post-metadata">

**Author:** ![BlueWhaleYT](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bluewhaleyt/32/28437_2.png) [@BlueWhaleYT](https://community.thunkable.com/u/BlueWhaleYT)\
**Post date:** [May 11, 2019, 9:05am UTC](https://community.thunkable.com/t/how-do-i-change-button-background-colour/76053/5 "2019-05-11T09:05:02Z")

</div>

Why don’t you go to check “4a90e2” rgb color?

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:13pm UTC](https://community.thunkable.com/t/how-do-i-change-button-background-colour/76053/6 "2024-11-08T12:13:48Z")

</div>


