Self-assembled photonic crystals of magnetic iron oxide and silica switch orientation with the applied magnetic field, changing their colour in the process.