Investigation of the first-order phase transition in the Co(1-x)Mg(x)MoO4 solid solution and discussion of the associated thermochromic behavior.