How to Find the Color Code of Anything in an Image
Updated 4 October 2026 · RowPix guides
Want the exact colour of a logo, a website button or a sunset? You can read it straight from the pixels. Here is how, plus what the codes mean.
The quick way
- Open the Image Color Picker.
- Upload the picture or paste a screenshot with Ctrl+V (Cmd+V on Mac).
- Click the colour you want. Copy the HEX, RGB or HSL code.
For the main colours of the whole picture, use the palette generator. For a list of every pixel’s value, row by row, use Pixel Color Values.
RGB, HEX and HSL explained
RGB
Screens mix red, green and blue light. RGB gives the amount of each from 0 to 255. rgb(0, 0, 0) is black, rgb(255, 255, 255) is white and rgb(255, 165, 0) is orange. That gives 256 × 256 × 256 = 16,777,216 possible colours.
HEX
A HEX code is the same three numbers written in base 16 and joined together after a #. Each pair is one channel: #FFA500 = FF (255) red, A5 (165) green, 00 (0) blue = orange. HEX is the usual format in web design and graphics apps.
HSL
HSL describes a colour as hue (the position on the colour wheel, 0–360°), saturation (0% grey to 100% vivid) and lightness (0% black to 100% white). It is handy for making lighter or darker versions of a colour: keep the hue and change the lightness.
| Colour | HEX | RGB | HSL |
|---|---|---|---|
| Red | #FF0000 | rgb(255, 0, 0) | hsl(0, 100%, 50%) |
| Green | #00FF00 | rgb(0, 255, 0) | hsl(120, 100%, 50%) |
| Blue | #0000FF | rgb(0, 0, 255) | hsl(240, 100%, 50%) |
| Orange | #FFA500 | rgb(255, 165, 0) | hsl(39, 100%, 50%) |
| Mid grey | #808080 | rgb(128, 128, 128) | hsl(0, 0%, 50%) |
Converting HEX to RGB by hand
Split the code into pairs and convert each from base 16: the first digit is worth 16 times its value and the second digit is added. A=10, B=11, C=12, D=13, E=14, F=15. Example: #1E90FF → 1E = 1×16 + 14 = 30, 90 = 9×16 + 0 = 144, FF = 15×16 + 15 = 255, so rgb(30, 144, 255).
Why the colour you pick may not be “exact”
- JPG compression changes colours slightly, especially near edges. Pick from a flat area, or use a PNG.
- Anti-aliasing blends edge pixels with the background, so the edge of a logo is a mix of two colours.
- Photos contain many slightly different shades even in an area that looks uniform; use the palette tool for an average.
- Colour profiles and display settings can make the same file look a little different on different screens.
Frequently asked questions
How do I find the colour code of something on a website?
Take a screenshot, paste it into the RowPix color picker with Ctrl+V (Cmd+V on Mac) and click the colour. Browser developer tools can also show the CSS colour of an element.
How many colours can a HEX code describe?
16,777,216 (256 values for each of red, green and blue). An optional fourth pair, as in #RRGGBBAA, adds transparency.