Go to a specialized paint shop, and bring a rim with you. Or drive it there.
They are usually very good at matching paints, as this is their job.
They'll either sell you a spray can for a bit of profit, or just the paint for less profit. A scuff might just be doable filling it in with a bit a clear on top.