It appears that circles are colored blue if their number of contacts (with either other circles or the outside) is equal to 1 or 2. They're magenta if their number of contacts is zero.
I'm not sure what the distinction between orange and yellow is-- it doesn't seem to be strictly number of contacts, because I can see cases where both orange and yellow have four contacts.
The colours are about constraints. Orange is a locked constraint between 3 circles (inner and outer included).
If you think about it, N=2 is the only solution that the circles are constrained to touch in two places (and N=1 is weird because it touches in infinite places).
At N=104, the blue circles are surely a drawing fault, they are actually unconstrained and should be magenta. Shown by fact that those blue circles have a dot in the middle (not touching), but a neighbour circle has a line pointing to the blue circle (touching), which is contradictory.
Magenta is unconstrained.
Blue is special case that can only exist for N=2.
The rest are yellow.
The number of lines in the middle show the number of touchs (constraints, 0 to 6).
Not sure how multiple solutions are shown (e.g. N=6 has two solutions).