Only really in the same situations where Americans tend to use “Okay, then.” or “Sure thing.”
It can’t always be substituted for ‘yes’. It’s usually used as a kind of final agreement. Most commonly you’re understanding and agreeing with a suggestion, and conclusively accept it, with an implication that the action will be performed immediately (if not otherwise specified or implied).
e.g.
“Driver? We wish to detour to the Hotel Parisienne immediately.”
“Right you are, sir.”
“James, I think we should send a telegram to our good friend in New York.”
“Right you are, brother. I’ll compose one now.”
“If you need any refreshment, Mr Stephenson, my wife will be happy to oblige. Just let us know, we’ll be on the veranda.”
“Right you are.”
Else, when dealing with facts rather than suggested activities, it can be used as Americans use: “You got it.” & “You betcha.”
Usually as “Right you are, Mr. Mandeville!”
In this case, I consider it much more likely that the upper-classes would say “Quite.” or “Quite right.” or “Exactly.” or, especially if acknowledging before countering, “Undoubtedly, ...”
However, “Quite” can often be used in a manner which suggests agreement with a statement, but not its manner (eg a Gentleman agreeing with his cabbie), whereas “Exactly.” suggests exact agreement. Naturally, it could also be used for an opposite, ironic effect.
e.g.
“I fink the bloke’s a crook and ‘e should be ‘anged”
“Quite.”
-
Sorry, I haven’t answered your actual question very well at all.
I do have some more relevant suggestion; I think it’s more likely that the user of the phrase will be speaking to someone above or equal to his social standing. It’s a very difficult concept to explain, but it would sound rather pretentious of a working-class person to say it to one of their fellows, and also rather “chummy” of an upper-class person to say it to a cabbie for example. More likely to say it to his butler though, who is more personally close. I’d say its definitely reasonable to hear middle-class people saying to each other, and not uncommon for the upper-classes to use it between themselves (informally), but usually in the first sense, as described above.
Now I don’t have any evidence for the above, but it’s just my gut feeling, so take it as you will.