Determines a contrasting text color (black or white) based on background luminance.
Extracts initials from a username. Handles various name formats, including special characters and multiple words.
Calculates the luminance of a hex color.
Hashes a string into a numeric value. Used for deterministic color generation.
Generates a color from a hash value. Uses a predefined palette for aesthetic consistency.