update api to use name for named colors instead of text