Skip to content

Color Picker

Pick a color, type its hex code or click a spot on a photo to get the same color as HEX, RGB, HSL, HSV and CMYK, ready to copy into CSS or a design app. It also shows the red, green and blue values and the hue, saturation and lightness.

A hex colour as RGB and HSL

Before

#16a34a

A hex code

After

rgb(22, 163, 74) hsl(142, 76%, 36%)

The same colour as RGB and HSL

Pick a color

3 or 6 digit hex, with or without #

Preview

Preset colors

Pick a color from a photo

Color values

Color information

Red:59
Green:130
Blue:246
Hue:217°
Saturation:91%
Lightness:60%

Usage tips

  • Click on the color picker or type a hex value like #3b82f6, 3b82f6 or #fff
  • Use preset colors for quick selection
  • Copy color values in different formats (HEX, RGB, HSL, HSV, CMYK)
  • Drop a photo and click any spot on it to pick that exact color
  • Perfect for web development and design work
  • All color values are automatically calculated

How to pick a colour and get its code

  1. Click the colour square to open your browser's colour picker, or type a hex code such as #3b82f6, 3b82f6 or the short form #fff.
  2. Or start from one of the 18 preset swatches. The preview bar shows the colour large.
  3. To match a colour in a logo or photo, drop the image under Pick a color from a photo and click the spot you want. The arrow keys move the crosshair one step at a time, ten with Shift.
  4. Read the values on the right: HEX, RGB, HSL, HSV and CMYK, then each red, green and blue channel and the hue, saturation and lightness.
  5. Copy the format you need with the button beside it and paste it into your CSS, slides or design tool. To make a QR code in your own colours, use QR Code Generator.

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 from 0 to 255. For #3b82f6, 3b is 59, 82 is 130 and f6 is 246, so the colour is rgb(59, 130, 246). Type the hex code into this tool and the RGB value appears at once.

Sources: W3C, CSS Color Module Level 4

What does a 3-digit hex code mean?

It is a short form where each digit is doubled. #fff is #ffffff (white) and #09c is #0099cc. The tool accepts both, with or without the #, and always shows the 6-digit form.

Sources: W3C, CSS Color Module Level 4

What is HSL and when is it useful?

HSL describes a colour by hue, an angle on the colour wheel from 0 to 360 degrees, saturation from 0% grey to 100% full colour, and lightness from 0% black through 50% pure colour to 100% white. It makes lighter and darker shades of one colour easy: change only the lightness.

Sources: W3C, CSS Color Module Level 4

Why does turning the HSL back into hex give a slightly different colour?

The HSL values here are rounded to whole numbers, so converting them back can be off by one or two in a channel. Copy the HEX or RGB value when you need the exact colour.

Can I pick a colour from my screen or an image?

From an image, yes: drop it under Pick a color from a photo and click a spot. The tool reads that one pixel, so zoom in on photos with grain or shading by moving the crosshair a step at a time. The image is drawn in your browser and never uploaded. For anything else on screen, some desktop browsers, Chrome among them, have an eyedropper in the colour dialog that opens from the colour square.

Will my text colour be readable?

This tool does not measure contrast. WCAG 2.1 asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text, so test your text and background pair with a contrast checker before you use it.

Sources: W3C, WCAG 2.1, success criterion 1.4.3

What is the difference between HSV and HSL?

Both use the same hue angle. HSV, also called HSB, has value instead of lightness: 100% value is the brightest form of the colour, while 100% lightness is always white. Photoshop, Figma and most colour pickers in design apps use HSV, so copy it when you set a colour there by its numbers.

Is the CMYK value ready for print?

It is a good starting point, not a press-ready value. The tool uses the plain formula: K is how far the brightest channel is from full, and C, M and Y make up the rest. Printers use colour profiles that depend on the paper and ink, so the same RGB colour can need different CMYK numbers. For a print job, convert in your design software with the printer's profile, or ask for a proof. Transparency is not supported.