from typing import Tuple


def text_color(bg_color: Tuple[int, int, int]) -> Tuple[int, int, int]:
    """
    Determines the text color based on background color.

    :param bg_color: The color of the background.
    :return: The text color as a tuple for (r, g, b) values.
    """
    r, g, b = bg_color
    if (r * 0.299 + g * 0.587 + b * 0.114) > 186:
        return 0, 0, 0
    else:
        return 255, 255, 255