Where did the phrase off color originate?

16th. cent. originally 'choler', early medical 'choleric' theory believing four 'cholers' and their balance (health) or imbalance (illness) was determinable by sight. 'Off choler' describing a generalized illness.