Form: S-8

Initial registration statement for securities to be offered to employees pursuant to employee benefit plans

April 24, 2023

Graphic

425 Market Street
San Francisco
California 94105-2482

TELEPHONE: 415.268.7000

FACSIMILE: 415.268.7522

www.mofo.com

morrison & foerster llp

austin, beijing, berlin, boston,
brussels, denver, hong kong,
london, los angeles, miami,
new york, palo alto, san diego,
san francisco, shanghai, singapore,
tokyo, washington, d.c.

Exhibit 5.1

April 24, 2023

Board of Directors
RH

15 Koch Road

Corte Madera, CA 94925

Re: Registration Statement on Form S-8

Ladies and Gentlemen:

We are acting as counsel to RH, a Delaware corporation (the “Company”), in connection with its registration statement on Form S-8 (the “Registration Statement”), filed with the Securities and Exchange Commission under the Securities Act of 1933, as amended (the “Securities Act”), relating to the proposed offering of 3,000,000 shares of the Company’s common stock, par value $0.0001 per share (the “Shares”), of the Company, all of which Shares may be issued pursuant to awards under the Company’s 2023 Stock Incentive Plan (the “Plan”).

As counsel for the Company, we have examined originals or copies, certified or otherwise identified to our satisfaction, of such documents, corporate records, certificates of public officials and other instruments as we have deemed necessary for the purposes of rendering this opinion and we are familiar with the proceedings taken and proposed to be taken by the Company in connection with the authorization, issuance and sale of the Shares. In our examination, we have assumed the genuineness of all signatures, the legal capacity and competency of all natural persons, the authenticity of all documents submitted to us as originals and the conformity with the originals of all documents submitted to us as copies.  This opinion letter is given, and all statements herein are made, in the context of the foregoing.

This opinion letter is based as to matters of law solely on the Delaware General Corporation Law, as amended. We express no opinion herein as to any other laws, statutes, ordinances, rules, or regulations. As used herein, the term “Delaware General Corporation Law, as amended” includes the statutory provisions contained therein, all applicable provisions of the Delaware Constitution and reported judicial decisions interpreting these laws.

Based upon, and subject to and limited by the foregoing, we are of the opinion that following (i) effectiveness of the Registration Statement, (ii) issuance and sale of the Shares in accordance with the terms set forth in the Plan and (iii) receipt by the Company of the consideration for the Shares specified in the applicable resolutions of the Board of Directors of the Company or a duly authorized committee thereof and the Plan, the Shares will be validly issued, fully paid and nonassessable.

This opinion letter has been prepared for use in connection with the Registration Statement. We assume no obligation to advise you of any changes in the foregoing subsequent to the effective date of the Registration Statement.

We consent to the use of this opinion as an exhibit to the Registration Statement, and we consent to the reference of our name wherever appearing in the Registration Statement and any amendments thereto. In giving such consent, we do not thereby admit that we are in the category of persons whose consent is required under Section 7 of the Securities Act.

Very truly yours,

/s/ Morrison & Foerster LLP

Graphic