# Set RGB Values for filter labels

**URL:** <https://www.phphelp.com/t/set-rgb-values-for-filter-labels/35124>\
**Category:** Code Snippets\
**Created:** [November 23, 2022, 7:38am UTC](https://www.phphelp.com/t/set-rgb-values-for-filter-labels/35124 "2022-11-23T07:38:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsizz0527](https://www.phphelp.com/user_avatar/www.phphelp.com/dsizz0527/32/4135_2.png) [@dsizz0527](https://www.phphelp.com/u/dsizz0527)\
**Post date:** [November 23, 2022, 7:38am UTC](https://www.phphelp.com/t/set-rgb-values-for-filter-labels/35124/1 "2022-11-23T07:38:00Z")

</div>

Hello! I have a plugin on my WordPress website used to filter and categorize the products in my store. The problem is that the labels to filter the color only give me the option to display the color name rather than an associated RGB value. When I reached out to the developer, he said “you can achieve this via small PHP coding and using Term HTML hooks - [Hooks — Filter Everything Pro](https://filtereverything.pro/resources/hooks/#term-html-hooks) and add colored elements to the color filter terms”. How can I replace the color filter titles with associated RGB Values? I have 0 experience in PHP and don’t know where to begin. Any help is appreciated, Thank you!

 ![Screenshot_20221122_190529](https://www.phphelp.com/uploads/default/original/2X/0/0de3464d0f2432d8e465935211055e038bf63036.png)
