# How to change Both the cell background and the text color

**URL:** <https://community.grafana.com/t/how-to-change-both-the-cell-background-and-the-text-color/50148>\
**Category:** Grafana\
**Created:** [July 8, 2021, 7:54am UTC](https://community.grafana.com/t/how-to-change-both-the-cell-background-and-the-text-color/50148 "2021-07-08T07:54:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![angelina](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@angelina](https://community.grafana.com/u/angelina)\
**Post date:** [July 8, 2021, 7:54am UTC](https://community.grafana.com/t/how-to-change-both-the-cell-background-and-the-text-color/50148/1 "2021-07-08T07:54:42Z")

</div>

Currently, I’m trying to use the threshold to change the color of the background which changes for different range of values. By doing so, all the text color has become white. However, some of the background color is too light for a white colored text, hence how can I change some of the text to black to increase the contrast. I’ve tried overriding it with another override for the text colors. However, when doing so, the background does not follow the previous override for the threshold colors, and instead become white. What can I do?

---

<div class="post-metadata">

**Author:** ![anon70503803](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@anon70503803](https://community.grafana.com/u/anon70503803)\
**Post date:** [July 16, 2021, 8:29pm UTC](https://community.grafana.com/t/how-to-change-both-the-cell-background-and-the-text-color/50148/2 "2021-07-16T20:29:18Z")

</div>

Hi @angelina

Can you please share some screenshots and tell us what version of Grafana you are using? This is rather difficult to visualize without images…Thanks! 👍

---

<div class="post-metadata">

**Author:** ![sendaird](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@sendaird](https://community.grafana.com/u/sendaird)\
**Post date:** [October 22, 2021, 6:29am UTC](https://community.grafana.com/t/how-to-change-both-the-cell-background-and-the-text-color/50148/3 "2021-10-22T06:29:01Z")

</div>

Hi,

I have the same question as Angelina, so I am replying here with a screenshot. Hope I am not intruding.

I also wanted change both the cell-color (which I could do with ‘gradient background’) and text-color. But seems either of them is possible, not both. At least I couldn’t. I thought about adding another override for the same column and select Text for one and Background for another. But did not work. If I make the BG colored, then the text becomes ‘white’ by default.

Here is my panel screenshot.

I don’t have any problem with this though. But if the cell color is say yellow, then white Text would be difficult to read.

Regards,  
Deb

![panel_cellCol](https://us1.discourse-cdn.com/grafana/original/3X/9/2/923401099f6f2a08cd946bce6c307d221a1bede3.png)

---

<div class="post-metadata">

**Author:** ![anon70503803](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@anon70503803](https://community.grafana.com/u/anon70503803)\
**Post date:** [October 22, 2021, 5:44pm UTC](https://community.grafana.com/t/how-to-change-both-the-cell-background-and-the-text-color/50148/4 "2021-10-22T17:44:53Z")

</div>

Hi all,

I’m not entirely sure if you can modify the font color and cell background color on the table panel to that degree. This might make an excellent feature request, however. Others I’m sure would like to see this:

> **[Discussions · grafana/grafana](https://github.com/grafana/grafana/discussions)**
>
> The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many mo...

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/grafana/original/2X/e/ef5308cc58c9e5a13187b5012eb99f406928462f.png) [@system](https://community.grafana.com/u/system)\
**Post date:** [July 8, 2022, 7:55am UTC](https://community.grafana.com/t/how-to-change-both-the-cell-background-and-the-text-color/50148/5 "2022-07-08T07:55:25Z")

</div>

Closed on July 8, 2022, 7:55am UTC

This topic was automatically closed after 365 days. New replies are no longer allowed.
