Same color is not same color on spriterenderer?

Hello i have i problem with sprtirerender colors. I have the same Color set in the inspector for both gameobjects. But when I am checking the colors in debug.log the colors are not the same anymore. I’m not chaning colors in the code anywhere.

Color goColor = gameObject.GetComponentInChildren<SpriteRenderer>().color;
Debug.Log(gameObject.name +" = "+ goColor);
foreach ( GameObject g in go)
{
Color color = g.GetComponentInChildren<SpriteRenderer>().color;
Debug.Log(g.name + " = " + color);

//Checkar om färgen stämmer överens med sin connection
if (color == goColor)
{
objectConnection = g;
Debug.Log(gameObject.name + "Connectade till: " + g);

}
else
{
//Debug.Log("Hittade inga matchningar");
}
}

Those colors are close enough they are probably identical. In fact, they may be actually identical when each color channel gets stored into the usual hardware 8 bits of an RGBA pixel.

Floating (float) point imprecision:

Never test floating point (float) quantities for equality / inequality. Here’s why:

https://starmanta.gitbooks.io/unitytipsredux/content/floating-point.html

Literal float / double issues: