# Specifying Colors for Properties

A property of type "Color" can take one of several forms.

The forms are:

- (r,g,b) where r, g and b are numbers from 0 to 255 representing the intensity of the red, green and blue parts.
- '#RRGGBB' where RR, GG and BB are hexadecimal digits (00 to FF) representing the intensity of the red, green and blue parts.

An example of this is the following command to set the color property of the SOLID COLOR TOOL of an Effect to purple(50% red/50% blue):

       effect = CwCreateEffect('Ellipse', 'Solid Color')

       tool = CwGetTool(effect)

       call CWSetProperty tool, "Color", "(128,0,128)"

Below is a quick reference to some common colors and how they would be referred to using the above number systems:

Color | Hexdecimal | Decimal
--- | --- | ---
White | '#FFFFFF' | (255,255,255)
Black | '#000000' | (0,0,0)
Red | '#FF0000' | (255,0,0)
Green | '#00FF00' | (0,255,0)
Blue | '#0000FF' | (0,0,255)
Purple | '#800080' | (128,0,128)
Cyan | '#00FFFF' | (0,255,255)
Gold | '#FFD700' | (248,212,0)
Teal | '#008080' | (0,128,128)

Object Properties | Index