In matplotlib, pie charts can be colored by specifying the color of each slice. This can be done by passing a list of colors to the 'colors' argument of the 'pie' function. Additionally, predefined color maps like 'viridis', 'plasma', 'inferno', 'magma', 'cividis', etc., can be used to automatically generate a color palette for the slices.