Lebec is an unincorporated community and census-designated place in southwestern Kern County, California. As of the 2020 census, the population was 1,239. Lebec is located in Castac Valley between the San Emigdio and Tehachapi Mountains. The community is one of the Mountain Communities of the Tejon Pass.