Natural compounds are becoming increasingly popular in the fields of pharmaceuticals and cosmetics. One such compound is lignin, a plant-derived aromatic polymer that serves as a natural anti-ultraviolet agent. Conventional methods for extracting lignin from plant materials typically involve performing procedures in harsh environments, such as dissolving it in highly alkaline solutions or subjecting it to treatment in acidic conditions. In this study, lignin was extracted from coconut husk under milder conditions, using neutral solvents and ultrasonic treatment, which allowed us to obtain lignin with significantly improved properties. The developed method facilitated the creation of light-colored lignin, which was employed as a natural ingredient in sunblock cream. Furthermore, for the sake of comparison, lignin was extracted under more rigorous conditions using the traditional method. The research findings confirm that the light-colored lignin sample exhibits a higher level of UV absorption. Furthermore, light-colored lignin demonstrates a synergistic effect when combined with commercial moisturizing creams and sunscreens, leading to a significant enhancement in their SPF performance against both UVA and direct sunlight exposure. This study highlights the potential value of incorporating lignin as a valuable natural ingredient in sunblock and cosmetic products.