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

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

color=, bgc=, grout=

On this page

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now