RGB to CMYK Converter

Enter red, green and blue from 0 to 255, or paste a hex code.

RGB → CMYK
#008080teal
HEX#008080
RGBrgb(0, 128, 128)
HSLhsl(180, 100%, 25%)
HSV / HSBhsv(180, 100%, 50%)
CMYKcmyk(100%, 0%, 0%, 50%)
OKLCHoklch(54.3% 0.093 194.8)

Contrast

Aa
4.77:1on white
AAAA largeAAA
Aa
4.40:1on black
AAAA largeAAA

Nearest CSS name

teal#008080Details →

Code

Tailwindbg-[#008080]
SwiftUIColor(red: 0, green: 0.502, blue: 0.502)
AndroidColor.parseColor("#008080")
FlutterColor(0xFF008080)

How do you convert RGB to CMYK?

Divide R, G and B by 255. Black is K = 1 − the largest of the three. Then each ink is C = (1 − R − K) ÷ (1 − K), M = (1 − G − K) ÷ (1 − K) and Y = (1 − B − K) ÷ (1 − K). Multiply by 100 for percentages. Pure black (0, 0, 0) is simply K = 100%.

Example: rgb(0, 128, 128)

StepCalculationResult
R′, G′, B′0/255, 128/255, 128/2550.000, 0.502, 0.502
K1 − max(R′, G′, B′)50%
C(1 − 0.000 − 0.498) ÷ (1 − 0.498)100%
M(1 − 0.502 − 0.498) ÷ (1 − 0.498)0%
Y(1 − 0.502 − 0.498) ÷ (1 − 0.498)0%

So rgb(0, 128, 128) (#008080) is cmyk(100%, 0%, 0%, 50%).

What is the RGB to CMYK formula?

R′ = R ÷ 255, G′ = G ÷ 255, B′ = B ÷ 255
K = 1 − max(R′, G′, B′)
C = (1 − R′ − K) ÷ (1 − K)
M = (1 − G′ − K) ÷ (1 − K)
Y = (1 − B′ − K) ÷ (1 − K)

Is this the CMYK my printer will use?

This converter uses the plain arithmetic formula, which treats CMYK as a simple inversion of RGB. It does not use an ICC color profile, so the numbers are a starting point rather than press-ready values. Programs such as Photoshop and Illustrator convert through the profile set in your color settings (for example a coated or uncoated press profile), take ink limits into account and usually add some black to dark tones, so their CMYK values for the same color will differ. For print work, ask your printer for their profile and convert in your design software.

How do I convert RGB to CMYK in Photoshop or Illustrator?

In Photoshop choose Image › Mode › CMYK Color; in Illustrator choose File › Document Color Mode › CMYK Color. Set the CMYK working space your printer recommends in Edit › Color Settings first, because the result depends on it. This page converts color values; to convert a whole image or PDF, use your design software.

How do I convert HEX to CMYK?

Convert the hex code to RGB first (each pair from base 16 to base 10), then apply the formula above. You can paste a hex code into the converter directly; it shows the CMYK result at the same time.

Common colors in CMYK

HEXRGBCMYKName
#FFFFFF255, 255, 2550, 0, 0, 0white
#0000000, 0, 00, 0, 0, 100black
#FF0000255, 0, 00, 100, 100, 0red
#00FF000, 255, 0100, 0, 100, 0lime
#0000FF0, 0, 255100, 100, 0, 0blue
#FFFF00255, 255, 00, 0, 100, 0yellow
#00FFFF0, 255, 255100, 0, 0, 0aqua
#FF00FF255, 0, 2550, 100, 0, 0fuchsia
#808080128, 128, 1280, 0, 0, 50gray
#FFA500255, 165, 00, 35, 100, 0orange
#800080128, 0, 1280, 100, 0, 50purple
#0080800, 128, 128100, 0, 0, 50teal
#1E90FF30, 144, 25588, 44, 0, 0dodgerblue
#2E8B5746, 139, 8767, 0, 37, 45seagreen
#FF5733255, 87, 510, 66, 80, 0

Formulas checked October 2026 against W3C, CSS Color Module Level 4.

Color names

All color names →

Frequently asked questions

What is pure black in CMYK?

With the formula, rgb(0, 0, 0) is cmyk(0%, 0%, 0%, 100%). Printers often use a “rich black” that adds some C, M and Y; ask your printer for their recipe.

Why is K so high for dark colors?

K is 1 minus the brightest channel, so darker colors get more black and less of the other inks.

Can I convert an image from RGB to CMYK here?

No. This page converts color values. Convert images and PDFs in Photoshop, Illustrator or another program that uses your printer’s ICC profile.

Will my printed color match the screen?

Not always. Bright RGB colors can fall outside what CMYK inks can print. Request a proof from your printer for color-critical work.