TR

Home / Convert / Color Code Converter (HEX, RGB, HSL, CMYK)

🎨 Color Code Converter (HEX, RGB, HSL, CMYK)

Color Code Converter (HEX, RGB, HSL, CMYK) – get instant, free results right on your device.

WhatsAppTelegramX

The CMYK value is an approximation calculated from the screen color; it may differ in print depending on the color profile. Not an official institution.

Last updated: November 2026 · Parameter year: 2026 · Methods and sources: Methodology · Editorial policy

What is Color Code Converter (HEX, RGB, HSL, CMYK)?

In web design, a color can be written in different formats: HEX (#0B7A6B), RGB (rgb(11, 122, 107)), HSL (hsl(172, 83%, 26%)), and CMYK in the print world. The format you copy from a design tool and the one you want to use in your CSS file are often different.

This tool accepts HEX, RGB, or HSL input and shows all four formats at once. RGB channels range from 0 to 255; HSL gives the hue (0-360 degrees), saturation, and lightness as percentages. Designers often prefer HSL because it makes it easy to adjust the light and dark shades of a color by hand.

The CMYK value is derived mathematically from the screen color. Because the paper and color profile used in real printing can change the result, you should get approval from the print shop for printed work. The value you enter is not sent to a server.

How to use

Fill in these fields: Color or hsl). Then press the button; the result appears on the same page and your data never leaves your device.

Formula

#0B7A6B = rgb(11, 122, 107) = hsl(172, 83%, 26%)

Example

#0B7A6B = rgb(11, 122, 107) = hsl(172, 83%, 26%)

Worked examples and tips

Example 1: For the input #0B7A6B, the tool gives rgb(11, 122, 107) as RGB, hsl(172, 83%, 26%) as HSL, and cmyk(91%, 0%, 12%, 52%) as CMYK. When you want to use the HEX code you took from a design file in CSS with HSL, lightening and darkening the tone becomes very easy.

Example 2: If you enter rgb(255,87,51), the HEX equivalent is #FF5733, the HSL equivalent is hsl(11, 100%, 60%), and the CMYK equivalent is cmyk(0%, 66%, 80%, 0%). The input hsl(210,50%,40%) converts to the code #336699 and the value rgb(51, 102, 153).

Example 3: The three-digit short form is also accepted; the input #FFF becomes #FFFFFF, rgb(255, 255, 255), and hsl(0, 0%, 100%), and the CMYK value comes out as cmyk(0%, 0%, 0%, 0%). In short codes, think of each digit as written twice.

Tips and common mistakes: The CMYK value here is calculated with a simple mathematical conversion; it will not come out exactly the same as a result with the ICC profile used at a print shop. For print work, ask your printer for a color profile. The color you see on screen varies with your monitor settings. In HSL, hue is in degrees and saturation and lightness are percentages; do not write the percentages as if they were in a 0-1 range.

Frequently asked questions

Color Code Converter (HEX, RGB, HSL, CMYK) – how to use it?

Fill in the fields and press the button; the result appears instantly. Example: #0B7A6B = rgb(11, 122, 107) = hsl(172, 83%, 26%)

Color Code Converter (HEX, RGB, HSL, CMYK) – is it free, and is my data stored?

Yes, it is free and requires no sign-up. Because processing happens in your browser, the information you enter is not sent to a server.

Related guide

Related tools

📏Kilometers ↔ Miles ConverterConvert kilometers to miles and miles to kilometers.🌡️Celsius ↔ Fahrenheit ConverterConvert temperature between Celsius and Fahrenheit.🐎kW ↔ HP ConverterConvert engine power between kW and horsepower (PS).🎨HEX ↔ RGB ConverterConvert a color code between HEX and RGB.⚖️Weight ConverterWeight Converter – get instant, free results right on your device.📏Length ConverterLength Converter – get instant, free results right on your device.