Step 1: Use Einstein's photoelectric equation.
The photoelectric equation is
\[
\frac{hc}{\lambda}
=
\phi+K.E.
\]
where
\[
\phi=4.5\,\text{eV}
=4.5\times1.6\times10^{-19}
=7.2\times10^{-19}\,\text{J}.
\]
The kinetic energy is
\[
K.E.=7.2\times10^{-20}\,\text{J}.
\]
Step 2: Calculate the photon energy.
Hence,
\[
E
=
7.2\times10^{-19}
+
7.2\times10^{-20}
=
7.92\times10^{-19}\,\text{J}.
\]
Now,
\[
\lambda
=
\frac{hc}{E}
=
\frac{6.6\times10^{-34}\times3\times10^8}
{7.92\times10^{-19}}
=
2.5\times10^{-7}\,\text{m}.
\]
Step 3: Convert into nanometres.
Since
\[
1\,\text{nm}=10^{-9}\,\text{m},
\]
\[
\lambda
=
2.5\times10^{-7}\times10^9
=
250\,\text{nm}.
\]
Hence,
\[
\boxed{\lambda=250\,\text{nm}.}
\]
Therefore, the correct option is \(\boxed{(B)}\).