The color.ui configuration works with a long range of Git commands, diff, log, and branch included. The following is an example of git log when setting color.ui to true:
$ git log --oneline --decorate --graph * c111003 (HEAD -> master, origin/master, origin/HEAD) Update foo and bar * 270e97b Add bar * 43fd490 Initial commit, adds foo