How to use the color picker / hex to rgb
- Click the large color bar to open your device's color picker, or type a code in the box.
- Read the same color in HEX, RGB, HSL, HSV and CMYK.
- Press Copy next to the format you need.
- Click any tint, shade or harmony swatch to copy its HEX code.
Color formats explained
| Format | Example | Where it is used |
|---|---|---|
| HEX | #3B5BFD | Web design, CSS, most design apps |
| RGB | rgb(59, 91, 253) | Screens, CSS, image editors |
| HSL | hsl(230, 98%, 61%) | CSS. Easy to adjust by hand: hue, saturation, lightness |
| HSV / HSB | hsv(230, 77%, 99%) | Color pickers in Photoshop, Figma and similar apps |
| CMYK | cmyk(77%, 64%, 0%, 1%) | Printing |
How HEX and RGB relate
A HEX code is simply RGB written in base 16. The six digits are three pairs: red, green and blue, each from 00 (0) to FF (255). So #FF8800 is red 255, green 136, blue 0. A three-digit code such as #F80 is shorthand for #FF8800.
A note on CMYK
Screens mix light (RGB) and printers mix ink (CMYK), and screens can show bright colors that ink cannot reproduce. The CMYK values here are the standard mathematical conversion, which is fine for a quick reference. For professional print work, convert in design software using the color profile your printer supplies.
Common colors
| Color | HEX | RGB |
|---|---|---|
| Black | #000000 | 0, 0, 0 |
| White | #FFFFFF | 255, 255, 255 |
| Red | #FF0000 | 255, 0, 0 |
| Green | #008000 | 0, 128, 0 |
| Blue | #0000FF | 0, 0, 255 |
| Yellow | #FFFF00 | 255, 255, 0 |
| Orange | #FFA500 | 255, 165, 0 |
| Purple | #800080 | 128, 0, 128 |
| Pink | #FFC0CB | 255, 192, 203 |
| Gray | #808080 | 128, 128, 128 |
| Navy | #000080 | 0, 0, 128 |
| Teal | #008080 | 0, 128, 128 |
To pull a color out of a photo, use the image color picker.