ayushkhare12

Untitled

Aug 18th, 2019
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. #at the top
  2. from colormath.color_objects import LabColor,sRGBColor
  3. from colormath.color_conversions import convert_color
  4. #as different function
  5. def lab_to_hex_converter(l,a,b):
  6.     lab = LabColor(l,a,b)
  7.     rgb_color = convert_color(lab,sRGBColor)
  8.     return rgb_color.get_rgb_hex()
Add Comment
Please, Sign In to add comment