Cosmetic composition comprising: from 70% by weight to 99.9% by weight of a cosmetically acceptable base formulation comprising an oily phase; from 0.1% by weight to 30% by weight of at least one polyhydroxyalkanoate (PHA) in the form of particles having an average diameter (d50) of from 0.1 μm to 100 μm; the percentages being expressed with respect to the total weight of the composition. The PHA in the form of particles acts as a texturizing agent and ensures the desired consistency and flowability properties to the cosmetic composition during the application, as well as a reduced greasiness. In fact, the PHA particles have a strong ability to absorb oily substances, whereby they minimize the greasy effect and absorb excess sebum, making the skin less shiny. Moreover, they contribute to the so-called "soft focus" effect, i.e. an immediate filling and smoothing effect on wrinkles and cutaneous furrows, giving a greater shine and compactness to the skin.