After Effects – Scripting Reference

Reference

Default AE Label Color Codes

To get the label color of an item. 

Type: integer (0 to 16) referencing the label colors set in AE preferences. 0 for none. (see below chart for cheatsheet)

app.project.item(index).label

Change the label color

app.project.item(index).label = 4; //sets label color to pink
Label index hex code Label index hex code
Red 1 #B53838
Green 9 #4AA44C
Yellow 2 #E4D84C
Purple 10 #8E2C9A
Aqua 3 #A9CBC7
Orange 11 #E8920D
Pink 4 #E5BCC9
Brown 12 #7F452A
Lavender 5 #A9A9CA
Fuschia 13 #F46DD6
Peach 6 #E7C19E
Cyan 14 #3DA2A5
Sea Foam 7 #B3C7B3
Sandstone 15 #A89677
Blue 8 #677DE0
Dark Green 16 #1E401E