def _colored_text(color, text):
    """
    Prepares an inline string with the given color.

    Parameters
    ----------
    color: `list`
        RGB color of the text

    text: `str`
        Text to be colored

    Returns
    -------
    `str`
        Colored text
    """
    return f"\033[38;2;{color[0]};{color[1]};{color[2]}m{text} \033[38;2;255;255;255m"