# How to get the colorvalue of pixel clicked on a heatmap

**URL:** <https://community.plotly.com/t/how-to-get-the-colorvalue-of-pixel-clicked-on-a-heatmap/67427>\
**Category:** plotly.js\
**Created:** [August 27, 2022, 7:06pm UTC](https://community.plotly.com/t/how-to-get-the-colorvalue-of-pixel-clicked-on-a-heatmap/67427 "2022-08-27T19:06:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pramodBLS](https://avatars.discourse-cdn.com/v4/letter/p/90ced4/32.png) [@pramodBLS](https://community.plotly.com/u/pramodBLS)\
**Post date:** [August 27, 2022, 7:06pm UTC](https://community.plotly.com/t/how-to-get-the-colorvalue-of-pixel-clicked-on-a-heatmap/67427/1 "2022-08-27T19:06:20Z")

</div>

Hi,

I have a heatmap with certain colorscale e.g. “Rainbow”, when I clicked on a pixel, I would like to get the color of that pixel in rgb values (or any html supported format) I have searched the documentation everywhere and have not found any method. Anyone tried something like this?

Regards,

Pramod
