The energy of a photon can be computed from its frequency ν or wavelength λ. These are related to each other by Planck's relation, E = hν = hc/λ, where h is the Planck constant (6.626×10 joule-seconds). Knowing either frequency or wavelength, you can compute the photon's momentum.