Yellow cars retain their value better than other colors according to a recent report.

If you want to sell your car a few years down the line, then you want to buy one with a yellow paint job. Why? Because no matter what car you buy you’ll be able to sell it for more later on.

According to a recent study from iSeeCars.com, yellow cars, trucks, and SUVs retain their value better than any other color.

To reach that conclusion, iSeeCars.com analyzed their massive database of sales for 2014 models sold between September 20016 and August 2017. That amounted to 2.1 million cars sold. Then, they compared the sold value against the average MSRP and adjusted for inflation.

What they found was pretty startling from a color standpoint. Compared to the average depreciation of 33.1% over three years, yellow cars only depreciated 27 percent.

RELATED: THE BEST CARS OF 2018 REVEALED

Yellow Nissan
via hdcarwallpapers.com

That’s a lot of money. If you bought your car for $30,000, the color yellow would net you an extra $1,830 when it came time to sell.

Orange and green were the next best colors, but both were a full 3 percent behind yellow at 30.6 percent and 30.9 percent respectively. White and red were basically tied for fourth and fifth place at 32.6 percent and 32.7 percent.

And the worst color you could buy? Gold, which depreciated 37.1 percent over three years.

“Yellow cars are relatively less common, which could drive up demand and help maintain their value,” said Phong Ly, CEO of iSeeCars.com. “Our analysis shows that yellow vehicles have the lowest depreciation of any color for lower-volume cars like convertibles. Interestingly, yellow is also the color with the least depreciation for popular body styles like SUVs and pickup trucks.”

Ly noted that the average depreciation among SUVs and pickup trucks was 30.9% and 20.9 percent, but yellow SUVs only depreciated 25.8 percent, while yellow pickups only depreciated 10.8%.

And as Ly notes, that likely has to do with rarity. After all, where can you get a yellow pickup?

As for why gold is the worst to buy, Ly believes that has everything to do with the fact gold is perceived as a pretty ostentatious color that nobody really wants to have for their car.

You can check out their full findings, and the average time a car stays on the market, on the iSeeCars.com website.

NEXT: LAMBORGHINI BUILDS OVER 10,000 HURACANS