Handle cases where 256 colors don't exist