color extraction utilities