Fixed an off-by-one error on color code input.