Provided are a portable electronic device, an accessory, and an operation method thereof. The portable electronic device includes a light source irradiating light to skin, at least one light detector detecting light received from the skin, at least one memory storing an instruction, and a processor, by executing the instruction, controlling the light source to irradiate the light and analyzing a skin state based on light detected by the light detector.