You like the blue on a website, need to match a client's logo, or want your slides to use the same green as a brand guide. To reuse a colour anywhere, in CSS, Canva, PowerPoint or a print order, you need its colour code.
This guide shows how to get that code from anything on your screen with the free Color Picker, what the different codes mean, and how to make sure the colour is readable.
Get a colour from your screen
In Chrome or Edge on a computer:
- Open the Color Picker.
- Click Pick from screen. Your pointer turns into a magnifier.
- Move it over the colour you want, on any website, image or app window that is visible, and click.
- The colour's HEX, RGB, RGBA, HSL, HSLA and CMYK codes appear. Click the copy button next to the one you need.
Press Escape to cancel without picking.
On a phone, Safari or Firefox, the eyedropper is not available yet. Take a screenshot instead and open it in the Image Color Picker, which lets you tap any pixel of an image.
Already have a code?
Type or paste it into the HEX code box. Short codes work too: #19f means #1199FF, and the hash is optional. All the other formats update straight away.
What the codes mean
All of these describe the same colour in different ways.
| Format | Example | Where it is used |
|---|---|---|
| HEX | #1E90FF | CSS, Figma, Canva, most design tools |
| RGB | rgb(30, 144, 255) | CSS, code, Office colour dialogs |
| RGBA | rgba(30, 144, 255, 0.5) | CSS with transparency (0 to 1) |
| HSL | hsl(210, 100%, 56%) | CSS, adjusting colours by hand |
| CMYK | cmyk(88%, 44%, 0%, 0%) | A starting point for print |
HEX is simply RGB written in base 16: 1E is 30 red, 90 is 144 green, FF is 255 blue.
HSL is the easiest to adjust by hand: H is the hue around a colour wheel (0 is red, 120 green, 240 blue), S is how vivid it is, and L is how light it is. To get a lighter version of a brand colour, raise L; to get a muted version, lower S.
CMYK is how printers mix ink. Conversions from screen colours are approximate, because screens and paper show colour differently. For business cards or banners, ask the printer for a proof.
Build a matching palette
Below the codes, the picker shows tints (the colour mixed with white) and shades (mixed with black). These make good companions for a main colour:
- a light tint for card or section backgrounds,
- the main colour for buttons and links,
- a darker shade for hover states and borders.
Click any of them to make it the current colour and copy its codes. To pull a whole palette out of a photo or logo instead, use the Palette Extractor.
Check that text in this colour is readable
A colour can look great and still be hard to read. The Text contrast panel shows the contrast ratio of your colour on white and on black, with its WCAG grade:
- AA, 4.5:1 or more: fine for normal text.
- AA large, 3:1 or more: only for large or bold headings.
- AAA, 7:1 or more: the highest level, best for long reading.
- Fail: too faint to use for text.
Light brand colours such as yellow, orange and light green often fail on white. If yours does, use a darker shade from the strip for text and keep the bright version for backgrounds and icons.
Common questions
Why don't I see Pick from screen? It relies on a browser feature available only in Chrome and Edge on computers.
Is the colour I picked exact? Yes for what your screen displays. A photo or a compressed image can show slightly different pixels next to each other, so pick from a flat area.
Can I convert RGB to HEX? Yes. Pick any colour here, or paste an RGB or HSL value into the Color Converter.
Is anything uploaded? No. All colour values are worked out in your browser.



