You need ColorSmart from Behr. It lets you take a picture of a color and match it to a Behr color. Then use that color to build a color coordination set.
(Photo credit: Wikipedia)
You can preview your colors in example rooms to see how they work. Then you can enter room measurements to calculate how much paint you need. The app will even direct you to the closest Behr paint store.