mathani - Rblue = (Rgreen + Rred) / 2

more about : mathani