The photoelectric effect

Light knocks electrons out of a metal only if each photon carries more than the work function, $K_{max} = hf - \phi$, so the frequency decides whether and how fast electrons leave, while brightness only decides how many.

From AP Physics 2.