custom contour colors rewrite