<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIFilter-swift.class/sepiaTone()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Image",
      "CoreImage"
    ],
    "preciseIdentifier" : "c:objc(cs)CIFilter(cm)sepiaToneFilter"
  },
  "title" : "sepiaTone()"
}
-->

# sepiaTone()

Adjusts an image’s colors to shades of brown.

```
class func sepiaTone() -> any CIFilter & CISepiaTone
```

## Return Value

The modified image.

## Discussion

This method applies the sepia tone filter to an image. The effect maps the colors of the `inputImage` to various shades of brown.

The sepia tone filter uses the following property:

- `inputImage`: An image with the type [`CIImage`](/documentation/CoreImage/CIImage).

The following code creates a filter that results in the input image transforming to a brown hue:

```swift
func sepiaTone(inputImage: CIImage ) -> CIImage {
    let sepiaToneFilter = CIFilter.sepiaTone()
    sepiaToneFilter.inputImage = inputImage
    sepiaToneFilter.intensity = 1
    return sepiaToneFilter.outputImage!
}
```

![Two pictures of a pink flower surrounded by foliage. The photo on the left shows a single flower photographed close-up, in focus, with good light and no effects. In the photo on the right, a photo effect sepia tone filter is applied, transforming the colors in the image to a brown hue. ](images/com.apple.coreimage/media-3545028@2x.png)

---

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)