convert to palette and add ratios