def cols(val, verbose=False, getscale=False):
    """
    Return the line color associated with the value.

    :param val: The numeric value, e.g. of the intensity of the line
    :param verbose: more output
    :param getscale: just return the color scale array, regardless of val
    :return: the line color in hex
    """

    # current groups. This should be one less than the number of colors
    # and then we will use anything > cutoffs[-1] as the most intense color
    cutoffs = [10, 25, 50, 100]

    # current color scale. This is so we can easily change it
    #colorscale = YlOrRd
    #colorscale = ['#F2ea2a', '#e7298a', '#2C7FB8']
    colorscale = ['#ffffb2', '#66cad7', '#dd1c77']

    if getscale:
        return colorscale

    for i, j in enumerate(cutoffs):
        if val <= j:
            return colorscale[i]
    return colorscale[-1]