Huewell

Color converter

Type or paste a colour in any format: HEX, RGB, HSL, HSV, CMYK, OKLCH or a CSS name like tomato. Every other format updates as you type.

Try:

    Which colour format should I use?

    • HEX (#1E90FF) is the shortest way to write an sRGB colour and the default in most design tools. Each pair of characters is red, green and blue from 00 to FF (0–255).
    • RGB (rgb(30 144 255)) is the same thing in decimal, which is easier to tweak by hand.
    • HSL (hue, saturation, lightness) is handy for making variations: keep the hue, nudge lightness for hover states. Its "lightness" is not how bright a colour looks, though: yellow and blue at 50% lightness look very different.
    • HSV / HSB (hue, saturation, value/brightness) is what Photoshop, Figma and most colour pickers show.
    • CMYK is for print. The values here are a simple formula, not a printer profile; your print shop's software will convert with the exact profile for their press.
    • OKLCH (oklch(65% 0.2 250)) is the modern CSS format: lightness that matches what you see, chroma for colourfulness, and hue. It works in all current browsers and is the best choice for building colour scales.

    How the conversions work

    HEX, RGB, HSL and HSV are different ways of writing the same sRGB numbers, so converting between them is exact (apart from rounding). OKLCH and OKLab go through linear light using Björn Ottosson's published matrices, the same maths the CSS Color 4 spec uses. If you type an OKLCH colour that is too vivid for an sRGB screen, Huewell keeps its lightness and hue and reduces chroma until it fits, as browsers do.

    Accepted input

    3-, 6- and 8-digit hex (with or without #), rgb() with commas or spaces or percentages, hsl(), hsv()/hsb(), cmyk() as percentages or 0–1, oklch(), oklab(), three bare numbers like 12, 34, 56, and all 148 CSS colour names.

    Questions

    How do I convert HEX to RGB?

    Split the six digits into three pairs and convert each from base 16: #1E90FF → 1E, 90, FF → 30, 144, 255. Paste any hex code above and the RGB value appears instantly.

    Why is the CMYK different from my print software?

    Real CMYK depends on the ink, paper and press, so professional tools use ICC colour profiles. The formula here is the standard device-independent approximation, which is fine for a starting point.

    What is OKLCH and should I use it?

    OKLCH is a perceptual colour space supported in CSS. Changing its lightness changes how light a colour looks, evenly across hues, which makes it great for design systems. All major browsers support it.

    Does the converter handle transparency?

    You can paste 8-digit hex or rgba() values; the colour is converted and the alpha part is ignored in the outputs.

    Is the decimal value useful?

    Some apps and games store colours as one integer (red×65536 + green×256 + blue). That is the decimal shown.

    More colour tools

    Palette generatorPress Space for balanced colour schemes, lock the ones you like.Contrast checkerWCAG 2.2 AA/AAA and APCA, with fixes that pass.Image colour pickerPick colours and the main palette from any photo.CSS gradient generatorLinear, radial and conic gradients with CSS code.Tints & shadesLighter and darker versions, plus a 50–950 scale.Colour blindness simulatorSee palettes and images as people with CVD do.Colour name finderName any colour from nearly 1,000 names.Colour harmonyComplementary, triadic, analogous and more.Colour mixerBlend two colours and see the in-between steps.