# How to get the RGB value on the dashboard for use in a button node?

**URL:** <https://discourse.nodered.org/t/how-to-get-the-rgb-value-on-the-dashboard-for-use-in-a-button-node/97542>\
**Category:** Dashboard\
**Created:** [11 June 2025 01:41 UTC](https://discourse.nodered.org/t/how-to-get-the-rgb-value-on-the-dashboard-for-use-in-a-button-node/97542 "2025-06-11T01:41:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [11 June 2025 01:41 UTC](https://discourse.nodered.org/t/how-to-get-the-rgb-value-on-the-dashboard-for-use-in-a-button-node/97542/1 "2025-06-11T01:41:14Z")

</div>

Here's the picture - (saves a lot of words)

 ![Screenshot from 2025-06-11 11-38-34](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/8/68c6a2c3b2fefeb5bf238f14ee69ad59cfbab1ef.png)

The area pointed to by the black arrow.

I've got the debug window open, but it is giving me a `#3333` value or maybe `#55555`....

Which isn't decimal, so it is difficult for me to get the right value.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [11 June 2025 03:32 UTC](https://discourse.nodered.org/t/how-to-get-the-rgb-value-on-the-dashboard-for-use-in-a-button-node/97542/2 "2025-06-11T03:32:39Z")

</div>

Well according to [www.rgbtohex.net/hex-to-rgb/](https://www.rgbtohex.net/hex-to-rgb/) Hex 33 is Decimal 51 so #333333 is the same as rgb(51, 51, 51).

But you should be able to use either format to specify a button background / foreground colour?

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [11 June 2025 03:33 UTC](https://discourse.nodered.org/t/how-to-get-the-rgb-value-on-the-dashboard-for-use-in-a-button-node/97542/3 "2025-06-11T03:33:53Z")

</div>

I was thrown as it was all concurrent numbers.

Not like #33,33,33 which threw me. (As said)

Thanks.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [11 June 2025 16:24 UTC](https://discourse.nodered.org/t/how-to-get-the-rgb-value-on-the-dashboard-for-use-in-a-button-node/97542/4 "2025-06-11T16:24:14Z")

</div>

Standard CSS colour values Andrew, in HEX.

Personally, I've long switched to always using HSL colour values which are far more logical than RGB. For instance, you can easily make a colour darker or lighter but retain the same hue or change the hue without changing the lightness or saturation.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [25 June 2025 16:24 UTC](https://discourse.nodered.org/t/how-to-get-the-rgb-value-on-the-dashboard-for-use-in-a-button-node/97542/5 "2025-06-25T16:24:44Z")

</div>

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