* Adjective: This is the most common use, describing a color. For example, "The sun is yellow."
* Noun: It can refer to the color itself. For example, "Yellow is my favorite color."
* Interjection: In rare cases, it can be used as an exclamation, like "Yellow! You're stepping on my toes!"
It's important to look at the sentence it's used in to determine the correct part of speech.