---
title: "init(red:green:blue:)"
framework: coreimage
role: symbol
role_heading: Initializer
path: "coreimage/cicolor/init(red:green:blue:)"
---

# init(red:green:blue:)

Create a Core Image color object in the sRGB color space with the specified red, green, and blue component values.

## Declaration

```swift
convenience init(red: CGFloat, green: CGFloat, blue: CGFloat)
```

## Parameters

- `red`: The color’s unpremultiplied red component value between 0 and 1.
- `green`: The color’s unpremultiplied green component value between 0 and 1.
- `blue`: The color’s unpremultiplied blue component value between 0 and 1.

## Return Value

Return Value  An autoreleased CIColor instance.

## Discussion

Discussion On macOS before 10.10, the CIColor’s color space will be Generic RGB.

## See Also

### Creating Color Objects

- [init(string:)](coreimage/cicolor/init(string:).md)
- [init(red:green:blue:colorSpace:)](coreimage/cicolor/init(red:green:blue:colorspace:)-2og6y.md)
- [init(red:green:blue:alpha:colorSpace:)](coreimage/cicolor/init(red:green:blue:alpha:colorspace:)-5mvff.md)
