# RGB color mapping

**URL:** https://discourse.paraview.org/t/rgb-color-mapping/17213
**Category:** ParaView Support
**Tags:** vtk
**Created:** [September 26, 2025, 4:00pm UTC](https://discourse.paraview.org/t/rgb-color-mapping/17213 "2025-09-26T16:00:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![saketh](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/439d5e/32.png) [@saketh](https://discourse.paraview.org/u/saketh)
#### Post date: [September 26, 2025, 4:00pm UTC](https://discourse.paraview.org/t/rgb-color-mapping/17213/1 "2025-09-26T16:00:47Z")

</div>

Hello friends,

I have exported nodal, element data in vtk file to visualize in paraview. I have 6656 elements and each element has some rgb data {{0,1,0},{0.6,0.9,1}…..}\*255 to make it consistent with paraview. Now how can i map this color data exactly to each element in paraview?? Looking forward for your help

Here is samaple code snippet:

CELLS 6656 59904  
8 0 16 664 147 6784 6785 6786 6787  
8 16 17 665 664 6788 6789 6790 6785  
8 17 18 666 665 6791 6792 6793 6789  
8 18 19 667 666 6794 6795 6796 6792  
8 19 20 668 667 6797 6798 6799 6795  
8 20 21 669 668 6800 6801 6802 6798  
8 21 22 670 669 6803 6804 6805 6801  
8 22 23 671 670 6806 6807 6808 6804  
8 23 24 672 671 6809 6810 6811 6807…….

CELL\_DATA 6656  
COLOR\_SCALARS ElementColors 3  
0 255 0  
0 255 0  
0 255 0  
0 255 0  
0 255 0  
0 255 0  
0 255 0  
0 255 0  
0 255 0  
0 255 0  
0 255 0  
0 255 0  
0 255 0

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [September 29, 2025, 10:17am UTC](https://discourse.paraview.org/t/rgb-color-mapping/17213/2 "2025-09-29T10:17:11Z")

</div>

In the _Properties_ panel, select “ElementColors” in the Coloring menu and then uncheck the property **Map Scalars**. This tells ParaView to use the RGB values you have provided in the “ElementColors” array.

---

<div class="post-metadata">

### Author: ![saketh](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/439d5e/32.png) [@saketh](https://discourse.paraview.org/u/saketh)
#### Post date: [September 29, 2025, 2:34pm UTC](https://discourse.paraview.org/t/rgb-color-mapping/17213/3 "2025-09-29T14:34:39Z")

</div>

Dear Mr.Cory,

Thank you for your response. Yes, it is working now.

Regards

Saketh
