Specifically, the type of synesthesia where a person associates colors with words or sounds is called grapheme-color synesthesia or lexical-gustatory synesthesia.
It's important to note that synesthesia isn't just associating one color with a word, but rather experiencing the color as an actual part of the word itself. It's a neurological phenomenon where the senses become intertwined, resulting in unique perceptual experiences.