def get_result_color(value=0, ok_thershold=90, warning_thershold=70):
    """
    Get color code that corresponds to the result.

    Parameters:
    - value : value to check
    - ok_thershold : OK threshold value
    - warning_thershold : warning thershold value
    """
    if not (type(value) in (int, float) and type(ok_thershold) in (int,
        float) and type(warning_thershold) in (int, float)):
        return 'lightgrey'
    if value >= ok_thershold:
        return 'green'
    elif value >= warning_thershold:
        return 'yellow'
    else:
        return 'red'
