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

Fixes #377.