---
title: "RGB To CMYK Without Color Management"
canonical: https://www.graphicsmill.com/samples/ColorManagement/ConvertingColorValues/RgbToCmykWithoutColorManagement_cs
product: "Graphics Mill"
source: "ColorManagement/ConvertingColorValues/RgbToCmykWithoutColorManagement.cs"
---

# RGB To CMYK Without Color Management

Converts a color specified in RGB color space to CMYK color space without using color management.

## Instruction

Write a C# program that converts an RGB color (R=253, G=202, B=12) to CMYK color space without color management using the CmykColor constructor that accepts RgbColor, performing a simple mathematical conversion without ICC profiles or transformation intents, then displays the result using Console.WriteLine.

## Usings

```csharp
using System;
```

## Code Snippet

```csharp
RgbColor rgbColor = new RgbColor(253, 202, 12);
CmykColor cmykColor = new CmykColor(rgbColor);

Console.WriteLine("Without color management: {0} to {1}", rgbColor, cmykColor);
```

## Explanation

Below is a C# code sample that performs RGB to CMYK conversion without color management:

The code demonstrates basic RGB to CMYK conversion using the CmykColor constructor that accepts an RgbColor parameter, applying a simple mathematical formula (typically CMYK = 1 - (RGB / 255) for each channel with black key calculation) without any ICC profile involvement or color space transformation. This approach produces device-dependent results unsuitable for professional printing but useful for quick approximations or when color management is unavailable.

## Tags

- [Color Conversion](<https://www.graphicsmill.com/samples/tags/color-conversion_md>): Converting colors between color spaces

## Output

- [RgbToCmykWithoutColorManagement.txt](<https://www.graphicsmill.com/samples/ColorManagement/compiled/Debug/RgbToCmykWithoutColorManagement_txt>) (preview)

## Used APIs

- [Aurigma.GraphicsMill.CmykColor](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_CmykColor.htm.md>)
