Add Color type and use it in color functions