As described, I don't know exactly how it works.
But as stated,
gray = no rep
green = rep
What it's based on I have no idea, but I'm thinking it's based on activity and on what the one repping you have in rep/posts.
But since I don't have any posts and about 92 - 96% of the rep I give turns green I have to guess it's activity.