# how to use RGB vectors as rgb coloring in Paraview

**URL:** https://discourse.paraview.org/t/how-to-use-rgb-vectors-as-rgb-coloring-in-paraview/7470
**Category:** ParaView Support
**Tags:** vtk
**Created:** [June 23, 2021, 12:07pm UTC](https://discourse.paraview.org/t/how-to-use-rgb-vectors-as-rgb-coloring-in-paraview/7470 "2021-06-23T12:07:01Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![HeshamFS](https://discourse.paraview.org/user_avatar/discourse.paraview.org/heshamfs/32/6960_2.png) [@HeshamFS](https://discourse.paraview.org/u/HeshamFS)
#### Post date: [June 23, 2021, 12:07pm UTC](https://discourse.paraview.org/t/how-to-use-rgb-vectors-as-rgb-coloring-in-paraview/7470/1 "2021-06-23T12:07:01Z")

</div>

Dear community members.

I hope that I can find my answer here.

I created a “VTK” output which gives an RGB vector for each point on my microstructure. The RGB range is (0-255), not (0-1); however, I can normalize the vector as well.

My question is, How do we get the RGB colour in Paraview out of these vectors?

Kindly find my output.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/4/4c0d9db24dcdfdf1854ecc228b0ee66d272495b1.png)

Is it possible? Could you please advise me

Best regards,  
Hesham Salama

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [June 23, 2021, 12:08pm UTC](https://discourse.paraview.org/t/how-to-use-rgb-vectors-as-rgb-coloring-in-paraview/7470/2 "2021-06-23T12:08:43Z")

</div>

Uncheck “Map Scalars” in the advanced option of the representation in the properties panel.

---

<div class="post-metadata">

### Author: ![HeshamFS](https://discourse.paraview.org/user_avatar/discourse.paraview.org/heshamfs/32/6960_2.png) [@HeshamFS](https://discourse.paraview.org/u/HeshamFS)
#### Post date: [June 23, 2021, 12:11pm UTC](https://discourse.paraview.org/t/how-to-use-rgb-vectors-as-rgb-coloring-in-paraview/7470/3 "2021-06-23T12:11:54Z")

</div>

Thank you, Mathieu, for the quick and helpful reply. I appreciate it.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/7/765f1b35065cb34572c9ff632200c70514636061.png)

I have another question, How can I get the colour legend accordingly?

Thank you,  
Hesham

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [June 23, 2021, 12:15pm UTC](https://discourse.paraview.org/t/how-to-use-rgb-vectors-as-rgb-coloring-in-paraview/7470/4 "2021-06-23T12:15:02Z")

</div>

I’m afraid a color legend would not make any sense without using MapScalars. You should just hide it.

---

<div class="post-metadata">

### Author: ![HeshamFS](https://discourse.paraview.org/user_avatar/discourse.paraview.org/heshamfs/32/6960_2.png) [@HeshamFS](https://discourse.paraview.org/u/HeshamFS)
#### Post date: [June 23, 2021, 12:16pm UTC](https://discourse.paraview.org/t/how-to-use-rgb-vectors-as-rgb-coloring-in-paraview/7470/5 "2021-06-23T12:16:29Z")

</div>

That is true, I will manually use a colour legend.

Thank you again, Mathieu!
