If you run the following in bash (while in a directory managed by git), you will see each color and the corresponding code for it:
for n in $(seq 1 255); do git log -1 --pretty=format:"%C($n)color $n"; done
You can put those number codes in the %<specifier>(<code>) as shown in the snippet above and customize your log output