How to use the color picker
- Choose a hue with the slider, then drag in the big square: left to right goes from gray to full color, top to bottom from bright to dark.
- Type a code into the HEX, RGB or HSL box to load an exact color, for example #2563EB or rgb(37, 99, 235). The other codes update instantly.
- Pick from screen (in Chrome, Edge and other Chromium browsers on a computer) lets you click any pixel on your screen, including other apps.
- Pick from an image opens a photo or screenshot; click or tap it to take that color.
- Copy any code with one click, and Save color to keep a small palette in this browser.
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
- RGB describes a color by how much red, green and blue light it contains, each from 0 to 255. Screens make every color by mixing these three, so rgb(255, 0, 0) is pure red and rgb(255, 255, 255) is white.
- HEX is the same as RGB, written as three two-digit numbers in base 16. #FF0000 is red, #000000 is black. It is the most common way to write colors in web design and in many apps.
- HSL stands for hue, saturation and lightness. Hue is the position on the color wheel from 0 to 360 degrees (0 red, 120 green, 240 blue), saturation is how strong the color is, and lightness goes from black to white. It is the easiest format for making a color lighter, darker or softer by hand.
- CMYK describes printing inks: cyan, magenta, yellow and black. The value shown is a simple conversion for reference; real print colors depend on the printer, ink and paper.
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
- Start with one main color, then use its tints and shades for most of the design; add one accent color for buttons and links.
- Check every text color against its background with the contrast numbers before you use it.
- Don’t rely on color alone to show meaning, such as red for errors; add words or icons for people who see colors differently.
- Very saturated colors are tiring over large areas. Use them for small details and choose softer versions for backgrounds.
- Save the colors you decide on so you can copy the exact codes later.
- Test your palette in both light and dark mode if your site or app supports both; a color that stands out on white can disappear on a dark background.
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.
| Name | HEX | RGB |
|---|---|---|
| Black | #000000 | rgb(0, 0, 0) |
| White | #FFFFFF | rgb(255, 255, 255) |
| Gray | #808080 | rgb(128, 128, 128) |
| Silver | #C0C0C0 | rgb(192, 192, 192) |
| Red | #FF0000 | rgb(255, 0, 0) |
| Orange | #FFA500 | rgb(255, 165, 0) |
| Gold | #FFD700 | rgb(255, 215, 0) |
| Green | #008000 | rgb(0, 128, 0) |
| Teal | #008080 | rgb(0, 128, 128) |
| Navy | #000080 | rgb(0, 0, 128) |
| Purple | #800080 | rgb(128, 0, 128) |
| Pink | #FFC0CB | rgb(255, 192, 203) |
| Coral | #FF7F50 | rgb(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.