extract color to string for canvas