Please wait

Exhibit 23.1

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

We consent to the incorporation by reference in Registration Statement No. 333-285200 on Form S-3ASR and Registration Statements No. 333-248243, 333-26307, 333-271570, 333-277269 and 333-285202 on Form S-8 of our reports dated February 24, 2026, relating to the financial statements of Harmony Biosciences Holdings, Inc. and the effectiveness of Harmony Biosciences Holdings, Inc.’s internal control over financial reporting appearing in this Annual Report on Form 10-K for the year ended December 31, 2025.

/s/ DELOITTE & TOUCHE LLP

Philadelphia, PA

February 24, 2026