When you retrieve the color of a tag using the API it returns a color number, not the pretty name of the color. The table below maps all of these color values in PanOS 9.0.
Tag Color | API Value |
Azure Blue | color24 |
Black | color14 |
Blue | color3 |
Blue Gray | color12 |
Blue Violet | color30 |
Brown | color16 |
Burnt Sienna | color41 |
Cerulean Blue | color25 |
Chestnut | color42 |
Cobalt Blue | color28 |
Copper | color5 |
Cyan | color10 |
Forest Green | color22 |
Gold | color15 |
Gray | color8 |
Green | color2 |
Lavender | color33 |
Light Gray | color11 |
Light Green | color9 |
Lime | color13 |
Magenta | color38 |
Mahogany | color40 |
Maroon | color19 |
Medium Blue | color27 |
Medium Rose | color32 |
Medium Violet | color31 |
Midnight Blue | color26 |
Olive | color17 |
Orange | color6 |
Orchid | color34 |
Peach | color36 |
Purple | color7 |
Red | color1 |
Red Violet | color39 |
Red-Orange | color20 |
Salmon | color37 |
Thistle | color35 |
Turquoise Blue | color23 |
Violet Blue | color29 |
Yellow | color4 |
Yellow-Orange | color21 |