# \[solved\] How to use fillcolor attribute?

**URL:** <https://forum.graphviz.org/t/solved-how-to-use-fillcolor-attribute/2637>\
**Category:** Help\
**Created:** [December 30, 2024, 10:07am UTC](https://forum.graphviz.org/t/solved-how-to-use-fillcolor-attribute/2637 "2024-12-30T10:07:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmtk](https://avatars.discourse-cdn.com/v4/letter/g/d78d45/32.png) [@gmtk](https://forum.graphviz.org/u/gmtk)\
**Post date:** [December 30, 2024, 10:07am UTC](https://forum.graphviz.org/t/solved-how-to-use-fillcolor-attribute/2637/1 "2024-12-30T10:07:47Z")

</div>

Hello  
I don’t understand how to use thé “fillcolor” attribute.

```auto
graph {
   a [fillcolor=red fontcolor=yellow]
}
```

[dot]  
graph {  
a [fillcolor=red fontcolor=yellow]  
}  
[/dot]

---

<div class="post-metadata">

**Author:** ![jjlong](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/jjlong/32/887_2.png) [@jjlong](https://forum.graphviz.org/u/jjlong)\
**Post date:** [December 30, 2024, 2:36pm UTC](https://forum.graphviz.org/t/solved-how-to-use-fillcolor-attribute/2637/2 "2024-12-30T14:36:30Z")

</div>

Add style=filled in your list of attributes.

---

<div class="post-metadata">

**Author:** ![gmtk](https://avatars.discourse-cdn.com/v4/letter/g/d78d45/32.png) [@gmtk](https://forum.graphviz.org/u/gmtk)\
**Post date:** [December 30, 2024, 2:50pm UTC](https://forum.graphviz.org/t/solved-how-to-use-fillcolor-attribute/2637/3 "2024-12-30T14:50:20Z")

</div>

Thanks!

```auto
graph {
   a [style=filled fillcolor=red fontcolor=yellow]
}
```

[dot]  
graph {  
a [style=filled fillcolor=red fontcolor=yellow]  
}  
[/dot]
