22.7.2 Using Web-safe colors

It is best to use Web-safe colors for HTML; otherwise you could run into browser palette issues.

For Web-safe colors that are rendered the same by all browsers, use color numbers 1 through 8, or define colors with elements of 00, 33, 66, 99, CC, or FF For example, RGB hexadecimal value 0099CC yields the color shown in Figure 22-1.

 

RGB color 0099CC

Figure 22-1 RGB color 0099CC

Table 22-1 lists the values you can use to define Web-safe RGB colors, in three different units of measurement.

Table 22-1 Ways to express Web-safe RGB color values

Units

Web-safe values for Red, Green, or Blue

Where used

Percent

0%

20%

40%

60%

80%

100%

FrameMaker color definitions

Hexadecimal

00

33

66

99

CC

FF

HTML; DITA2Go [Colors]

Decimal

0

51

102

153

204

255

Windows, some applications

Previous Topic:  22.7.1 Numbering and defining text colors

Next Topic:  22.8 Importing HTML files as insets

Parent Topic:  22.7 Defining text colors for HTML

Sibling Topics:

22.7.1 Numbering and defining text colors