Why is the color not changing, with the Sprite Renderer?,Can change the color with Spriterender.color

I have been wanting to make a minesweeper game for a while and start by trying to make a grid, but even if i copy the code straight from the tutorial it doesnt work but instead makes the tiles invisible .

I have copied this code of the internet for a grid for a minesweeper game i have wanted to code for while. But even if i copy and paste the code and do everything the tutorial says the Spriterenderer is changing the color to an invisible color. How and why is this happening only to me?

Link to tutorial: https://www.youtube.com/watch?v=kkAjpQAM-jE&t=230s

Why is this only happening to me?

GridManager Script:

public class GridManagar : MonoBehaviour
{
    [SerializeField] private int _width, _height;
    [SerializeField] private Tile _tilePrefab;
    [SerializeField] private Transform _cam;
    private Dictionary<Vector2, Tile> _tiles;
    void Start()
    {
        GenerateGrid();
    }
    void GenerateGrid()
    {
        _tiles = new Dictionary<Vector2, Tile>();
        for (int x = 0; x < _width; x++)
        {
            for (int y = 0; y < _height; y++)
            {
                var spawnedTile = Instantiate(_tilePrefab, new Vector3(x, y), Quaternion.identity);
                spawnedTile.name = $"Tile {x} {y}";
                var isOffset = (x % 2 == 0 && y % 2 != 0) || (x % 2 != 0 && y % 2 == 0);
                spawnedTile.Init(isOffset);
                _tiles[new Vector2(x, y)] = spawnedTile;
            }
        }
        _cam.transform.position = new Vector3((float)_width / 2 - 0.5f, (float)_height / 2 - 0.5f, -10);
    }
    public Tile GetTileAtPosition(Vector2 pos)
    {
        if (_tiles.TryGetValue(pos, out var tile)) return tile;
        return null;
    }
}

Tile Script:

public class Tile : MonoBehaviour
{
    [SerializeField] private Color _baseColor, _offsetColor;
    [SerializeField] private SpriteRenderer _renderer;
    [SerializeField] private GameObject _highlight;
    public void Init(bool isOffset)
    {
        _renderer.color = isOffset ? _offsetColor : _baseColor;
    }
    void OnMouseEnter()
    {
        _highlight.SetActive(true);
    }
    void OnMouseExit()
    {
        _highlight.SetActive(false);
    }
}

A comment under that video by the youtuber that made the video said : “NOTICE: If you’re having trouble seeing your tiles, ensure your sprite renderers alpha are set to 255. Sometimes it defaults to 0.”

Have you tried that?