The correct option is D Sm3+
The electronic configuration of Gd3+ is [Xe]4f7
The electronic configuration of La3+ is [Xe]4f0
The electronic configuration of Lu3+ is [Xe]4f14
The electronic configuration of Sm3+ is [Xe]4f5
Only Sm3+ among the given options does possess any half-filled or fully filled 4f orbital, hence only Sm3+ would show colour.