This effect, referred to as bokeh, is accomplished by using larger apertures such as f/1.4 to f/2.8, long focal lengths, and a small distance to subject relative to the background.
While this effect can be highly desirable for portraits, it would often be avoided in la...