The present invention relates to [1] a detergent composition including pigment granules containing (A) from 10 to 95% by mass of a water-insoluble pigment, and (B) at least two compounds selected from the group consisting of polyvinyl alcohol, a polyvinyl alcohol derivative, polyvinyl pyrrolidone and a polyvinyl pyrrolidone derivative and [2] a process for producing the detergent composition according to the above [1], including the steps of mixing and granulating a powder containing the water-insoluble pigment (A) and a solution of the component (B) to obtain a granulated product drying the resulting granulated product to obtain the pigment granules and mixing the pigment granules with a detergent. The detergent composition is capable of not only can satisfying both of rich foaming and good preparation stability, but also exhibiting sufficient coloration of foams and readily controlling a coloring time of the foams without damage to motivation of the user to use the detergent, and therefore can provide a comfortable feeling of use and a suitable configuration of use according to the applications by the user.