Accurately parse color values