The color of a beer comes mainly from the grain malts used and their degrees of roasting.
But there is an exception: fruit beers.
Everyone knows krieks, famous cherry beers (syrup, juice, whole fruit) but in the world of craft beer, when you are told that a beer has fruity undertones, it is usually a subtle presence, detectable by the sharpest palates.
These fruity touches come from the hops used or more precisely from the essential oils they contain. Thus, when you detect the presence of apricot in a beer, you recognize the essential oil found in apricots and that you have associated with them.