Text colors may be specified by name or RGB value. The RGB color format uses hexadecimal numbers, with 2 hex digits each for red, green, and blue. These range from 0 (00 in hex) to 255 (FF in hex). In certain situations BYOND will also honor a fourth pair of digits for alpha.

#<span style="color:red">rr</span><span style="color:green">gg</span><span style="color:blue">bb</span>
#<span style="color:red">rr</span><span style="color:green">gg</span><span style="color:blue">bb</span><span style="opacity:0.67">aa</span>

It is also possible to use 4 bit values by using only one hex digit per color. The full 8 bit color is produced by repeating each digit. For example, #F00 (red) is the same as #FF0000.

The named colors supported by BYOND, and their corresponding RGB values, are listed in the following table:

black#000000
silver#C0C0C0
gray or grey#808080
white#FFFFFF
maroon#800000
red#FF0000
purple#800080
fuchsia or magenta#FF00FF
green#00C000
lime#00FF00
olive or gold#808000
yellow#FFFF00
navy#000080
blue#0000FF
teal#008080
aqua or cyan#00FFFF

See also