HEX to everything
Converting #3b82f6 shows rgb(59, 130, 246), hsl(217, 91.2%, 59.8%), hsv(217, 76.0%, 96.5%) and cmyk(76%, 47%, 0%, 4%), all from the same colour.
Convert colors between HEX, RGB, HSL, HSV and CMYK instantly — free online color converter.
About
Takes a colour typed in almost any CSS format — HEX, rgb(), hsl(), or a named colour like "tomato" — or picked visually with the colour swatch, and converts it into HEX, RGB, HSL, HSV and CMYK all at once, plus its relative luminance and whether black or white text reads better on top of it.
Designers use it to translate a colour from a design tool's HSL value into the HEX code a developer needs, while developers use it to check whether a background colour needs light or dark text on top for readability. It's one of many free designer tools on Toolapt, and like every tool here, it's free to use with no sign-up and no limit on how many times you run it.
Examples
4 worked examples
Converting #3b82f6 shows rgb(59, 130, 246), hsl(217, 91.2%, 59.8%), hsv(217, 76.0%, 96.5%) and cmyk(76%, 47%, 0%, 4%), all from the same colour.
Typing "tomato" converts to #FF6347, or rgb(255, 99, 71).
Typing rgb(34, 197, 94) converts to #22C55E, a common shade of green.
Converting #111827 shows a relative luminance of 0.009 and recommends white text, since the colour is very dark.
FAQ
Quick answers to common questions about the Colour Converter.
It converts a colour you type or pick into HEX, RGB, HSL, HSV and CMYK all at once, plus its relative luminance and the best text colour to use on top of it.
Yes. It's free, with no sign-up, no watermark and no limit on how many times you use it.
Yes. The colour you enter is processed entirely on your own device — nothing is sent to a server.
HEX codes (with or without a leading #), rgb()/rgba() values, hsl() values, and any named CSS colour your browser recognizes, such as "tomato" or "steelblue".
It's based on the colour's relative (WCAG-style) luminance — above a threshold, black text is recommended; below it, white text is recommended, for the best general readability.
Yes. If you enter an rgba() or an 8-digit HEX with an alpha channel, the RGB output reflects that transparency and the swatch preview shows it against the page background.
Yes. The page is fully responsive and works on mobile, tablet and desktop browsers alike.
It relies on your browser to parse the colour you type, so any format your browser's CSS engine recognizes will work; anything it doesn't recognize will show a message instead of a result.
Did Colour Converter work for you?