We present the promise of generating gigawatt mode-locked multichromatic x rays in a seeded freeelectron laser (FEL). We show that, by using a laser to imprint periodic modulation in electron beam phase space, a single-frequency coherent seed can be amplified and further translated to a mode-locked multichromatic output in an FEL. With this configuration the FEL output consists of a train of modelocked ultrashort pulses which span a wide frequency gap with a series of equally spaced sharp lines. These gigawatt multichromatic x rays may potentially allow one to explore the structure and dynamics of a large number of atomic states simultaneously. The feasibility of generating mode-locked x rays ranging from carbon K edge ($ 284 eV) to copper L 3 edge ($ 931 eV) is confirmed with numerical simulation using the realistic parameters of the linac coherent light source (LCLS) and LCLS-II. We anticipate that the mode-locked multichromatic x rays in FELs may open up new opportunities in x-ray spectroscopy (i.e. resonant inelastic x-ray scattering, time-resolved scattering and spectroscopy, etc.).