All trains that share a trunk route are the same color. For example, Lexington Ave's 4,5,6 routes are all green, and Broadway's N, Q, R, W routes are all yellow, regardless of their terminal destinations. G doesn't go through Manhattan at all, and the 7 and L don't share any trunk routes, they have their own colors.