The invention discloses an aryl hydrocarbon receptor modulators of formula (I), and pharmaceutically acceptable salts thereof,R' is H, CN, CH<;sub>;2<;/sub>;(OH)R<;sub>;0<;/sub>;, C<;sub>;m<;/sub>;H<;sub>;2m+1<;/sub>;, C<;sub>;n<;/sub>;H<;sub>;2n-1<;/sub>;, C<;sub>;n<;/sub>;H<;sub>;2n-3<;/sub>;,two R<;sub>;a<;/sub>;is independently H, or two R<;sub>;a<;/sub>;together form =O or =N-W<;sub>;3<;/sub>;-R<;sub>;1<;/sub>;; A is a C<;sub>;6<;/sub>;to C<;sub>;10<;/sub>;aromatic ring, or a C<;sub>;2<;/sub>;to C<;sub>;10<;/sub>;heteroaromatic ring containing 1 to 5 heteroatom selected from N, O and S, or 4 to 7 membered non-aromatic heterocyclic ring containing 1 to 3 heteroatom selected from N, O and S and C=N, which are with no substituent or substituted by 1 or 3 R; Q is R, or a C<;sub>;6<;/sub>;to C<;sub>;10<;/sub>;aromatic ring or a C<;sub>;2<;/sub>;to C<;sub>;10<;/sub>;heteroaromatic ring containing 1 to 5 heteroatom selected from N, O and S, which are with no substituent or substituted by 1 or 3 R; R is R<;sub>;c<;/sub>;connected with C or R<;sub>;N<;/sub>;connected with N. Compounds of this invention of formula (I) can modulate activity of AhR for inhibiting growth of cancer cell and inhibiting migration and invasion of tumour cell.