Five novel azo compounds containing a fragment of 2-cyanomethylene-4-thiazolidinone suitable as potential permanent hair dyes were isolated and studied by a set of independent physicochemical methods. The compounds act as weak monobasic acids with pK