हिं हिन्दी

    Colour converter (HEX, RGB, HSL, CMYK)

    Convert colours between HEX, RGB, HSL, HWB and CMYK.

    Calculated in your browser. Nothing is sent anywhere.

    About this tool

    This tool converts a colour between HEX, RGB, HSL, HWB and CMYK and shows a swatch of it. Type a value in any of those formats, a CSS name such as tomato, or shorthand like f60, or use the colour picker, and copy whichever format you need.

    At a glance

    What it does
    Convert colours between HEX, RGB, HSL, HWB and CMYK.
    Price
    Free, no sign-up
    Works in
    Your browser, on phone or computer. Works offline after the first visit.
    Privacy
    What you type never leaves your device.

    How to convert a colour code

    1. Type a colour (for example #4f46e5, rgb(79, 70, 229) or hsl(243, 75%, 59%)) or use the picker.
    2. Check the swatch.
    3. Press Copy next to the format you need.

    Private

    Your text stays in your browser and is never sent to a server.

    Instant

    Results update as you type, with nothing to install.

    Free

    No sign-up, no limits and no ads inside your writing space.

    Frequently asked questions

    How do I convert HEX to RGB?

    Split the six digits into three pairs and convert each from base 16. For #FF6600: FF = 255, 66 = 102, 00 = 0, so it is rgb(255, 102, 0).

    Is the CMYK value exact for printing?

    No. It uses the simple mathematical conversion from RGB. Real print colours depend on the printer, paper and ICC profile, so ask your printer for a proof for brand colours.

    Does it support transparency?

    Yes. Values like rgb(0 0 0 / 50%), hsla() or 8-digit HEX (#00000080) keep their alpha in every format.

    What is HWB?

    HWB means hue, whiteness and blackness. It is a CSS colour format that is easy to reason about: start from a pure hue, then mix in white or black.