Usualy most of the caps Wil b having 5 - 10 years warranty,that depends on the material of the cap, clinic, and lab which has made it .if u feel that cap colour has changed and u are not comfortable, kindly meet the dentist who has placed it.other than the colour,if there is no pain there is no issues in having a discolored cap.
Next Steps
consult Ur doctor