Color Picker and Color Code Converter

#1a56b0
HEX
#1a56b0
RGB
rgb(26, 86, 176)
HSL
hsl(216, 74%, 40%)
HSV / HSB
hsv(216, 85%, 69%)
CMYK
cmyk(85%, 51%, 0%, 31%)
Contrast on white
6.99:1
Contrast on black
3:1

Tints and shades (click to use)

Everything runs in your browser. Your data never leaves your device.

What this tool does

This colour picker lets you choose a colour visually or by typing a code, and shows it in every common format: HEX, RGB, HSL, HSV and CMYK, each with a copy button. It also shows how well the colour contrasts with white and black, and a row of lighter tints and darker shades you can click to use. It is handy for web design, CSS, presentations and matching brand colours.

How to use it

  1. Click the colour swatch to open your device’s picker, or type a code such as #1a56b0, rgb(26, 86, 176) or hsl(216, 74%, 40%).
  2. Read the codes in the table and press Copy next to the one you need.
  3. Click a tint or shade to switch to it.

How the formats relate

Example: #1a56b0 = rgb(26, 86, 176) = hsl(216, 74%, 40%) = cmyk(85%, 51%, 0%, 31%).

Tips

Tints are made by mixing the colour with white, shades by mixing it with black, in equal steps. A contrast of at least 4.5:1 is needed for readable body text.

Frequently asked questions

How do I convert HEX to RGB?

Type or paste the HEX code, for example

What is the difference between HSL and HSV?

Both describe colour by hue and saturation. HSL adds lightness, where 100% is always white; HSV (also called HSB) adds value or brightness, where 100% is the brightest version of the colour.

Are the CMYK values exact for printing?

They are a standard mathematical conversion. Printers use colour profiles for specific paper and inks, so ask your print shop for exact CMYK values for important work.

Can I pick a colour from anywhere on my screen?

In Chrome and Edge on a computer, press "Pick a colour from the screen". Other browsers do not offer this yet; use the image colour picker with a screenshot instead.

Last updated: · What's new

Related tools