Color Converter
Convert colors between HEX, RGB, HSL and CMYK instantly, and copy any format with a single click.
Privacy: This tool runs entirely in your browser. Your data never leaves your device and is never uploaded to any server.
Edit any field (press Enter or click away) and the other formats update instantly. Alpha is not included.
How to use this color converter
- Type a value into any field — HEX, RGB, HSL or CMYK.
- The other formats update instantly as you type.
- Copy any representation with a single click.
- Conversion is plain arithmetic, done locally in your browser.
Reading a colour in each model
The same colour, described four ways. Most of the work in a converter is translating between these four mental models.
| Model | Components | Range | Typical use |
|---|---|---|---|
| HEX | Red, green, blue | 00 to FF each | CSS, design tools, brand guides |
| RGB | Red, green, blue | 0 to 255 each | Screens, canvas, image data |
| HSL | Hue, saturation, lightness | 0-360, 0-100%, 0-100% | Choosing and tweaking colours |
| CMYK | Cyan, magenta, yellow, black | 0 to 100% each | Printing and ink |
What the four color models mean
- HEX — hexadecimal notation for RGB, used throughout CSS and design tools.
- RGB — red, green and blue channels from 0 to 255, how screens emit light.
- HSL — hue, saturation and lightness, which matches how people describe colour.
- CMYK — cyan, magenta, yellow and black, the inks a printer mixes.
Screen and print do not match
Screens are additive: they start black and add light. Printers are subtractive: they start white and add ink.
There is no exact conversion between RGB and CMYK, because the colour ranges differ. Treat the CMYK value here as a starting point and always proof a print job physically.
Why designers reach for HSL
Ask for a lighter shade and you want to change one thing. In HSL that is a single number: raise the lightness.
In RGB the same edit means adjusting three channels and guessing. For building a palette or a theme, HSL is usually the better working space.
Frequently asked questions
Which color formats are supported?
HEX, RGB, HSL and CMYK. Editing any field updates the others instantly.
Does it support transparency?
This converter works with solid colors only; the alpha channel is not included.
Is it accurate?
Conversions follow the standard color formulas, with rounding to whole RGB, HSL and CMYK values.
Why does my colour look different when printed?
Screens mix light and printers mix ink, so the two cannot represent the same range of colours. Some vivid screen colours have no ink equivalent at all.
Does the converter handle transparency?
No, it works with solid colours only. For transparency you want an 8-digit HEX value such as #RRGGBBAA, which every current browser supports.
How do I make a colour darker without changing its hue?
Lower the lightness in HSL. Adjusting the RGB channels one at a time shifts the hue as a side effect, which is usually not what you want.
More Color tools
Color Picker
Pick a color with a visual picker or the on-screen eyedropper, and read its HEX, RGB and HSL values plus contrast.
Color Palette Generator
Generate complementary, analogous, triadic and tint/shade palettes from any base color, ready to copy.
Color Contrast Checker
Check the WCAG contrast ratio between any two colours and see whether your text passes AA and AAA.