---
title: "converted(to:intent:options:)"
framework: coregraphics
role: symbol
role_heading: Instance Method
path: "coregraphics/cgcolor/converted(to:intent:options:)"
---

# converted(to:intent:options:)

Creates a new color in a different color space that matches the provided color.

## Declaration

```swift
func converted(to _: CGColorSpace, intent: CGColorRenderingIntent, options: CFDictionary?) -> CGColor?
```

## Parameters

Parameters Returns A new color in the destination color space that matches (or closely approximates) the source color. Discussion To create the new color, this method creates a CFColorConverterRef using the options you specified and applies it to the source color.

## See Also

### Converting Between Color Spaces

- [conversionTRCSize](coregraphics/cgcolor/conversiontrcsize.md)
