# operator -(Color, Color)

> Subtracts color b from color a. Each component is subtracted separately.

## Definition

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

```csharp
public static Color operator -(Color a, Color b)
```

### Parameters

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

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [Color](/engine/6000.7/script-reference/unityengine/color.md) |             |

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        Color redColor = Color.magenta - Color.blue;
    }
}
```
