#### 22.7.1 Numbering and defining text colors

You can assign hexadecimal RGB color values to arbitrary index numbers, and then use those index numbers in certain configuration settings to represent color values.

To number colors and specify color values:

    [Colors]
    ; color number 1-254 = hex RGB value; color number 0 is invisible
    ; 1..8 = black, white, red, green, blue, cyan, magenta, yellow
    ; numbers up to 254 may be defined here and used in [HTML*Styles]
    ; for example, 100=804000 defines 100 as olive brown

The reserved color numbers have the following hexadecimal RGB values:

    1
    black
    000000
    2
    white
    FFFFFF
    3
    red
    FF0000
    4
    green
    008000
    5
    blue
    0000FF
    6
    cyan
    00FFFF
    7
    magenta
    FF00FF
    8
    yellow
    FFFF00

To map a reserved color to some other color, assign its number a new RGB value; for example:

    [Colors]
    ; Replace Cyan with SeaWater
    6 = 0099CC

See also §30.8 Specifying text colors for HTML.

To define a new color, assign a hexadecimal RGB value to any decimal integer from 9 through 254 (0 through 8 are reserved). For example:

    [Colors]
    ; Use deep pink for table headings
    105 = FF3399

Previous Topic: 22.7 Defining text colors for HTML

Next Topic: 22.7.2 Using Web-safe colors

Parent Topic: 22.7 Defining text colors for HTML

Sibling Topics:

22.7.2 Using Web-safe colors