๐ŸŽจ

Color Picker & Converter

Pick a color and convert between HEX, RGB, HSL and CMYK. See tints, shades and WCAG contrast ratio.

Built and maintained by Abdur Rehman ยท Free, no sign-up

Loading Color Picker & Converterโ€ฆ
๐Ÿ”’PrivateRuns in your browser โ€” nothing is uploaded.
โšกFastInstant results, no waiting in queues.
๐Ÿ’ธFreeNo sign-up, no watermark, no limits.
๐Ÿ“ฑAnywhereWorks on phone, tablet and desktop.

How to use the Color Picker & Converter

  1. Pick a color or type a code
  2. Copy it in any format
  3. Check tints, shades and contrast

Every colour format at once

Pick a colour from the swatch or type one โ€” HEX, RGB, HSL or a CSS name like โ€œtealโ€ โ€” and get HEX, RGB, HSL, HSV and CMYK, each with a copy button. You also get 11 tints and shades (click to copy) and the WCAG contrast ratio with white and black text, marked AA or AAA.

Hex to RGB and back

Type either format and copy the other. To convert by hand, split the hex code into pairs and convert each from base 16: #4F46E5 โ†’ 4F = 79, 46 = 70, E5 = 229 โ†’ rgb(79, 70, 229). RGB to hex reverses it. For transparency, add the alpha yourself: rgba(79, 70, 229, 0.5) or the 8-digit hex #4F46E580. CMYK here is a simple conversion โ€” ask your printer for exact print values.

For websites and CSS

The swatch opens your system's colour wheel; in Chrome and Edge on a computer it includes an eyedropper for picking any colour on your screen. Check contrast before using a colour for text: WCAG AA needs 4.5:1 for normal text and 3:1 for large text.

In other apps

  • From a photo โ€” upload it to the Image Color Picker and click any pixel.
  • Photoshop โ€” press I for the Eyedropper; the hex code is in the Color Picker dialog.
  • Canva โ€” click a colour, then the + tile, and paste a hex code.
  • Word โ€” Font Color โ†’ More Colors โ†’ Custom shows RGB and Hex.

Which colour format to use

  • HEX (#4F46E5) is the shortest way to write a screen colour and works everywhere in CSS, HTML and design tools. Three-digit codes are shorthand: #FFF is #FFFFFF.
  • RGB gives the red, green and blue light from 0 to 255. Use it when a program asks for separate numbers, or as rgba() when you need transparency.
  • HSL (hue, saturation, lightness) is the easiest to adjust by hand. Keep the hue and change only the lightness to get lighter and darker versions of a brand colour.
  • HSV (also called HSB) is what the colour pickers in Photoshop and many other apps use.
  • CMYK is for print. The figure here is a straight conversion, so ask your printer for an exact match.

Building a palette from one colour

The 11 tints and shades keep your colour's hue and saturation and step the lightness from 95% down to 5%. That gives you a ready scale: very light versions for backgrounds, the middle for buttons and links, dark ones for text and borders. Click any swatch to copy its hex code.

Contrast in practice

The default indigo #4F46E5 has a contrast ratio of about 6.3:1 with white, which passes WCAG AA for normal text, and only 3.3:1 with black. Teal #008080 on white is about 4.8:1, just above the 4.5:1 limit. Orange #FFA500 on white is only about 2:1, so it is fine for a background or an icon but too pale for white text on top.

Frequently asked questions

How do I find the hex code of a colour on my screen?

Click the colour swatch. In Chrome and Edge on a computer, the colour window has an eyedropper you can use on anything on your screen. For a colour in a photo, upload it to the Image Color Picker.

What is the difference between HSL and HSV?

Both describe colour as hue and saturation, but HSL uses lightness, where 100% is always white, and HSV uses value (brightness), where 100% is the purest version of the colour. CSS uses HSL; Photoshop pickers use HSV.

Is the CMYK value accurate for printing?

It is a direct mathematical conversion, which is a good starting point. Real print colours depend on the printer, ink and paper, so ask your print shop for their profile if the colour must match exactly.

๐Ÿ’ป Keep exploring Developer Tools

See all Developer Tools