Working with Colors
Throughout xlsxwriter
colors are specified using a Html sytle #RRGGBB
value. For example with a Format <format>
object:
format:set_font_color('#FF0000')
For convenience a limited number of color names are supported:
format:set_font_color('red')
The color names and corresponding #RRGGBB
value are shown below:
black |
#000000 |
blue |
#0000FF |
brown |
#800000 |
cyan |
#00FFFF |
gray |
#808080 |
green |
#008000 |
lime |
#00FF00 |
magenta |
#FF00FF |
navy |
#000080 |
orange |
#FF6600 |
pink |
#FF00FF |
purple |
#800080 |
red |
#FF0000 |
silver |
#C0C0C0 |
white |
#FFFFFF |
yellow |
#FFFF00 |
Last updated:
3 years ago
|
Edit on GitHub