Yellowing around crown molding
Most likely, if you are certain it is NOT from moisture it can be the simple fact that it is some inexpensive painters caulk that was never painted.

In a commercial settings ie. eateries, we use clear silicone. 

You could simply try painting it.