# GV color as text BG?

**URL:** <https://forum.kustom.rocks/t/gv-color-as-text-bg/13366>\
**Category:** General\
**Tags:** kwgt, help\
**Created:** [July 24, 2026, 12:44am UTC](https://forum.kustom.rocks/t/gv-color-as-text-bg/13366 "2026-07-24T00:44:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Williams](https://forum.kustom.rocks/user_avatar/forum.kustom.rocks/williams/32/5500_2.png) [@Williams](https://forum.kustom.rocks/u/Williams)\
**Post date:** [July 24, 2026, 12:45am UTC](https://forum.kustom.rocks/t/gv-color-as-text-bg/13366/1 "2026-07-24T00:45:00Z")

</div>

I’d like to point the text background color to a global variable colour is this possible? what do I put instead of #color in the formula (if possible)? I’m not very experienced in this stuff but I hope you understand what I’m looking for 🤷🏻‍♂️

[bg=#FFFFFF]text[/bg]

---

<div class="post-metadata">

**Author:** ![Baju\_Santiko](https://forum.kustom.rocks/user_avatar/forum.kustom.rocks/baju_santiko/32/6471_2.png) [@Baju\_Santiko](https://forum.kustom.rocks/u/Baju_Santiko)\
**Post date:** [July 24, 2026, 1:35am UTC](https://forum.kustom.rocks/t/gv-color-as-text-bg/13366/2 "2026-07-24T01:35:59Z")

</div>

Hi @Williams ,

Here’s how to set a background color is the text using a global variable.

```auto
[bg=$gv(bgcolor)$]text[/bg]

```

📝 **NOTES**

- Assuming the name of the global variable is: `bgcolor`
- Replace the color code (e.g. `#FF0000` ) with the global variable call using `$gv(…)$` function (e.g. `$gv(bgcolor)$` )

Below is a screenshot of an example for setting both the background and the foreground colors of a text, using **BB Code**.

 ![Variable color in BBColor](https://forumcdn.kustom.rocks/original/2X/3/302b0a8ebe9181a4dd8e8a6d8a4749f3e57979d0.jpeg)

Global variables

- TYPE: `Color`
- NAMEs: `bgcolor` for background color, `fgcolor` for foreground color

I hope this would help.

☺👍

---

<div class="post-metadata">

**Author:** ![Williams](https://forum.kustom.rocks/user_avatar/forum.kustom.rocks/williams/32/5500_2.png) [@Williams](https://forum.kustom.rocks/u/Williams)\
**Post date:** [July 24, 2026, 6:46am UTC](https://forum.kustom.rocks/t/gv-color-as-text-bg/13366/3 "2026-07-24T06:46:09Z")

</div>

@Baju_Santiko Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://forum.kustom.rocks/uploads/default/original/1X/7184cbcdd441596e9d743f475f61b661d1a23e35.png) [@system](https://forum.kustom.rocks/u/system)\
**Post date:** [August 18, 2026, 6:46am UTC](https://forum.kustom.rocks/t/gv-color-as-text-bg/13366/4 "2026-08-18T06:46:48Z")

</div>

Closed on August 18, 2026, 6:46am UTC

This topic was automatically closed 25 days after the last reply. New replies are no longer allowed.
