Error handling for color value entry