Fixing colorType to support rgb in hash form and hsl values.

Fixes #377.
Merge pull request #417 from mithro/color-fix

Fixing colorType to support rgb in hash form and hsl values.