Skip to content
All tools
English

Color picker and converter

Type a colour in any CSS format, or pick one. Every other format updates instantly and copies with one click.

Runs in your browser, nothing is uploaded

HEX, RGB, HSL, HWB, OKLCH, OKLab or a CSS name.

How to use it

  1. Enter a colour

    Paste #ff5733, rgb(255 87 51), hsl(), oklch() or a name like tomato, or use the picker.

  2. Copy the format you need

    Each row has its own copy button. Values are rounded so they convert back to the same colour.

  3. Grab tints and shades

    The 50–950 scale under the result gives lighter and darker versions with the same hue.

Which colour format should I use?

HEX (#ff5733) is the most compact and what design tools export. RGB says how much red, green and blue light to mix, from 0 to 255 each. HSL describes the same colour as hue (an angle on the colour wheel), saturation and lightness, which is easier to tweak by hand. HSV / HSB is the model Photoshop and Figma pickers use. All four describe exactly the same sRGB colours.

OKLCH is the modern option, supported in every current browser. Its lightness is perceptual: two colours with the same L look equally light, which is not true in HSL (yellow at 50% lightness looks far brighter than blue at 50%). That makes OKLCH the best space for building palettes, and it is how the tint and shade scale on this page is made.

What about CMYK?

The CMYK value here is the simple mathematical conversion. Real print colours depend on the printer, paper and ICC profile, so ask your printer for the exact values before a print run. Use it as a starting point, not a proof.

Colours outside sRGB

OKLCH and OKLab can describe colours that ordinary screens cannot show. If you paste one, we keep its lightness and hue and reduce the chroma until it fits sRGB, then tell you that it was adjusted. HEX, RGB and HSL can only hold sRGB colours.

Next steps

Check that text in your colour is readable with the contrast checker, blend it into a CSS gradient, or use it in a box-shadow.

All colour tools

Frequently asked questions

How do I convert HEX to RGB?
Split the six digits into three pairs and read each pair as a base-16 number: #ff5733 is ff = 255, 57 = 87, 33 = 51, so rgb(255, 87, 51). Paste any HEX code above and the tool does it for you.
Why does my HSL value have decimals?
Whole-number HSL cannot hit every HEX colour exactly. We keep one decimal so that converting back gives the same HEX code you started with.
Does it support transparency?
Yes. Use 8-digit HEX (#ff573380), rgba(), or the slash syntax such as rgb(255 87 51 / 50%). The alpha value is carried into every format that supports it.
Is the colour sent anywhere?
No. Everything runs in your browser and the page has no server code. The colour is kept in the page address only so you can bookmark or share it.