The science of perfect flan lies in the fact that, unlike most custard-based dishes, it contains both egg yolks and egg whites. Egg yolks are made up of fat, protein and about 50% water. The fat in the yolk gives desserts like crème brûlée, crème caramel and flan their creamy and smooth texture.