from typing import Iterable


def hexcolour(c:Iterable[float]) -> str:
    """Convert a list/tuple `c` of floats *in the closed interval [0,1]* 
    representing a colour to hex string ``#rrggbb`` format"""
    return '#' + ''.join([hex(int(i*255))[2:].rjust(2,'0') for i in c])