Colour and palette
Pick the colour of any point and get the dominant palette
No database: AIMRAN doesn't store your files, text or results
What is Colour and palette?
If you like a color in a photo, logo or screenshot and want to use it in your design, this tool tells you its exact code. You move your mouse or finger over the image, a magnifier shows you the pixels and one click saves the color.
It also automatically calculates the image's main color palette, sorted by how much each color appears, so you have a consistent combination ready for your website, presentation or brand.
How to use it
- Drag in the image you want to pick colors from.
- Move the cursor over it and use the magnifier to aim precisely.
- Click to save the color to your list and copy its HEX, RGB or HSL code.
- Check the dominant palette and choose how many colors you want (5 to 12).
- Export the palette as CSS variables or JSON.
Advantages
- Magnifier to pick the exact pixel.
- HEX, RGB and HSL codes with one-click copy.
- Automatic dominant palette sorted by presence.
- Direct export to CSS variables or JSON.
Technical details
The eyedropper reads the RGB value of the pixel under the cursor on the original image and shows an 11 × 11 pixel magnifier. Up to 24 colors can be saved, without duplicates, in HEX, rgb() and hsl(). The dominant palette is calculated with k-means on a copy scaled down to 160 px, with a deterministic k-means++-style initialization (it starts from the average color and adds the most distant colors), ignoring transparent pixels; the result is sorted by the percentage of pixels in each cluster. Export generates CSS custom properties or a JSON with the codes. Accepts images up to 50 MB, HEIC included.
Frequently asked questions
How do I find the color code from an image?
Upload the image, move the cursor over the color and you will see its HEX, RGB and HSL code. Click to save and copy it.
How do I get the color palette from a photo?
The dominant palette is calculated automatically when the image loads. Choose between 5 and 12 colors with the slider and export it as CSS or JSON.
What is the difference between HEX, RGB and HSL?
They are different ways of writing the same color. HEX is the most common in web design, RGB gives red, green and blue, and HSL gives hue, saturation and lightness.
Does it work on mobile?
Yes. Slide your finger over the image to see the color and tap to save it.
More Image tools
- Compress image · Reduce file size with quality control and a before/after comparison
- Resize · Change the size in pixels or percent, also in batches
- Crop · Crop with presets for Instagram, stories, YouTube or a custom size
- Convert format · Convert between JPG, PNG, WEBP, AVIF, HEIC, TIFF, PSD, ICO, PDF and more
- Remove background · Remove a photo’s background with AI
- Rotate and flip · Rotate 90/180/270 degrees and flip horizontally or vertically
- Filters and adjustments · Brightness, contrast, saturation, black and white and blur
- Watermark · Text or logo on several images at once