# operator ==(Color, Color)

> Returns true if two Colors are approximately equal.

## Definition

* **Type:** Operator
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static bool operator ==(Color lhs, Color rhs)
```

### Parameters

**** (\[Color]\(/engine/6000.5/script-reference/unityengine/color)): **** (\[Color]\(/engine/6000.5/script-reference/unityengine/color)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

### Remarks

To allow for floating point inaccuracies, the two Colors are considered equal if the magnitude of their difference is less than 1e-5. If you want an exact equality check, use Color.Equals().
