Color Lab

Pick a color.
Learn what's really happening.

A free online color picker and HTML color chooser: drag to choose any color and copy its HEX, RGB, HSL, HSB (HSV) and CMYK color code for your HTML and CSS. Built for web developers, designers and students.

Pick a color

Drag inside the square, then slide the rainbow bar to change hue.

Bright Yellow Nearest: Yellow

The same color, five ways

Search a color name or code — or type into any field below.

What do these mean?
HEX — how browsers and CSS store color, base-16 shorthand for RGB.
RGB — how screens make color, by mixing red, green and blue light.
HSL — Hue, Saturation, Lightness. Built for humans: easy to make a color "lighter" or "more muted."
HSV — Hue, Saturation, Value. What most color pickers use — Value is closer to "how bright is the light source."
CMYK — Cyan, Magenta, Yellow, Key (black). How printers mix ink instead of light.

Shades

From white (100%) to black (0%) — tap any row to copy its hex.

Questions people ask

Quick answers for web developers, designers and students.

How do I get an HTML color code?

Drag inside the square, slide the rainbow bar to change the hue, then copy the HEX code from the HEX field. Paste it into your HTML or CSS like this:

p { color: #3A86FF; }
What is an HSB color picker?

HSB, also written HSV, stands for Hue, Saturation and Brightness (Value). This picker shows HSB together with HSL, RGB, HEX and CMYK, so you can choose a color by hue, saturation and brightness and copy whichever format you need.

Which color format should I use in CSS?

HEX, rgb() and hsl() all work in every browser. HEX is the shortest. RGB is handy when you need transparency, for example rgb(58 134 255 / 50%). HSL is the easiest to make a color lighter, darker or more muted.

What is the difference between RGB and CMYK?

RGB mixes red, green and blue light and is used on screens and in HTML and CSS. CMYK mixes ink and is used in print. A color can look a little different when printed, so use CMYK values as a guide.

Can I pick a color from an image?

Yes. Open the Image Color Picker, choose a photo and click any spot to get its HEX, RGB and HSL code.

How do I use this HTML color chooser?

Drag inside the square to choose the shade, slide the rainbow bar to choose the hue, and copy the color code you need. Every format (HEX, RGB, HSL, HSB and CMYK) is shown together, so there is no need to convert.

Is this a hex color picker?

Yes. It works as a hex code color picker, a hexadecimal color selector and an RGB color picker. Type a HEX code to see the color, or pick a color to get its HEX code.

Is there a color wheel picker?

Yes. Use the Color Wheel to pick a color and see the colors that match it.