Please move this to color_utils, seems useful for everyone.