One of the key tenets of relativity is that nothing can travel faster than the speed of light.
The reason for this is that objects become heavier, or more massive, the faster they go, with the mass approaching infinity as the object approaches the speed of light.
In an atom, where electrons race around the nucleus like buzzing bees, the velocity of an electron doesn’t get anywhere near the speed of light until the atomic nucleus fills up with lots of positively charged protons – the negatively charged electrons have to move faster to keep from being pulled into the highly positive nucleus. This occurs in the transition metals of the periodic table of elements, metals ranging from tantalum and tungsten to platinum and gold. In a gold atom, with 79 protons in the nucleus, the 79 electrons whip around the nucleus at about half the speed of light.
The net effect is that gold’s electrons are much heavier and are pulled in closer to the nucleus, lowering the energy levels and making the atom more compact.
According to this hypothesis, gold’s s shells, which are its lowest energy spherically symmetric electron shells, contract. This shields the electrons in outer, asymmetric p and d orbits from the nuclear charge, allowing them to expand slightly. In gold, the contraction of the outermost (6s) shell and the expansion of the next-inner (5p) shell reduces the energy difference between the two to the equivalent of a photon of blue light.
This allows gold to absorb blue light and, thus, look yellow. Silver, because it exhibits a much less dramatic effect, is unable to absorb any visible light and is totally reflective.