The Brainliest Answer!
The colour of lanthanide ions due to f-f transition from one 4f to another 4f orbital.
number of unpaired electron ions in Ce3+ and Yb3+ is 1 and no f-f transition for the f1 and f13 as there no 4f upper state so they absorb in the visible region and appear colourless . 
3 5 3