<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGColor/init(genericCMYKCyan:magenta:yellow:black:alpha:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Graphics",
      "CoreGraphics"
    ],
    "preciseIdentifier" : "c:@F@CGColorCreateGenericCMYK"
  },
  "title" : "init(genericCMYKCyan:magenta:yellow:black:alpha:)"
}
-->

# init(genericCMYKCyan:magenta:yellow:black:alpha:)

Creates a color in the Generic CMYK color space.

```
init(genericCMYKCyan cyan: CGFloat, magenta: CGFloat, yellow: CGFloat, black: CGFloat, alpha: CGFloat)
```

## Parameters

`cyan`

A cyan value (`0.0` - `1.0`).

`magenta`

A magenta value (`0.0` - `1.0`).

`yellow`

A yellow value (`0.0` - `1.0`).

`black`

A black value (`0.0` - `1.0`).

`alpha`

An alpha value `(0.0 - 1.0)`.

## Return Value

A color object.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)