function generateColorFromName(name) {
	// If name is empty, return a default color (Material Blue)
	if (!name || name.length === 0) {
		return '#2196F3'
	}

	// Use the hash code of the name as a seed for color generation
	let hash = 0
	for (let i = 0; i < name.length; i++) {
		hash = ((hash << 5) - hash) + name.charCodeAt(i)
		hash |= 0 // Convert to 32bit integer
	}

	// Generate HSV color with consistent hue based on name
	// Use a limited range of saturation and value for visually pleasing colors
	const hue = Math.abs(hash % 360)
	const saturation = 0.7 + (Math.abs(hash % 3000) / 10000) // Range: 0.7-1.0
	const value = 0.8 + (Math.abs(hash % 2000) / 10000) // Range: 0.8-1.0

	// Convert HSV to RGB
	const rgbColor = hsvToRgb(hue, saturation, value)

	// Convert RGB to hex
	return rgbToHex(rgbColor[0], rgbColor[1], rgbColor[2])
}
Generates a consistent color based on the name's hash code
@param {string} name - The name to generate a color from
@returns {string} - A hex color code