Interfacial magnetic anisotropy in a Pt/CO1-xFex/Pt multilayer is tuned by doping iron atoms into the cobalt layer. The perpendicular magnetic anisotropy and out-of-plane coercivity are found to decrease with increasing x. For a specific x, the out-of-plane coercivity acquires a maximal value as a function of the thickness of the CoFe layer. At low temperature, the coercivity is enhanced. Small coercivity but reasonably large perpendicular magnetic anisotropy can be obtained by controlling the x and CoFe layer thickness.