The definition of the function is a relation with exactly one x for each y. x is the domain, and y is the range, so all functions have a domain and a range.
Colors are Qualitative and Nominal: Qualitative, because there is no number involved for "color" and Nominal, because their is no natural ordering for color