def list_of_colors(length):
    """Return a list of colors of the given length"""
    # list of nice colors: https://coolors.co/f94144-f3722c-f8961e-f9c74f-90be6d-43aa8b-577590
    base_colors = ['#f94144', '#f3722c', '#f8961e', '#f9c74f', '#90be6d', '#43aa8b', '#577590']

    colors = []
    for i in range(length):
        colors.append(base_colors[i % len(base_colors)])
    return colors