White, Yellow or Bicolor Sweet Corn: Does Color Predict Sweetness?
Kernel color alone does not reliably rank sweet corn by sweetness. White, yellow and bicolor describe appearance, while sweet-corn varieties also differ in sugar characteristics, texture and storage behavior. Ask about the variety rather than assuming white is always sweeter.

Separate color from the sweet-corn type
Iowa State Extension lists different genetic types of sweet corn, with varieties in several colors. A color label is not a complete description of the kernels. Similar-looking ears can have different tenderness and sweetness.
Remember the harvest stage
Sweet corn is harvested at the milk stage, before the kernels become hard and mature. Overmature kernels can be tough and doughy. A desirable color does not make an overmature ear tender again.
Keep freshness in the decision
Use or refrigerate fresh sweet corn promptly. Sugar conversion and keeping quality vary among types, so there is no single color that guarantees better storage. Ask the seller when it was harvested if that information is available.
Compare the form you will cook
For a recipe measured in kernels, remove them from the cob before measuring the requested amount. Equal ear counts need not yield equal portions. Choose the flavor you enjoy without assigning a universal health ranking to the color.
Sources
Iowa State University Extension.