Color values color-values

Color values for color= and bgc= attributes may be specified using either a list of decimal, comma-separated component values, or a hex notation, similar to HTML.

color
{ {red , green , blue} | gray } | { [ 0x ] hex6 } | { 0xhex2 }
red, green, blue, gray
Color component value (0...255, decimal integer).
hex6
Packed six-digit hexadecimal RGB color value (RRGGBB).
hex2
Packed two-digit hexadecimal gray color value (0…FF).

Examples section-a78732151d584e84abeb99f9ce8d7c24

Some examples of valid color specifiers and their corresponding RGB color value interpretation:

0,100,200
(0,100,200)
128
(128,128,128)
0x010203
(1,2,3)
00b1c2
(160,177,194)

See also section-207d5cb918a94736a27445faa58917d3

color=, bgc=, grout=

recommendation-more-help
a26166cd-f2f4-45ce-996d-96a0f0d6cf49