No, Elves aren't immune to Hypnotic Pattern, but their Fey Ancestry racial trait gives them advantage on preserving throws against being charmed, which may assist them resist its results. Every single creature in the area who sees the sample need to make a Knowledge conserving throw. On a failed save, https://www.youtube.com/shorts/2bqrDoavYZM