The energy of a photon of yellow light is given by E = hf, where h is Planck's Constant equal to 6.62607540×10-34 Joule • Second.
Then Energy equals 6.62607540×10-34 Joule • Second times 5.11×1014 Cycles Per Second, which simplifies to 3.385924529 ×10-19 Joule. (Cycles have no dimension.)