Khamach is a janyam of the 28th melakarta – Harikambhoji, and is a bashanga ragam (that uses foreign notes), and a vakra ragam (with zigzag notes) that uses the anya swaram (foreign note) N3 in the arohanam. Some composers (like Thyagaraja) avoid the use of N3.
Arohanam: s m1 g1 m1 n2 d2 n2 p d2 n2 s
Avorahanam: s n2 d2 p m1 g3 r2 s