# Vertex coloring

**URL:** <https://forum.graphviz.org/t/vertex-coloring/417>\
**Category:** Help\
**Created:** [October 29, 2020, 10:10pm UTC](https://forum.graphviz.org/t/vertex-coloring/417 "2020-10-29T22:10:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahmoodn](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mahmoodn](https://forum.graphviz.org/u/mahmoodn)\
**Post date:** [October 29, 2020, 10:10pm UTC](https://forum.graphviz.org/t/vertex-coloring/417/1 "2020-10-29T22:10:38Z")

</div>

How can I use custom colors for some vertices or a global color for all vertices? I have wrote

digraph {  
1 [label=“memcpy”, fillcolor=red]  
1-\>2  
…  
}

But it seems that it doesn’t working.

---

<div class="post-metadata">

**Author:** ![mark](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/mark/32/84_2.png) [@mark](https://forum.graphviz.org/u/mark)\
**Post date:** [October 29, 2020, 11:39pm UTC](https://forum.graphviz.org/t/vertex-coloring/417/2 "2020-10-29T23:39:49Z")

</div>

I think you need style=filled

[http://graphviz.org/doc/info/attrs.html#d:fillcolor](http://graphviz.org/doc/info/attrs.html#d:fillcolor) says fillcolor is “Color used to fill the background of a node or cluster assuming style=filled, or a filled arrowhead.”  
digraph {  
1 [label=“memcpy” fillcolor=red style=filled];  
1-\>2;  
}

works for me
