Onyx Equities has sold a nearly 17,000-square-foot retail building in downtown Ridgewood for $5.65 million, brokers with Cushman & Wakefield announced Monday.