First, affordable housing can be located in any census tract, regardless of its income classification
Second, if the rents remain affordable and if the tenants will be primarily low- or moderate-income families you can still get credit for affordable housing.
Third, if the property is located within a low- or moderate-income tract or an area targeted by federal, state or local government for revitalization or stabilization it may qualify for Community Development credit if you can affirm the plans for the property are consistent with the plans to revitalize or stabilize the community.
It doesn't matter if the rent is affordable because of legal requirements or because the landlord is focused on the LMI community, as long as the rents are affordable and the tenants are primarily LMI families it would potentially qualify as affordable housing.
_________________________
CRA Exam Preparation, CRA Performance Evaluations, Key Performance Benchmarks, & maps