# Perspective design background color numeric

**URL:** <https://forum.inductiveautomation.com/t/perspective-design-background-color-numeric/36336>\
**Category:** Ignition\
**Created:** [July 3, 2020, 9:23am UTC](https://forum.inductiveautomation.com/t/perspective-design-background-color-numeric/36336 "2020-07-03T09:23:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![soontosr](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@soontosr](https://forum.inductiveautomation.com/u/soontosr)\
**Post date:** [July 3, 2020, 9:23am UTC](https://forum.inductiveautomation.com/t/perspective-design-background-color-numeric/36336/1 "2020-07-03T09:23:02Z")

</div>

Hello,  
Pls help Me.

```
  i use expression change background color for numeric label.

```

but the color not change by condition .  
how can solve the problem?

thank you

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/3/f39a0e15df9d1637153e1480581f498ed6ca84b5.png)

---

<div class="post-metadata">

**Author:** ![Toobor](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@Toobor](https://forum.inductiveautomation.com/u/Toobor)\
**Post date:** [July 3, 2020, 11:21am UTC](https://forum.inductiveautomation.com/t/perspective-design-background-color-numeric/36336/2 "2020-07-03T11:21:49Z")

</div>

I would use “Property binding” or “Tag Binding” instead and add a Map transform with “Color” as Output Type

---

<div class="post-metadata">

**Author:** ![soontosr](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@soontosr](https://forum.inductiveautomation.com/u/soontosr)\
**Post date:** [July 3, 2020, 1:51pm UTC](https://forum.inductiveautomation.com/t/perspective-design-background-color-numeric/36336/3 "2020-07-03T13:51:58Z")

</div>

i will try  
thank you

---

<div class="post-metadata">

**Author:** ![soontosr](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@soontosr](https://forum.inductiveautomation.com/u/soontosr)\
**Post date:** [July 3, 2020, 2:26pm UTC](https://forum.inductiveautomation.com/t/perspective-design-background-color-numeric/36336/4 "2020-07-03T14:26:22Z")

</div>

can not show background color also.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [July 3, 2020, 3:36pm UTC](https://forum.inductiveautomation.com/t/perspective-design-background-color-numeric/36336/5 "2020-07-03T15:36:46Z")

</div>

Can you confirm what version you’re using? I believe I’ve verified when this might have been introduced as part of 8.0.15, but if you’re using a version before that we might need to investigate something else.

---

<div class="post-metadata">

**Author:** ![soontosr](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@soontosr](https://forum.inductiveautomation.com/u/soontosr)\
**Post date:** [July 4, 2020, 5:25am UTC](https://forum.inductiveautomation.com/t/perspective-design-background-color-numeric/36336/6 "2020-07-04T05:25:00Z")

</div>

We use version 8.0.13.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [July 5, 2020, 12:36am UTC](https://forum.inductiveautomation.com/t/perspective-design-background-color-numeric/36336/7 "2020-07-05T00:36:39Z")

</div>

Well that was embarrassing… My binding was actually faulted because I hadn’t pressed Enter to complete the values for my Map transform. The Numeric Entry Field is actually working correctly.

Your specific issue is that you’re trying to supply Java colors for Perspective properties, which require RGB or Hex values. Your binding is evaluating correctly, but the component doesn’t know how to interpret the value you’re supplying. Switch to the Map transform I recommended and your problem will go away. Or you can supply the color values in a different manner. The “Colors” expressions should only be used in Vision. I’ll see if we can remove them while in the Perspective context.

This should work:

```auto
if({[KCC_Tag]KWH/KCC1/D05ABW01}>5, 'rgb(0,255,0)', 'rgb(223,222,222)')

```

---

<div class="post-metadata">

**Author:** ![soontosr](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@soontosr](https://forum.inductiveautomation.com/u/soontosr)\
**Post date:** [July 5, 2020, 1:35am UTC](https://forum.inductiveautomation.com/t/perspective-design-background-color-numeric/36336/8 "2020-07-05T01:35:01Z")

</div>

> [@cmallonee](#):
>
> if({[KCC\_Tag]KWH/KCC1/D05ABW01}\>5, 'rgb(0,255,0)', 'rgb(223,222,222)')

It OK!  
thank very much.
