This is a common mistake that I admit I have answered incorrectly in the past.
There is a table in the 2020 NEC (See note below):

It's easy to quickly say "that's the rule, we're done here", but hold on a minute, when does the Code say that table applies?
NEC 210.21(B)(3) Receptacle Ratings. Where connected to a branch circuit supplying two or more receptacles or outlets, receptacle
ratings shall conform to the values listed in Table 210.21(B)(3), or,
where rated at higher than 50 amperes, the receptacle rating shall not
be less than the branch circuit rating.
So that table applies to multioutlet circuits. What about a single outlet? If you look back a couple of paragraph you find a different rule for a different situation that does not reference any table.
210.21(B)(1) Single Receptacle on a Individual Branch Circuit. A single receptacle installed on an individual branch circuit shall have
an ampere rating not less than that of the branch circuit.
So since 50 is not less than 30, then single 50A receptacle on a 30A circuit complies with the rule.
Note: I would have arranged the answer differently if I had noticed before completing answer that the image of the Table represents the table as shown in the 2020 and earlier versions of the NEC. The text of 210.21(B)(3) hasn't changed, but I think the 2023 NEC has tried to clarify that the table only applies to multioutlet circuits by re-titling the table Receptacle Ratings for Circuits Serving More Than One Receptacle or Receptacle Outlet.