# Report Keychain Expression for Text Color

**URL:** <https://forum.inductiveautomation.com/t/report-keychain-expression-for-text-color/89965>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [May 6, 2024, 2:15pm UTC](https://forum.inductiveautomation.com/t/report-keychain-expression-for-text-color/89965 "2024-05-06T14:15:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![james4](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james4/32/49597_2.png) [@james4](https://forum.inductiveautomation.com/u/james4)\
**Post date:** [May 6, 2024, 2:15pm UTC](https://forum.inductiveautomation.com/t/report-keychain-expression-for-text-color/89965/1 "2024-05-06T14:15:03Z")

</div>

Good day,

I am new with the reporting module so I have been looking at the forums for a simple solution for changing the text base color on my report data.

I read the post regarding putting a script on the data source to create a color legend but I am not very SQL savy so I tried the following on my keychain expression for text color but doesn't work:

```python
TS_RECT_RECIPE=="0:00:00"?"brighter(light gray)":"black"

```

This works with the fill color binding:

```python
LOG_NDX!=0?"brighter(light gray)":"white"

```

Light Gray is a little too dark for me but the color generated with the brighter function is what I would like to end up with. Is there an easy solution or am I going to be learning more about scripting my data source?

If I had the option to chose an RGB right out of the gate I would be looking for "213,213,213"

Thanks!

---

<div class="post-metadata">

**Author:** ![Amanda\_Marti](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@Amanda\_Marti](https://forum.inductiveautomation.com/u/Amanda_Marti)\
**Post date:** [July 17, 2024, 3:13pm UTC](https://forum.inductiveautomation.com/t/report-keychain-expression-for-text-color/89965/2 "2024-07-17T15:13:21Z")

</div>

Hello, I will give you my solution just in case. I defined a parameter "TextColor" with the expression color(#,#,#) and then binded to my text's Text Color property in the Property Inspector.

I know it's simple and maybe not what you're looking for 🙁 ... but it worked 😁
