# Using setButtonBG()

**URL:** <https://forum.inductiveautomation.com/t/using-setbuttonbg/41849>\
**Category:** Ignition\
**Created:** [December 29, 2020, 7:57pm UTC](https://forum.inductiveautomation.com/t/using-setbuttonbg/41849 "2020-12-29T19:57:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kwatkins](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@kwatkins](https://forum.inductiveautomation.com/u/kwatkins)\
**Post date:** [December 29, 2020, 7:57pm UTC](https://forum.inductiveautomation.com/t/using-setbuttonbg/41849/1 "2020-12-29T19:57:05Z")

</div>

Trying to use the setButtonBG() to change the background color on a button. Keep getting errors on the color. What format do you need in the () to set the color?
