Skip to content
ColorsGuide

RGB to CMYK converter

Enter a RGB value such as rgb(38 70 83) to convert it to CMYK. Every other format is shown too, and the result updates as you type.

Example paletteUsed until you create or choose your own

Detected RGB.

Examples: #1e90ff, rgb(30 144 255 / 50%), hsl(210 100% 56%), oklch(0.65 0.18 255), cmyk(88% 44% 0% 0%), tomato

Name
Dark greyish azure(descriptive)
Alpha
100%
Relative luminance
0.0542
Perceived lightness (OKLCH L)
37.5%
Contrast on white
10.08:1
Contrast on black
2.08:1

See shades, harmonies and palettes for #264653

Converted values

  • HEX#264653
  • RGBrgb(38 70 83)
  • HSLhsl(197.3 37.2% 23.7%)
  • HSV / HSBhsv(197.3 54.2% 32.5%)
  • HWBhwb(197.3 14.9% 67.5%)
  • OKLCHoklch(37.53% 0.0438 226.2)
  • OKLABoklab(37.53% -0.0303 -0.0316)
  • CIELABlab(27.7% -9.13 -11.69)
  • CMYKcmyk(54% 16% 0% 67%)

CMYK is a naive, device-independent approximation. Real print colours depend on the ink, paper and ICC profile your printer uses, so ask your printer for a proofed conversion. HSV/HSB is not a CSS format and is shown for design apps. CIELAB uses the D50 white point, as in CSS lab().

How to convert RGB to CMYK

  1. Divide R, G and B by 255.
  2. K = 1 − max(R, G, B).
  3. C = (1 − R − K) ÷ (1 − K), M = (1 − G − K) ÷ (1 − K), Y = (1 − B − K) ÷ (1 − K).
  4. Multiply by 100. For accurate print colour, convert with the press profile in your design software.

About RGB

RGB gives the same three sRGB channels as decimal numbers from 0 to 255 (or 0–100%). Modern CSS writes rgb(255 87 51 / 50%) with spaces and a slash before the alpha; the older comma form rgba(255, 87, 51, 0.5) still works everywhere.

About CMYK

CMYK gives the cyan, magenta, yellow and black ink percentages used in four-colour printing. A conversion from screen colours without an ICC profile is only an approximation; printers use profiles for the specific press and paper.

Examples

SwatchRGBCMYK
rgb(255 255 255)cmyk(0% 0% 0% 0%)
rgb(0 0 0)cmyk(0% 0% 0% 100%)
rgb(255 0 0)cmyk(0% 100% 100% 0%)
rgb(0 168 107)cmyk(100% 0% 36% 34%)
rgb(30 144 255)cmyk(88% 44% 0% 0%)
rgb(255 215 0)cmyk(0% 16% 100% 0%)
rgb(128 0 128)cmyk(0% 100% 0% 50%)
rgb(255 127 80)cmyk(0% 50% 69% 0%)
rgb(112 128 144)cmyk(22% 11% 0% 44%)
rgb(245 245 220)cmyk(0% 0% 10% 4%)
rgb(38 70 83)cmyk(54% 16% 0% 67%)
rgb(231 111 81)cmyk(0% 52% 65% 9%)

Other conversions

Was this page useful?