Color Picker

Copy HEX, RGB or HSL codes.

tomato

#FF6B35

White text2.83Fail
Black text7.40AAA

Shades and tints

Tap a step to pick it. Lighter on the left, darker on the right.

Online color picker with HEX, RGB, HSL and OKLCH

Pick any color and copy its code in the format your project needs. Drag the color area, type a value, or sample a pixel from your screen, and every format updates together. It runs in your browser and works with touch and keyboard.

  • Drag, tap or use the arrow keys. Move the dot in the color area to set saturation and brightness, then slide the hue bar to change the color family. The arrow keys nudge by 1%, and Shift makes it 10%.
  • Seven formats, all editable. HEX, RGB, HSL, HSV, CMYK and OKLCH update as you drag. Type or paste into any of them and the picker jumps to that color. CSS names such as tomato or rebeccapurple work too.
  • Opacity included. The opacity slider adds an alpha channel, so you get 8-digit hex such as #FF6B3580 and rgba() or hsla() values ready for CSS.
  • Pick from anywhere on screen. In Chrome and Edge, Pick from screen opens an eyedropper that reads the color of any pixel on your display, including other windows and images.
  • Closest color name. Every color is matched to the nearest of the 148 CSS color names, using a perceptual distance, so you get a readable label for any shade.
  • Shades and tints strip. Eleven steps from near-white to near-black around your color. Tap one to move there, which is a quick way to find a hover state or a border color.
  • Contrast on white and black. See the ratio and the WCAG grade of white text and black text on your color, so you know straight away which one is safe to put on top.
  • Saved colors. Save up to 16 colors while you work and jump back to any of them with one tap.

Which color format should you use

The same color can be written five common ways. Each one is better at something.

  • HEX. The default on the web. Six digits for red, green and blue, with two more for opacity. Short and easy to paste anywhere.
  • RGB. Red, green and blue from 0 to 255. Useful when a tool or canvas API asks for separate channel values.
  • HSL and HSV. Hue, saturation and lightness (or value). These are the easiest formats to reason about: raise lightness for a hover tint, drop saturation for a muted version.
  • CMYK. The four inks of print. These values are a simple conversion from screen color, so a print shop may adjust them for the paper and the press.
  • OKLCH. A modern CSS color space where equal lightness values look equally bright. It is the best choice for building palettes that feel even, and works in current browsers.

Everyday jobs for a color picker

  • Grabbing a color from a screenshot. Use the eyedropper on a mockup, a competitor site or a photo, then copy the exact code into your stylesheet.
  • Matching a brand color across tools. Paste a hex code from a brand guide and copy it back out as RGB for slides, HSL for CSS variables or CMYK for the printer.
  • Finding hover and pressed states. Step one or two tiles along the shade strip to get a darker button color that still belongs to the same family.
  • Choosing text that stays readable. Check the white and black text grades before you put a label on a colored background or badge.
  • Translucent overlays. Lower the opacity and copy the rgba() value for scrims, glass panels and soft shadows.

Color picker questions

Why does the eyedropper button not show?

The screen eyedropper is a browser feature available in Chrome, Edge and Opera on desktop. Safari and Firefox do not offer it yet, so the button is hidden there.

Which formats can I paste in?

Hex with 3, 4, 6 or 8 digits, rgb() and rgba(), hsl() and hsla(), hsv(), cmyk(), oklch(), CSS color names, and plain triples such as 255 107 53.

Why is the CMYK value only approximate?

Screens mix light and printers mix ink, so there is no single exact conversion. The value shown is the standard formula, a good starting point for print.

Why does the hue stay put when I drag to gray or black?

Gray and black have no hue, so the picker remembers the last one. Drag back out and you return to the same color family.

What does the closest name mean?

If your color is exactly one of the 148 CSS names, it is labeled CSS name. Otherwise the nearest name is shown, such as tomato for a slightly different red-orange.

Are my saved colors stored anywhere?

Only on this page while it is open. Nothing is uploaded, and saved colors clear when you refresh.