import typing


def transparency_hex(color: typing.Tuple[int, int, int], alpha: float) -> str:
    """Apply alpha coefficient on hexadecimal color."""
    return "#%02x%02x%02x" % tuple(
        [int(round(alpha * c + (1 - alpha) * 255, 0)) for c in color]
    )