The invention provides an
indole compound and a
solar cell. The
indole compound has a
structural formula as shown in a formula (I). At least one of R1-R7 has a structure as shown in a formula (Hy1): L1 is any one of substituted or unsubstituted C6-C30
arylene, substituted or unsubstituted C3-C30 heteroarylene, substituted or unsubstituted C1-C30 alkylene, substituted or unsubstituted C1-C30 alkyleneoxy and substituted or unsubstituted C1-C30 alkylenesulfenyl, and R8 is any one of a
phosphate group, a
carboxylic acid group and a
sulfonic acid group; when R1-R7 do not represent the structure represented by formula (Hy1), R1-R7 represent the structure represented by formula (Hy1); a substituted or unsubstituted C1-C30
alkyl group, a substituted or unsubstituted C1-C30
alkoxy group, a substituted or unsubstituted C1-C30 alkylthio group, a substituted or unsubstituted C6-C30
aryl group, a substituted or unsubstituted C6-C30 arylamino group, a substituted or unsubstituted C3-C30 heteroaryl group, a substituted or unsubstituted C3-C30 heteroarylamino group, a substituted or unsubstituted C3-, each independently selected from
hydrogen,
halogen, nitro, hydroxyl, substituted or unsubstituted C1-C30
alkyl group, substituted or unsubstituted C1-C30
alkoxy group, substituted or unsubstituted C1-C30 alkylthio group, substituted or unsubstituted C6-C30
aryl group, substituted or unsubstituted C3-C30 heteroarylamino group, substituted or unsubstituted C3- and C12 cycloalkyl is selected from any one of C12 cycloalkyl.