import colorsys


def hex_to_rgb_hls(hex_str):
    """ Convert hex string to a rgb list in 255 scale, and a hsv list in
        float scale.
    """

    if len(hex_str) > 6:
        hex_str = hex_str[1:]

    # Convert to rgb
    rgb = []
    for i in range(0, 6, 2):
        rgb.append(int(hex_str[i:i+2], 16))

    # Convert to hsv
    hls = list(colorsys.rgb_to_hls(*[i / 255 for i in rgb]))
    
    return rgb, hls