Ko Samui is generally a safe place for solo female travelers, even during nighttime hours. The locals are friendly and the crime rate is relatively low. However, like in any other tourist destination, it's always recommended you stay alert, especially at night, and avoid remote and poorly-lit areas. It's best to stick to busy, well-lit areas and ensure you arrange a reliable ride home, rather than walking back to your accommodation alone late at night.