A magnitude-5.0 earthquake hit seas off Yilan County, China's Taiwan region, on Friday at a depth of 42.7 kilometers, local weather administration said.