from typing import List


def colorblind_color_palette(n: int) -> List[str]:
    """
    Get a colorblind-friendly color palette.

    Adapted from https://gist.github.com/thriveth/8560036.

    Args:
        n: size of the color palette. Up to 9 is allowed.

    Returns:
        List of RGB codes.
    """
    if n > 9:
        raise ValueError(f'Maximal color palette size allowed: 9. Requested: {n}')

    full_color_palette = [
        '#377eb8', '#4daf4a', '#f781bf', '#a65628', '#ff7f00', '#999999', '#984ea3', '#e41a1c',
        '#dede00'
    ]
    return full_color_palette[:n]