perf stat: Introduce get_ratio_color() helper