---
title: Color.RGBColorSpace.sRGB
framework: swiftui
role: symbol
role_heading: Case
path: swiftui/color/rgbcolorspace/srgb
---

# Color.RGBColorSpace.sRGB

The extended red, green, blue (sRGB) color space.

## Declaration

```swift
case sRGB
```

## Discussion

Discussion For information about the sRGB colorimetry and nonlinear transform function, see the IEC 61966-2-1 specification. Standard sRGB color spaces clamp the red, green, and blue components of a color to a range of 0 to 1, but SwiftUI colors use an extended sRGB color space, so you can use component values outside that range.

## See Also

### Getting color spaces

- [Color.RGBColorSpace.sRGBLinear](swiftui/color/rgbcolorspace/srgblinear.md)
- [Color.RGBColorSpace.displayP3](swiftui/color/rgbcolorspace/displayp3.md)
