Context. The prediction of stellar angular diameters from broadband photometry plays an important role in different applications. In particular, long-baseline interferometry, gravitational microlensing, extrasolar planet transits, and many other observing techniques require accurate predictions of the angular size of stars. These predictions are based on the surface brightness-color (SBC) relations. Aims. Our goal is to calibrate general-purpose SBC relations using visible colors, the most commonly available data for most stars. Methods. We compiled the existing long-baseline interferometric observations of nearby dwarf and subgiant stars and the corresponding broadband photometry in the Johnson $\it BV$ and Cousins $R...