All properties and functions that expect color values accept instances of the different color classes such as RgbColor, HsbColor and GrayColor, and also accept named colors and hex values as strings which are then converted to instances of RgbColor internally.
Example — Named color values:
Example — Hex color values: