# \[IGN-1566\] Perspective - Color function not returning a usable value

**URL:** <https://forum.inductiveautomation.com/t/ign-1566-perspective-color-function-not-returning-a-usable-value/21001>\
**Category:** Ignition Early Access\
**Created:** [November 21, 2018, 7:28pm UTC](https://forum.inductiveautomation.com/t/ign-1566-perspective-color-function-not-returning-a-usable-value/21001 "2018-11-21T19:28:06Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [November 21, 2018, 10:02pm UTC](https://forum.inductiveautomation.com/t/ign-1566-perspective-color-function-not-returning-a-usable-value/21001/4 "2018-11-21T22:02:17Z")

</div>

As a workaround, you can add a transform if you need to use color():

```python
	colorIn = value
	hexVal = '#' + hex(colorIn.getRed()*65536 + colorIn.getGreen()*256 + colorIn.getBlue())[2:]
	return hexVal

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/ign-1566-perspective-color-function-not-returning-a-usable-value/21001)._
