#! /usr/bin/env python

from functools import lru_cache

import seaborn

assert 949 == len(seaborn.xkcd_rgb)  # e.g. 'very light green': '#d1ffbd'


@lru_cache()
def get_name_to_rgb():
    keys = seaborn.xkcd_rgb.keys()
    return dict(zip(keys, seaborn.xkcd_palette(keys)))

@@ -57,23 +57,90 @@
 %0Aimport 
-seaborn
+colormath as cm%0Aimport colormath.color_objects as co%0Aimport seaborn as sns
 %0A%0Aassert
@@ -152,22 +152,18 @@
 == len(s
-eabor
 n
+s
 .xkcd_rg
@@ -234,16 +234,17 @@
 name_to_
+s
 rgb():%0A 
@@ -254,22 +254,18 @@
 keys = s
-eabor
 n
+s
 .xkcd_rg
@@ -304,32 +304,391 @@
 s, s
-eaborn.xkcd_palette(keys))
+ns.xkcd_palette(keys)))%0A%0Aif __name__ == '__main__':%0A    print(sns.xkcd_rgb%5B'bright red'%5D)%0A    red = get_name_to_srgb()%5B'bright red'%5D%0A    red = co.sRGBColor(*red)%0A    print(red, red.is_upscaled)%0A    print(co.sRGBColor(*red.get_value_tuple()),%0A          co.sRGBColor(*red.get_value_tuple()).is_upscaled)%0A    up = co.sRGBColor(*red.get_upscaled_value_tuple())%0A    print(up, up.is_upscaled
 )%0A

Paint it red