Bar color calculator for iOS7 ⇥ (n – 102) / 0.6 ... where n is R for an RGB value. Repeat for G and B. link