<!--
{
  "availability" : [
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSColorSpace/availableColorSpaces(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSColorSpace(cm)availableColorSpacesWithModel:"
  },
  "title" : "availableColorSpaces(with:)"
}
-->

# availableColorSpaces(with:)

Returns the list of color spaces available on the system that are displayed in the color panel, in the order they are displayed in the color panel.

```
class func availableColorSpaces(with model: NSColorSpace.Model) -> [NSColorSpace]
```

## Parameters

`model`

The model to return the color spaces for.

## Return Value

The list of color spaces, or an empty array if no color spaces are available for the specified model.

## Discussion

This method doesn’t return color spaces created on the fly or spaces without user-displayable names. Pass [`NSUnknownColorSpaceModel`](/documentation/AppKit/NSUnknownColorSpaceModel) as `model` to get all available color spaces.

---

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)