---
title: "==(_:_:)"
framework: swiftui
role: symbol
role_heading: Operator
path: "swiftui/color/==(_:_:)"
---

# ==(_:_:)

Indicates whether two colors are equal.

## Declaration

```swift
static func == (lhs: Color, rhs: Color) -> Bool
```

## Parameters

- `lhs`: The first color to compare.
- `rhs`: The second color to compare.

## Return Value

Return Value A Boolean that’s set to true if the two colors are equal.

## See Also

### Comparing colors

- [hash(into:)](swiftui/color/hash(into:).md)
