Skip to content
DeviceCheckHub

Color Picker

Pick any color and get its HEX, RGB, HSL and CMYK codes. Pick from your screen or a photo, check text contrast and find matching shades.

CMYKcmyk(91%, 56%, 0%, 8%)
Contrast with white
5.03:1 · AA
Contrast with black
4.17:1 · AA large text only

Tints and shades

Matching colors

Complementary, two analogous and two triadic colors.

Drag in the square, move the hue slider, or type a HEX, RGB or HSL value.

How to use the color picker

The page address includes the current color, so you can bookmark it or send it to someone to show exactly the color you mean.

HEX, RGB, HSL and CMYK explained

Checking contrast for readable text

Text needs enough contrast with its background to be easy to read, especially for people with low vision and for anyone reading on a phone outdoors. The Web Content Accessibility Guidelines (WCAG) measure this as a ratio from 1:1 (no difference) to 21:1 (black on white). For level AA they ask for at least 4.5:1 for normal text and 3:1 for large text; level AAA asks for 7:1. The picker shows the ratio of your color with white and with black, so you can see at a glance whether it works as a text color on a light background, or whether light text belongs on top of it. To test a text color against any background, including see-through text, and get the nearest color that passes, use the color contrast checker.

Matching colors, tints and shades

Colors that sit in particular positions on the color wheel tend to look good together. The complementary color is directly opposite and gives the strongest contrast, good for a button or highlight. Analogous colors are next to each other and look calm and related. Triadic colors are evenly spaced around the wheel for a lively, balanced mix. Click any of them to make it the current color.

The tints and shades row keeps your hue and saturation and changes only the lightness, from nearly white to nearly black. This is how design systems build a set of related colors for backgrounds, borders, text and hover states from one brand color.

Tips for choosing colors

Common color names and their codes

Web browsers understand nearly 150 color names, such as “tomato” and “steelblue”. These are some of the most used, with their exact codes; click a code to open it in the picker.

NameHEXRGB
Black#000000rgb(0, 0, 0)
White#FFFFFFrgb(255, 255, 255)
Gray#808080rgb(128, 128, 128)
Silver#C0C0C0rgb(192, 192, 192)
Red#FF0000rgb(255, 0, 0)
Orange#FFA500rgb(255, 165, 0)
Gold#FFD700rgb(255, 215, 0)
Green#008000rgb(0, 128, 0)
Teal#008080rgb(0, 128, 128)
Navy#000080rgb(0, 0, 128)
Purple#800080rgb(128, 0, 128)
Pink#FFC0CBrgb(255, 192, 203)
Coral#FF7F50rgb(255, 127, 80)

Note that the named “green” is a fairly dark green; the pure green of a screen, rgb(0, 255, 0), is called “lime”.

Using the codes in CSS and design apps

All three formats work in CSS, for example color: #2563EB;, color: rgb(37 99 235); or color: hsl(221 83% 53%);. Modern browsers accept the values separated by spaces or by commas. Design apps such as Figma, Canva, Photoshop and PowerPoint all have a box where you can paste a HEX code, which is the quickest way to move an exact color between programs. To make a color partly transparent in CSS, add an alpha value, such as rgb(37 99 235 / 50%).

Why colors look different on other screens

The same HEX code can look slightly different on another phone, laptop or monitor, because screens differ in brightness, color range and settings such as night mode or warm color filters. Turn those filters off when you judge colors, and if your screen shows odd tints, banding or bright spots, check it with the monitor test. For full-screen color, for example to light a video call or check a display, use the white screen.

Frequently asked questions

How do I find the HEX code of a color on my screen?

In Chrome, Edge and other Chromium-based browsers on a computer, press “Pick from screen” and click anywhere on your screen, even outside the browser window. In other browsers, take a screenshot, then open it with “Pick from an image” and click the color.

What is the difference between HEX and RGB?

They describe the same color in two ways. RGB gives the amount of red, green and blue from 0 to 255, such as rgb(37, 99, 235). HEX writes the same three numbers in base 16, as #2563EB. Websites and design tools accept both.

Can I get a color from a photo?

Yes. Choose a picture under “Pick from an image”, then click or tap the spot you want. The image is opened on your device only; it isn’t uploaded.

What contrast ratio do I need for readable text?

The Web Content Accessibility Guidelines (WCAG) ask for at least 4.5:1 between normal text and its background, and 3:1 for large text, for level AA. Level AAA asks for 7:1. The picker shows the ratio of your color against white and black.

Is the CMYK value exact for printing?

No. It is a simple conversion that is fine for a rough idea. Printers use color profiles for their inks and paper, so for accurate print colors, convert in your design software using the printer’s profile, or ask the printer.

Are my saved colors kept?

Saved colors are stored in this browser on this device, up to 16 of them. They aren’t uploaded, and clearing your browsing data removes them.

Last updated · About DeviceCheckHub