Web designers and developers
Grab the exact HEX code from a mockup, screenshot or client logo and paste it straight into CSS, Tailwind or Figma. Export a set of recent colors as CSS variables to start a theme in seconds.
ToolDeck.online
INITIALIZING_
0%Upload or paste an image, click any pixel, and copy its exact color code. Extract a 5-color palette, check text contrast and export CSS variables in seconds. It is free, needs no signup, and your image never leaves your browser.
Drop an image here
Or paste a screenshot with Ctrl+V (Cmd+V on Mac). PNG, JPG, WebP, GIF, BMP or AVIF. Nothing is uploaded.
HEX
#FFFFFF
RGB
rgb(255, 255, 255)
HSL
hsl(0, 0%, 100%)
CMYK
cmyk(0%, 0%, 0%, 0%)
Colors you pick will appear here.
Finding the exact color in a picture takes about a minute. Follow these steps.
An image color picker, also called an eyedropper tool or color extractor, reads the color of a single pixel in a picture and turns it into a code you can use in design and code. Instead of guessing “what blue is that?”, you get the exact value, such as #4F63FF, and can paste it into CSS, Figma, Canva, Photoshop or a brand guide.
Every digital image is a grid of pixels, and every pixel stores its color as three numbers for red, green and blue. When you click the image, this tool reads those three numbers from the pixel under your pointer and converts them into HEX, HSL and CMYK so you can use whichever format your project needs.
It works in any browser with no install, and it supports logos, photos, screenshots, artwork, product images and website mockups.
All four describe the same color. Choose the one your tool or project needs.
| Format | Example | Best for |
|---|---|---|
| HEX | #4F63FF | CSS, HTML, Figma, Canva, Tailwind, web design |
| RGB | rgb(79, 99, 255) | Screens, CSS, JavaScript, canvas, video, apps |
| HSL | hsl(231, 100%, 65%) | Making lighter, darker or less saturated shades in CSS |
| CMYK | cmyk(69%, 61%, 0%, 0%) | Print, flyers, packaging (approximate conversion) |
A HEX code is a # followed by six characters from 0 to 9 and A to F. The first two are red, the next two green and the last two blue. #000000 is black and #FFFFFF is white. It is the most common format on the web because it is short and easy to copy.
RGB lists red, green and blue as numbers from 0 to 255. It matches how screens make color from light, and it is the format used by JavaScript, canvas and many apps.
HSL is the easiest format to adjust by hand. Keep the hue and raise lightness for a tint, lower it for a shade, or reduce saturation for a muted version. This makes it ideal for building a consistent set of hover, active and background colors.
CMYK describes ink coverage for printing. Screens can show colors that ink cannot, so a bright screen color may print duller. Treat the value here as a starting point and proof before a print run.
Here are the basic colors and their codes in each format. Use them to check the tool or as quick references.
| Color | Swatch | HEX | RGB | HSL |
|---|---|---|---|---|
| White | #FFFFFF | rgb(255, 255, 255) | hsl(0, 0%, 100%) | |
| Black | #000000 | rgb(0, 0, 0) | hsl(0, 0%, 0%) | |
| Gray | #808080 | rgb(128, 128, 128) | hsl(0, 0%, 50%) | |
| Red | #FF0000 | rgb(255, 0, 0) | hsl(0, 100%, 50%) | |
| Orange | #FFA500 | rgb(255, 165, 0) | hsl(39, 100%, 50%) | |
| Yellow | #FFFF00 | rgb(255, 255, 0) | hsl(60, 100%, 50%) | |
| Lime green | #00FF00 | rgb(0, 255, 0) | hsl(120, 100%, 50%) | |
| Cyan | #00FFFF | rgb(0, 255, 255) | hsl(180, 100%, 50%) | |
| Blue | #0000FF | rgb(0, 0, 255) | hsl(240, 100%, 50%) | |
| Purple | #800080 | rgb(128, 0, 128) | hsl(300, 100%, 25%) | |
| Magenta | #FF00FF | rgb(255, 0, 255) | hsl(300, 100%, 50%) |
A photo can contain millions of slightly different colors, so the tool needs to simplify them. When you press Extract palette, it samples pixels across the whole image, skips transparent ones, and groups similar colors into small color buckets. Each bucket is averaged into one representative color and ranked by how many pixels it holds.
Finally the tool keeps the most common colors that are clearly different from each other, up to five. That is why you get a useful palette, such as sky blue, sand, green, shadow and highlight, and not five slightly different blues. This simplification step is called color quantization and it is the same idea used by image compression and palette generators.
Use the palette as a starting point. Click any swatch to copy its HEX code, then adjust it in HSL if you need a lighter or darker version.
Good contrast makes text readable for everyone, including people with low vision or color blindness, and for anyone using a phone in bright sunlight. The WCAG guidelines measure contrast as a ratio between 1:1 (no difference) and 21:1 (black on white).
The contrast panel next to your picked color shows the ratio for white text and black text, with a pass level. If neither passes, adjust the lightness of the color or pick a different shade from the image.
Grab the exact HEX code from a mockup, screenshot or client logo and paste it straight into CSS, Tailwind or Figma. Export a set of recent colors as CSS variables to start a theme in seconds.
Keep social posts, ads, emails and presentations on-brand by sampling colors directly from approved brand images, instead of asking for a style guide every time.
Build a palette from a reference photo, a painting or a mood board, then use it as the base for posters, packaging and illustrations.
Find the dominant colors of a scene to plan grading, pick title colors that match the footage, or keep a series visually consistent.
Pull colors from a room, fabric or product photo and find coordinating shades. Use CMYK values as a starting point for print mockups.
Learn how HEX, RGB and HSL relate by clicking colors and watching all values change together. It makes color theory concrete.
Test whether white or black text will be readable on a color before you commit to it, with an instant WCAG AA or AAA result.
Match thumbnails, banners and overlays to the dominant colors of your photos so every post looks designed.
Copy the HEX or RGB value and use it as a property value, for example color: #4F63FF; or background-color: rgb(79, 99, 255);. For a theme, click Export CSS and paste the variables into your :root block, then reference them with var(--color-1).
Copy the HEX code and use an arbitrary value such as bg-[#4F63FF] or text-[#4F63FF]. To use it across a project, add it to the theme colors in your Tailwind configuration.
Copy the HEX code, select a shape or text layer, open the Fill section and paste the code into the color field. Press Enter to apply it.
Select an element, open the color picker, choose the option to add a new color, and paste the HEX code into the input box. Add it to your brand kit to reuse it.
Open the foreground color picker and paste the HEX code into the # field. For print projects, convert to CMYK inside the app using your document profile.
Open the color menu for a shape or text, choose custom color, and paste the HEX code or enter the RGB values shown by this tool.
Check that the file is an image and not a PDF or document. If it is an unusual format, open it in an image viewer and export it as PNG or JPG, then try again.
Click on the page first, then press Ctrl+V (Cmd+V on Mac). Make sure you copied an image, not a file path or text. Some browsers block clipboard images on non-secure pages, so use the page over HTTPS.
Browsers only allow copying after a click on a secure page. If copying is blocked, select the code on screen and copy it manually.
Your design tool may use a different color profile, such as Display P3 or a print profile. Compare the numeric HEX values and not how they look on screen.
Very large photos take longer to draw and to extract a palette. Resize the image to under 4000 px wide and try again.
All processing happens locally in your browser with the HTML canvas. No image data is sent to any server, so you can safely use client work, unreleased designs and personal photos. When you close or refresh the page, the image and your recent colors are cleared.
Upload a photo, drag and drop it, or paste a screenshot with Ctrl+V. Then click or tap any pixel. The tool instantly shows the HEX, RGB, HSL and CMYK values of that exact spot, and you can copy any of them with one click.
Yes. It is completely free, needs no account or signup, and has no limit on the number of images or colors you can pick.
No. The image is processed entirely inside your browser using the HTML canvas. It is never uploaded, stored or shared, so private photos, client work and unreleased designs stay on your device.
HEX (for example #4F63FF), RGB (rgb(79, 99, 255)), HSL (hsl(231, 100%, 65%)) and CMYK (cmyk(69%, 61%, 0%, 0%)). Each has its own copy button, and Copy all gives you every format at once.
Click the color in the picture. The HEX code appears in the Color codes panel, for example #4F63FF. Press Copy to put it on your clipboard, then paste it into CSS, Figma, Canva or any design tool.
After uploading, click Extract palette. The tool samples the image, groups similar colors together, and shows the 5 most common colors that are clearly different from each other. Click any swatch to copy it.
Yes. Take a screenshot, come back to this page, and press Ctrl+V (Cmd+V on Mac). The screenshot loads instantly with no saving or uploading needed.
Yes. Your recent colors are kept while you work. Click Export CSS to copy up to six of them as CSS custom properties such as --color-1: #4F63FF; inside a :root block.
PNG, JPG/JPEG, WebP, GIF, BMP and AVIF, as long as your browser can display them. For the most accurate colors, a PNG is best.
Yes. Open this page in Safari, Chrome or any modern mobile browser, then tap or slide across the image to pick a color. A small preview shows the color under your finger.
No. It runs in your browser on Windows, macOS, Linux, ChromeOS, iOS and Android. There is no extension, plugin or app to install.
JPG compression blends nearby pixels, and very large images are scaled down to 1200 px wide for speed. For the most exact value, use a PNG and click the center of a solid area. Your screen color profile and brightness can also change how a color looks.
Photos contain noise, gradients, texture and compression artifacts, so neighboring pixels are rarely identical. Try several points and use the palette tool to see the dominant color of an area.
They describe the same color in different ways. HEX is a compact code used in CSS and design tools. RGB gives red, green and blue levels from 0 to 255. HSL gives hue (0 to 360 degrees), saturation and lightness as percentages, which makes colors easier to adjust by hand.
CMYK (cyan, magenta, yellow, black) is the color model used in printing. Use it as a starting point for print work. The value shown here is a simple mathematical conversion, so a printer may need a color-managed profile for exact results.
Split the 6-digit HEX into three pairs and convert each pair from base 16 to base 10. For #4F63FF, 4F is 79, 63 is 99 and FF is 255, so the RGB value is rgb(79, 99, 255). This tool does the conversion for you automatically.
It shows how readable white or black text would be on the picked color, using the WCAG formula. AA (4.5:1) is the usual target for body text, 3:1 is the minimum for large text, and AAA (7:1) is the strictest level.
WCAG 2.x asks for at least 4.5:1 for normal text and 3:1 for large text (about 24 px regular or 18.66 px bold and above) at level AA. Level AAA asks for 7:1 for normal text and 4.5:1 for large text.
The tool samples pixels across the image, groups similar colors into buckets, averages each bucket, ranks them by how often they appear, and then keeps only colors that are clearly different from ones already chosen. This avoids five near-identical shades.
Yes. Logos usually have flat colors, so PNG or SVG-exported PNG files give very accurate results. Click the middle of each flat color area.
It gives a good starting point from a photo, but lighting, camera settings and screen calibration change how colors look. For paint or print, confirm with a physical swatch or a color-matching service.
The picking itself happens in your browser, but you need an internet connection to load the page the first time. After it has loaded, picking colors from an image does not send any data to a server.
A color code is just a number, so you can use it freely. The image you pick it from may have its own license, and brand logos and brand colors can be protected as trademarks.
There is no upload limit because nothing is uploaded. Very large images are scaled to 1200 px wide inside the tool for speed, which does not affect normal color picking.
It does the same core job without any software, account or subscription. You open a page, drop an image and copy a code. Desktop tools offer more editing, but for quickly finding a color code this is faster.
Last updated: 2026-11-11