Palette from Image
The main colours of a photo as swatches, with their share, in CSS, SCSS, Tailwind or JSON
Runs on your device
How to use Palette from Image
Add your file: drop it on the page, or press the button to choose it.
Set the options: “Colours”, “Order”, “Skip near-white and near-black”, “Code” and more. Reset puts them back.
Press Process file, then download the result.
About Palette from Image
The main colours of a photo as swatches, with their share, in CSS, SCSS, Tailwind or JSON.
Palette from Image: common questions
Is Palette from Image free?
Yes. There's no sign-up, no limit on how often you use it and no watermark.
Is your file uploaded anywhere?
No. Palette from Image works on this device only, so your file stays private. You can even turn off the internet once the page is open.
Which files does it take?
Images (JPG, PNG, WebP, GIF, AVIF, HEIC and more). Very large files can be slow on older phones, since your own device does the work.
What can I change?
5 settings, including “Colours”, “Order”, “Skip near-white and near-black”, “Code” and “Name”. Every setting has a sensible default, and Reset puts them all back.
Does it work on a phone?
Yes, in any current browser on Android, iPhone, iPad and desktop.
More design tools
- Color ConverterHEX, RGB, HSL, HWB, OKLCH, Lab, CMYK and more, from any CSS colour; one colour or a list
- Color PickerPick a colour and get every format
- Image Color PickerClick any pixel of an image to get its colour
- Contrast CheckerWCAG 2.2 and APCA contrast, with a fix that passes
- Color Palette GeneratorHarmonies from one colour: complementary, triadic, analogous and more
- Tints and Shades GeneratorA 50–950 scale from one colour, like Tailwind's, with contrast for each step, in CSS, SCSS, Tailwind or JSON
- Color MixerBlend two colours in steps, in OKLab, linear or plain sRGB
- Color Blindness SimulatorSee a palette as people with each kind of colour blindness do
- CSS Gradient GeneratorLinear, radial and conic gradients with any number of stops
- Mesh Gradient GeneratorSoft multi-colour mesh backgrounds in pure CSS
- Box Shadow GeneratorBox shadows, including smooth layered ones
- Text Shadow GeneratorText shadows plus neon, 3D, outline and retro presets