let hex_color c = Format.sprintf "#%02X%02X%02X" (int_of_float c.c_red) (int_of_float c.c_green) (int_of_float c.c_blue)