SCSS colour variables from an image
If your project still builds with Sass, you want dollar-sign variables, not custom properties. Drop an image and the colours arrive as a list of SCSS variables, named and ready to import. Nothing is uploaded: your image stays in your browser.
Drop an image here
Or paste one with Ctrl+V. PNG, JPG, WebP, GIF, AVIF or BMP, up to 25 MB.
More palette ideas
How it works
Add an image
Drop a picture on the page, paste it with Ctrl+V, or browse for a file. A logo, a photo, a screenshot or a product shot all work.
Choose how many colours
Pick 4, 6, 8 or 10. The most common colours come first, with the share of the image each one covers, so you can see which colour leads.
Pick, scale and copy
Click the image to pick any exact pixel with a magnifier, open an eleven-step tonal scale for any colour, and show the colours as HEX, RGB, HSL or OKLCH.
Export it
Copy the palette as CSS variables, a Tailwind theme, SCSS, JSON or plain text, download it as a file, or save a PNG strip of the colours.
Questions about a SCSS colour variables
How do I get a SCSS colour variables from an image?
Add your image, and 6 colours are chosen for you. You can change that to 4, 6, 8 or 10. Then open Export, choose SCSS and copy the code. Save the output as _colors.scss and use it with @use, so every component reads the same values.
Can I use these variables inside a Sass map?
Yes. Paste the variables first, then list them in a map such as (primary: $dodger-blue, accent: $gold) and loop over it for utilities or themes.
How many colours should a SCSS colour variables have?
Six variables is a comfortable size for a partial file. Switch on tonal scales only for the colours you actually build shades from.
Is the image I use for my SCSS colour variables uploaded?
No. The picture is read by your own browser in a background worker, so your SCSS colour variables stays private and the page keeps working offline once it has loaded.
More free tools
View all toolsAbout these tools
Small tools, made by Sifency
Sifency is a small studio that builds themes, plugins and web apps. These tools began as the things we kept needing ourselves, so we tidied them up and left them open for everyone. There is nothing to sign up for.