In These Broken Stars, by Annie Kaufman and Meagan Spooner, it is the first in a set of books: the Starbound Series.
The story revolves around the only survivors of the spaceship, Icarus' massive crash: Lilac LaRoux, the only daughter of Mr. LaRoux, the leader of the operation to build the Icarus, and who is all so the richest girl in the known galaxy. Her companion is Major Tarver Merendersen, a young was hero and not upper class, unlike Lilac.
Stranded on an unknown planet, Lilac and Tarver will have to learn to trust each other as they figure out how to survive until someone comes for them.
Things start to get complicated, not just with survival, but also between Lilac and Tarver. Fighting forbidden love, "hallucinations," and their inner selves, they must struggle to escape the horrid planet... alive.
Recommending this to teen readers in need of a romance between high class and low class, and teens looking for a love story with a sci-fi and astronomy background. Library's SWAN Online Catalog