From what I understand you mean a yellowish discoloration on the thumnail if it's painful will have to check for collection of pus and that condition is called subungual abscess.
If not painful it can be a fungal infection .the diagnosis once confirmed you can take the appropriate medications , fungal infections of nail tak at least 6 months to heal.
Disclaimer : The content is not intended to be a substitute for professional medical advice, diagnosis, or treatment. Always seek the advice of your physician or other qualified health provider with any questions you may have regarding your medical condition. Never disregard professional medical advice or delay in seeking it because of something you have read on this website.