Color Picker

Pick a colour, get every code for it. Click the colour box, type a hex code, or move the RGB sliders — and this free color picker instantly shows the HEX, RGB, HSL and HSV values, ready to copy into your website, design or document. Free, with no sign-up.

Preset colours:
Colour codes:
HEX#1E90FF
RGBrgb(30, 144, 255)
HSLhsl(210, 100%, 56%)
HSVhsv(210, 88%, 100%)

About This Color Picker

Every colour on a screen is just three numbers — how much red, how much green, how much blue — but different tools want those numbers written in different ways. A website stylesheet wants a hex code like #1E90FF. A design app might show RGB sliders. A colour palette might list HSL so you can build lighter and darker shades. This free color picker gives you all of them at once: pick a colour with the colour box, type a hex code, move the RGB sliders, or tap a preset swatch, and the HEX, RGB, HSL and HSV codes update instantly, each with its own Copy button.

Everything runs in your browser, with no sign-up and nothing uploaded. In Chrome and Edge you can even click Pick from Screen and grab the exact colour of any pixel on your screen with the eyedropper.

How to Use It

  1. Click the colour box and pick a colour, or type a hex code such as #1E90FF and click Apply.
  2. Or move the red, green and blue sliders to mix the colour by hand.
  3. Or tap a preset swatch to jump straight to a common colour.
  4. Read the HEX, RGB, HSL and HSV codes under the preview.
  5. Click a Copy button to copy the code you need into your CSS, design or document.

HEX, RGB, HSL and HSV Explained

All four codes describe the same colour; they just suit different jobs. HEX packs the red, green and blue values into six characters — #1E90FF means red 1E (30), green 90 (144), blue FF (255) — and it is the code CSS and most design tools expect. RGB writes the same three numbers out in full, from 0 to 255 each. HSL describes a colour the way people talk about it: a hue around the colour wheel (0° red, 120° green, 240° blue), how saturated it is, and how light it is — perfect for making a hover state 10% darker. HSV is HSL's close cousin, using brightness (value) instead of lightness, and it matches the colour pickers in many design apps.

Popular Colours and Their Codes

Try these in the picker above to see all four codes for each one:

ColourHEXRGBHSL
Dodger Blue#1E90FFrgb(30, 144, 255)hsl(210, 100%, 56%)
Orange#FFA500rgb(255, 165, 0)hsl(39, 100%, 50%)
Gold#FFD700rgb(255, 215, 0)hsl(51, 100%, 50%)
Violet#7C3AEDrgb(124, 58, 237)hsl(262, 83%, 58%)
Deep Navy#123456rgb(18, 52, 86)hsl(210, 65%, 20%)
Medium Grey#808080rgb(128, 128, 128)hsl(0, 0%, 50%)

Worked Example: Converting Hex to RGB

Suppose a brand guideline gives you the hex code #7C3AED and your tool asks for RGB. Split the hex code into three pairs: 7C, 3A and ED. Convert each pair from hexadecimal to decimal: 7C is 124, 3A is 58, and ED is 237. So #7C3AED is rgb(124, 58, 237) — exactly what the converter above shows when you type the code in. Short hex codes work the same way with each digit doubled: #F00 becomes #FF0000, which is rgb(255, 0, 0), pure red.

Tips for Choosing Colours That Work

  • Check contrast for text. Light grey text on white looks elegant and reads terribly. Keep body text dark on light (or light on dark) so everyone can read it.
  • Use HSL for shades. To make a darker version of a colour for a button hover, keep the hue and saturation and lower the lightness by about 10%.
  • Stick to a small palette. Two or three main colours plus neutrals (white, greys, near-black) look more professional than ten competing colours.
  • Copy the exact code, not a screenshot. A screenshot's colour shifts with compression; the HEX code is the colour, exactly, every time.

Who Is This Tool For?

  • Web designers and developers — grab HEX, RGB and HSL codes for CSS without opening a heavy design app.
  • Students — learn how hex codes and RGB values relate, with instant conversions to check your maths.
  • Content creators — match thumbnail, poster and social-media colours to your brand palette exactly.
  • Anyone matching a colour — find the code for a colour in a logo, photo or paint chart and reuse it anywhere.

Frequently Asked Questions

Click the colour box to open your browser's colour picker and choose a colour, type a hex code such as #1E90FF and click Apply, move the red, green and blue sliders, or tap one of the preset swatches. The preview and all four codes — HEX, RGB, HSL and HSV — update instantly, and each code has its own Copy button.

Type or paste the hex code into the hex box and click Apply. The RGB value appears below the preview — for example, #1E90FF converts to rgb(30, 144, 255). Short hex codes work too: #F00 is read as #FF0000, which is rgb(255, 0, 0).

They are four ways of writing the same colour. HEX (#1E90FF) is the code used in CSS and most design tools. RGB (rgb(30, 144, 255)) gives the red, green and blue amounts from 0 to 255. HSL describes the colour by hue, saturation and lightness, which is handy for making lighter or darker versions. HSV uses hue, saturation and value (brightness) and matches how many design apps pick colours.

Click the Pick from Screen button and your browser's eyedropper lets you click any pixel on your screen to grab its colour. The eyedropper works in Chrome and Edge; in other browsers, use the colour box or type the hex code instead.

Screens and printers show colour differently: screens mix red, green and blue light (RGB), printers mix cyan, magenta, yellow and black ink (CMYK), and every screen is calibrated a little differently. The codes here are exact for screens and websites; for print, ask your printer for a CMYK proof of important colours.

No. The colour conversion happens locally in your browser and nothing is uploaded, stored or logged.

Related Tools