# system.gui.chooseColor not returning Alpha value

**URL:** <https://forum.inductiveautomation.com/t/system-gui-choosecolor-not-returning-alpha-value/11299>\
**Category:** Ignition\
**Created:** [March 2, 2016, 12:52pm UTC](https://forum.inductiveautomation.com/t/system-gui-choosecolor-not-returning-alpha-value/11299 "2016-03-02T12:52:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [March 2, 2016, 12:52pm UTC](https://forum.inductiveautomation.com/t/system-gui-choosecolor-not-returning-alpha-value/11299/1 "2016-03-02T12:52:51Z")

</div>

Is there a way to make the system.gui.chooseColor function return the selected alpha value as well as the RGB values? It doesn’t matter what alpha or transparency is selected, it never gets returned.

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [March 2, 2016, 3:28pm UTC](https://forum.inductiveautomation.com/t/system-gui-choosecolor-not-returning-alpha-value/11299/2 "2016-03-02T15:28:12Z")

</div>

Sure it does.

`col = system.gui.chooseColor(event.source.parent.background)
print col.getAlpha()`

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [March 2, 2016, 4:05pm UTC](https://forum.inductiveautomation.com/t/system-gui-choosecolor-not-returning-alpha-value/11299/3 "2016-03-02T16:05:08Z")

</div>

Ahhhh, interesting. I was just looking at the object that it returned and the alpha wasn’t listed.

`java.awt.Color[r=255,g=0,b=204]
`

Now that makes more sense. Thanks!

---

<div class="post-metadata">

**Author:** ![albert.bartolome](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/albert.bartolome/32/17545_2.png) [@albert.bartolome](https://forum.inductiveautomation.com/u/albert.bartolome)\
**Post date:** [January 16, 2019, 2:10am UTC](https://forum.inductiveautomation.com/t/system-gui-choosecolor-not-returning-alpha-value/11299/4 "2019-01-16T02:10:44Z")

</div>

Hi, Is there a way we can get the Hexadecimal Value instead of the RGB values of the chosen color?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 16, 2019, 3:34pm UTC](https://forum.inductiveautomation.com/t/system-gui-choosecolor-not-returning-alpha-value/11299/5 "2019-01-16T15:34:30Z")

</div>

Not directly through the Java Color object, but you can use a function from [`TypeUtilities`](http://files.inductiveautomation.com/sdk/javadoc/ignition79/795/com/inductiveautomation/ignition/common/TypeUtilities.html#colorToHex-java.awt.Color-) that we use internally with a little extra effort:

```auto
from com.inductiveautomation.ignition.common import TypeUtilities
colorString = TypeUtilities.colorToHex(color)

```
