Answer:
let m be the mass of the object, K be the force constant and Fs be the force by the spring on the mass.
Pretty much all other colors except yellow are absorbed.
This is because strong vibrations will affect the alignment of the magnetic domains within the magnetic material. The domains would change the alignment thus affecting the strength of the magnets which solely depends on the alignment of the domains. The strength of a magnet is the sum of the magnetic fields of all the domains in the magnet. Therefore, the net result will be a weaker magnet or the magnet loosing its magnetism.