This paper proposed a new algorithm to separate leukocytes from cytological image by setting parameters of lightness transformation based on the RGB color space, which can make the targets' color in different areas. In our procedure, an operator is employed in using color features. According to their histogram distribution of hue component in HSL color space after enhancing the contrast of image in RGB color space, the threshold of segmentation between leukocyte and erythrocyte could be achieved well. Especially, this algorithm is more efficient than monochrome for leukocyte segmentation, and the results of experiments show that it provides a good tool for cytological image, which can increase accuracy of segmentation of leukocyte.