The red color in watermelon is due to a compound called lycopene, also found in tomatoes. In comparison, yellow watermelon lacks a lycopene compound.