Colors
- Last UpdatedMar 02, 2026
- 4 minute read
Draw allows you to draw in up to 365 colors, numbered 1 to 365. By default all 365 color numbers have color definitions assigned to them:
Color numbers 1 to 16 are assigned by default to:
|
Color 1 |
Grey |
Color 9 |
Brown |
|
Color 2 |
Red |
Color 10 |
White |
|
Color 3 |
Orange |
Color 11 |
Pink |
|
Color 4 |
Yellow |
Color 12 |
Mauve |
|
Color 5 |
Green |
Color 13 |
Turquoise |
|
Color 6 |
Cyan |
Color 14 |
Indigo |
|
Color 7 |
Blue |
Color 15 |
Black |
|
Color 8 |
Violet |
Color 16 |
Magenta |
The system maintains a dictionary of 61 color names that can be used in place of color numbers when specifying a color or setting the value of a color attribute. These names (which include the 16 given), their default color numbers and RGB values are:
|
Color |
Index |
RED |
GREEN |
BLUE |
|---|---|---|---|---|
|
Aquamarine |
137 |
0 |
255 |
191 |
|
Beige |
60 |
189 |
173 |
126 |
|
Black |
15 |
0 |
0 |
0 |
|
Blue |
7 |
0 |
0 |
255 |
|
Blueviolet |
207 |
127 |
0 |
255 |
|
Brightorange |
322 |
255 |
191 |
0 |
|
Brightred |
18 |
255 |
0 |
0 |
|
Brown |
9 |
104 |
52 |
0 |
|
Chocolate |
55 |
79 |
39 |
0 |
|
Coral |
356 |
255 |
127 |
0 |
|
Coralred |
39 |
189 |
46 |
0 |
|
Cyan |
46 |
0 |
255 |
255 |
|
Darkbrown |
65 |
79 |
59 |
0 |
|
Darkgreen |
125 |
0 |
79 |
19 |
|
Darkgrey |
268 |
80 |
80 |
80 |
|
Darkorchid |
219 |
141 |
0 |
189 |
|
Darkslate |
146 |
53 |
79 |
73 |
|
Deeppink |
247 |
255 |
0 |
127 |
|
Dimgrey |
269 |
105 |
105 |
105 |
|
Firebrick |
359 |
189 |
46 |
0 |
|
Forestgreen |
101 |
31 |
129 |
0 |
|
Gold |
303 |
255 |
191 |
0 |
|
Green |
5 |
0 |
189 |
0 |
|
Grey |
1 |
130 |
130 |
130 |
|
Indianred |
30 |
189 |
126 |
126 |
|
Indigo |
14 |
52 |
0 |
104 |
|
Ivory |
61 |
255 |
255 |
170 |
|
Khaki |
72 |
129 |
129 |
86 |
|
Lightblue |
168 |
170 |
212 |
255 |
|
Lightgold |
58 |
255 |
234 |
170 |
|
Lightgrey |
271 |
192 |
192 |
192 |
|
Lightyellow |
298 |
255 |
255 |
170 |
|
Limegreen |
97 |
63 |
255 |
0 |
|
Magenta |
16 |
255 |
0 |
255 |
|
Maroon |
243 |
104 |
0 |
78 |
|
Mauve |
12 |
96 |
0 |
129 |
|
Mediumaquamarine |
138 |
170 |
255 |
234 |
|
Midnight |
185 |
0 |
19 |
79 |
|
Navyblue |
193 |
0 |
0 |
104 |
|
Orange |
3 |
255 |
191 |
0 |
|
Orangered |
47 |
255 |
127 |
0 |
|
Pink |
11 |
189 |
126 |
141 |
|
Plum |
232 |
129 |
86 |
129 |
|
Powderblue |
158 |
170 |
234 |
255 |
|
Red |
2 |
189 |
0 |
0 |
|
Royalblue |
177 |
0 |
63 |
255 |
|
Salmon |
38 |
255 |
191 |
170 |
|
Sandybrown |
59 |
189 |
141 |
0 |
|
Sienna |
51 |
129 |
64 |
0 |
|
Springgreen |
127 |
0 |
255 |
127 |
|
Stateblue |
190 |
126 |
126 |
189 |
|
Steelblue |
190 |
0 |
141 |
189 |
|
Tan |
49 |
189 |
141 |
126 |
|
Tomato |
37 |
255 |
63 |
0 |
|
Turquoise |
13 |
9 |
189 |
189 |
|
Violet |
8 |
255 |
170 |
234 |
|
Wheat |
48 |
255 |
212 |
170 |
|
White |
10 |
255 |
255 |
255 |
|
Whitesmoke |
307 |
255 |
255 |
255 |
|
Yellow |
4 |
255 |
255 |
0 |
|
Yellowgreen |
79 |
141 |
189 |
0 |
Note:
The actual RGB definitions of these colors have changed over time and this has led
to duplication. White and Whitesmoke are both mapped to 255, 255, 255 and Orange,
Brightorange and Gold are mapped to 255, 191, 0. The redundant color names have been
maintained for compatibility with previous versions of AVEVA Software. See Color Mapping in DXF/DWG and DGN Export for information on how colors are handled in export.
White and Black will render on-screen so that they are visible: when the background color is white, white is rendered as black, and vice-versa.
It is possible to change the definitions of colors 1-16 indexes using the COLOUR command. The syntax can take three forms, either specifying a predefined name from the system color dictionary, or a percentage mixture, or an RGB definition. Typical examples are:
COLour 3 STEELBLUE
COLour 12 MIX RED 80 GREen 50 BLUe 50
COLour 14 RGB 0,141,188
Where a percentage mixture is specified all three values must be in the range 0-100. Where an RGB definition is given all three values must be in the range 0-255.
Note:
Only the definition of the color index is changed. The definition of the color name
cannot be changed. For example, color 5 (which is Green by default) can be changed
to an RGB of 0 255 0, but setting an attribute to the name Green will always give
the fixed color 0 189 0.
Color definitions can be queried thus:
Q COLour 12
Q COLour RGB 55
Color attributes can be assigned values by number or name, thus:
LLCOLOUR 54
TXCOLOUR NAVYBLUE
When a color attribute is queried, the name (for example, ‘orange’) is returned if available, otherwise the color number is returned. If a number is specifically required (regardless of whether a name is available, a special color-number pseudo-attribute can be used. The names of these are derived from the normal color attributes, for example, LLCONU/MBER, TXCONU/MBER, FCONUM/BER.
It is possible to set all color attributes on an element to the same value by the ALLCOLOURS command. As some Draw elements have many such attributes this is a convenient way of changing them to the same color quickly. To set all the text colors and all the line colors separately the TEXTCOLOURS and LINECOLOURS commands can be used, thus, for example:
|
ALLCOLOURS |
RED |
|
|
TEXTCOLOURS |
7 |
|
|
LINECOLOURS |
GREEN |
The list of color attributes are listed. The special color attribute values of DEFAULT, TEMPLATE, and UNCHANGED can also be specified but these are only valid in particular circumstances.