<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSColor/magenta",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSColor(cpy)magentaColor"
  },
  "title" : "magenta"
}
-->

# magenta

Returns a color object whose RGB value is `1.0`, `0.0`, `1.0` and whose alpha value is `1.0`.

```
class var magenta: NSColor { get }
```

## Return Value

The `NSColor` object.

## See Also

[`magentaComponent`](/documentation/AppKit/NSColor/magentaComponent)

The magenta component value of the color.



---

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)