support converting type color from string