Admin object editor, change input field color based on another field

Any suggestion for dynamically setting the color of a field in the Admin object editor, based on another fields value?