color parse and format util