Generate a consistent color for a speaker based on their ID.
The speaker's user ID
A hex color string
Uses a hash function to generate the same color for the same speaker ID. Colors are chosen from a palette of distinct, visually pleasing colors.
const color = getSpeakerColor('user-123');// Returns something like '#4CAF50' Copy
const color = getSpeakerColor('user-123');// Returns something like '#4CAF50'
Generate a consistent color for a speaker based on their ID.