Formal:
* Ah, d'accord. (This is the most common and neutral way to say it)
* Bien, d'accord. (This is a bit more emphatic)
Informal:
* Ah, bon. (This is a casual and slightly surprised way to say it)
* Ok, d'accord. (This is a direct translation but sounds a bit unnatural in French)
* D'accord. (This is very common and can be used on its own, especially in response to a question)
Other options:
* Oui, bien sûr. (Yes, of course.)
* Je comprends. (I understand.)
* Je vois. (I see.)
The best choice will depend on the specific situation and your relationship with the person you are speaking to.