Design Studio
Colour Converter
Type any colour value, or pick one, and see it in HEX, RGB, HSL, HWB and CMYK at once, with a swatch and a copy button for each format. It reads 3, 4, 6 and 8 digit hex, rgb() and hsl() functions in comma or space syntax, hwb(), cmyk() and basic colour names, and keeps transparency where the format supports it. The CMYK values are the standard mathematical conversion from screen colour, not a print profile, so printed results will differ.

How to use it
- Enter a colour, such as #b93c0a, rgb(185 60 10) or hsl(17 90% 38%), or use the picker.
- Check the swatch to confirm it is the colour you meant.
- Copy the format you need.
Example
#b93c0a is rgb(185, 60, 10), hsl(17, 90%, 38%), hwb(17 4% 27%) and cmyk(0%, 68%, 95%, 27%).
Which format should a website use?
Any of them works in CSS. HEX is compact and familiar. HSL is easier to adjust by hand, since lightness and saturation are separate numbers. Whatever you choose, check text and background pairs with the colour contrast checker.
How the conversions relate
HEX and RGB are the same colour written two ways: #b93c0a is red 185, green 60, blue 10 (B9, 3C and 0A in hexadecimal). HSL and HWB describe it by hue, so that colour is hue 17°, 90% saturation and 38% lightness in HSL, or hue 17° with 4% whiteness and 27% blackness in HWB. Results are rounded to whole numbers, so converting back and forth can move a value by one step.
CMYK is a simple mathematical conversion for reference (here 0%, 68%, 95%, 27%). It is not a print profile: a printer’s inks and paper change the result, so ask the printer for its own colour values when accuracy matters. Converting a colour does not check readability. Text needs enough contrast against its background, which is a separate test.
Questions
Why does my printer show a different colour from the CMYK value?
Screens mix light (RGB) and print mixes ink. The CMYK value here is a simple formula. Real print colour depends on the inks, the paper and the colour profile the printer uses, so ask your printer for a profile conversion for final artwork.
What is HWB?
Hue, whiteness, blackness: a way to describe a colour as a hue with white or black mixed in. It is valid in modern CSS as hwb().
Which colour formats can I paste?
HEX with 3, 4, 6 or 8 digits, rgb() and rgba(), hsl() and hsla(), hwb(), cmyk() with percentages or fractions, and basic named colours such as navy or teal.
Are 8-digit hex colours supported?
Yes. The last two digits are the alpha (opacity). When a colour has transparency, the RGB, HSL and HWB outputs include it.
Is anything sent to a server?
No. All conversion happens in your browser.
Get practical SEO tips by email
Occasional emails with new guides and tools. Confirm by email first; unsubscribe in one click.