Color Converter
Convert colours between HEX, RGB, HSL, HSV and CMYK and copy each value. Tested with names, short hex, 8-digit hex, out-of-range values and unsupported inputs.
| HEX | #4F46E5 | |
| RGB | rgb(79, 70, 229) | |
| HSL | hsl(243, 75%, 59%) | |
| HSV | hsv(243, 69%, 90%) | |
| CMYK | cmyk(66%, 69%, 0%, 10%) |
About Color Converter
The Color Converter shows any colour as HEX, RGB, HSL, HSV and CMYK at once, each with a Copy button. Type a code, a colour name, or use the picker.
Example
#4F46E5 is rgb(79, 70, 229), hsl(243, 75%, 59%) and cmyk(66%, 69%, 0%, 10%).
Which notation?
HEX and RGB are used in CSS and design tools. HSL is easiest to adjust, because hue, saturation and lightness are separate. CMYK is a print starting point; ask your printer for exact values.
Transparency
Eight-digit hex codes keep their alpha, shown as rgba.
Forgiving input
Values out of range, like rgb(300,0,0), are clamped to the nearest valid colour.
What you can type
HEX, RGB, HSL and colour names. CMYK and HSV are shown as results but cannot be typed in.
Private
Everything runs in your browser. Nothing you paste is uploaded.
RGB, CMYK and HEX
RGB mixes red, green and blue light for screens. HEX is the same RGB value written as six hex digits, as used in CSS. CMYK mixes cyan, magenta, yellow and black ink for print.
Can I use HEX for printing?
Printers work in CMYK, so convert first and ask your printer for a proof; bright screen colours may look duller on paper.
How to use Color Converter
- Type a colour as a hex code, rgb(), hsl() or CSS name, or pick one with the colour picker.
- Read the HEX, RGB, HSL, HSV and CMYK values.
- Press Copy next to the value you need.
- For a colour in CMYK or HSV, convert it to RGB first, because those are not accepted as input.
Help & FAQ
Which formats can we type?
A hex code (3, 6 or 8 digits), rgb(), hsl() and CSS colour names such as red or tomato.
Which formats does it show?
HEX, RGB, HSL, HSV and CMYK.
Can we enter CMYK or HSV?
No. Those are output only. The tool answered Could not understand that color.
What does an 8-digit hex code mean?
The last two digits are the alpha (transparency). #12345678 gave rgba(18, 52, 86, 0.47).
Why was rgb(300,0,0) accepted?
The tool clamps channel values to 255, as browsers do, and showed #FF0000.
Is the CMYK value suitable for printing?
No. It is a simple mathematical conversion. Real printing depends on the printer, paper and profile.
How do we find the hex code of a named colour?
Type the name. tomato gave #FF6347.
What is the difference between HSL and HSV?
HSL uses lightness, HSV uses value (brightness). The same colour has different saturation and third numbers in each.
How is CMYK black calculated?
1 minus the largest RGB channel as a fraction. #4F46E5 gave 10%.
Can we copy a value?
Yes. Each format has a Copy button.
Does it check contrast?
No. Use the Contrast Checker.
Is our data uploaded?
No. The conversion runs in your browser.