How it works Blocks Templates Pricing Tools Directory Log inClaim your link
Free tool

Color Palette Generator

Build a palette from one colour or pull one from a photo. Lock, shuffle, copy and export.

Design & images · Runs in your browser · No signup
Tip: press Space to shuffle. Locked colours stay.
Presets
Export

      
      

Click any colour block or code to copy it.

Link in bio preview

Like it? Use these colours as a custom theme on your BioLinko page.

1Pick a base colour and harmony, or upload a photo
2Press space to shuffle and lock the colours you love
3Copy the codes or download the palette as PNG
Quick answer

A color palette generator creates a set of colours that work together, either from colour-wheel rules (analogous, complementary, triadic and more) or by pulling the dominant colours out of a photo. This free one shows HEX, RGB and HSL codes, WCAG contrast grades for each colour, and exports CSS variables, a Tailwind config or a PNG. It runs in your browser.

What is a color palette generator?

A color palette generator is a tool that suggests a small group of colours, usually 3 to 6, that look good together. Instead of guessing, it uses the geometry of the colour wheel or the real colours in an image to give you a starting point you can adjust.

A good palette does three jobs: it sets a mood (calm, playful, premium), it gives you enough contrast for readable text and buttons, and it stays consistent across your website, social posts, packaging and link-in-bio page. This generator helps with all three: it builds the palette, names each colour, grades its contrast against white and black text, and previews it as a real profile page.

How to use the color palette generator

Generate from a base colour

  1. On the Generate tab, pick a base colour with the colour picker or type a HEX code (3- or 6-digit, with or without #).
  2. Choose a harmony: Analogous, Monochromatic, Complementary, Split-complementary, Triadic, Tetradic or Shades. The palette updates instantly with five colours.
  3. Click Random palette, or press the Space bar, to try a new random base colour with the same harmony.
  4. Click Lock under any colour you want to keep. Locked colours stay put while the rest shuffle.
  5. Or start from a preset: Wedding, Brand, Pastel, Earthy, Neon or Dark mode.

Extract a color palette from an image

  1. Open the From image tab and drop in a JPG, PNG or WebP photo (or click Try a sample photo).
  2. Choose 5 or 6 colours to extract. The most dominant colour comes first.

Copy and export

  • Click any colour block, HEX, RGB or HSL value to copy it.
  • Use Copy CSS variables, Copy Tailwind config or Copy HEX list for code.
  • Click Download PNG (1200 x 630) for an image of the palette with names and HEX codes, handy for mood boards and sending to a client or printer.
  • Switch the Link in bio preview between Light, Dark and Bold colors to see how the colours work as a background, buttons and text.

Color harmony explained: complementary, analogous, triadic and more

Colour harmonies are fixed positions on the 360-degree colour wheel. Each one gives a predictable feel.

HarmonyHow it is builtFeelsGood for
AnalogousNeighbouring hues, about 20 to 40 degrees either sideCalm, naturalLifestyle brands, wellness, photography
MonochromaticOne hue in darker and lighter versionsClean, elegantMinimal websites, luxury, portfolios
ComplementaryA hue plus its opposite (180 degrees)High contrast, energeticCall-to-action buttons, sports, food
Split-complementaryA hue plus the two neighbours of its opposite (150 and 210 degrees)Lively but less harshBrands that want contrast without clashing
TriadicThree hues evenly spaced (120 degrees apart)Balanced, playfulKids, education, creative studios
TetradicFour hues 90 degrees apartRich, busyIllustration, events; pick one to dominate
ShadesOne hue from very light to very darkSystematicUI design systems, dashboards

The harmony gives you hues; the generator also varies lightness and saturation so you get usable backgrounds and text colours, not five equally loud colours. A common way to apply any palette is the 60-30-10 rule: about 60% of the space in a neutral or main colour, 30% in a secondary colour and 10% in an accent for buttons and highlights.

How the color palette from image feature works

When you upload a photo, the tool shrinks a copy to about 120 pixels on the long side, skips transparent pixels, and groups the remaining colours with k-means clustering. Each group's average colour becomes a swatch, and the swatches are sorted from the largest group to the smallest. The result is the colours that actually fill the picture, not just the brightest ones.

Tips for better results:

  • Crop to the part you care about first. A product shot with a big white background will give you white as the top colour. The image cropper helps.
  • Try both 5 and 6 colours. Six often picks up a small accent, like a flower or a sign, that five merges away.
  • Photos taken in warm indoor light skew orange. If the colours look muddy, try a daylight photo.
  • Use the extracted palette as a draft. Copy the HEX codes, then switch to the Generate tab, paste your favourite as the base colour and lock it while you build a cleaner set around it.

Color contrast and WCAG: making a palette readable

Every swatch shows two badges: the contrast ratio of white text and of black text on that colour, with a WCAG grade. WCAG (Web Content Accessibility Guidelines) measures contrast from 1:1 (no contrast) to 21:1 (black on white).

GradeRatioWhat it is fine for
AAA7:1 or moreBody text, small print, everything
AA4.5:1 or moreNormal body text and button labels
AA Large3:1 or moreLarge text only (about 24 px, or 19 px bold) and icons
Failbelow 3:1Decoration only, never text

In practice: give every palette at least one dark colour that passes AA against your light background, and check your button colour with its label colour. Bright yellows, light greens and pastels almost always need dark text. Saturated mid-tones (many oranges and pinks) often fail with both white and black at small sizes, so keep them for large headings or backgrounds.

Brand, wedding and website color palettes

Brand color palette

Most small brands need 3 to 5 colours: a primary (your recognisable colour), an accent for buttons and sale tags, a near-black for text, an off-white for backgrounds and perhaps one neutral grey. Start from the colour you already own (logo, shop sign, packaging), lock it, and shuffle a Split-complementary or Analogous harmony for the rest. A home baker in Pune might lock a warm terracotta and build cream, cocoa and sage around it; a fintech start-up might lock a deep blue and add a single bright accent.

Wedding color palette

Wedding palettes usually pair two or three soft tones with one deeper anchor colour for text and florals. Start from the Wedding preset, or upload a photo of the venue, the outfit fabric or an inspiration bouquet and extract the colours. Download the PNG and share it with the decorator, florist, invitation designer and family group chat so everyone works from the same HEX codes. For Indian weddings with several events, build one palette per function (mehendi greens and yellows, sangeet jewel tones, reception pastels) with one shared neutral.

Website color palette

For a website or app, use Shades or Monochromatic for the interface (backgrounds, borders, text) and one contrasting accent for links and buttons. Copy the CSS variables into your stylesheet or the Tailwind config into tailwind.config.js, then check every text-on-background pair against the AA badge. Try the Dark mode preset if you also need a dark theme.

Creators and social media

A consistent palette makes a feed, thumbnails and highlight covers look like one brand. Use the same HEX codes in the highlight cover maker, background generator and your link-in-bio page.

HEX vs RGB vs HSL color codes: which to copy

Each swatch shows the same colour in three formats. Click any of them to copy it.

FormatExampleWhere it is used
HEX#3B82F6Canva, Figma, website builders, brand guidelines; the most widely accepted format
RGBrgb(59, 130, 246)CSS, PowerPoint, Google Slides, video editors
HSLhsl(217, 91%, 60%)CSS; easy to tweak by hand, because you can change lightness without changing the hue
CSS variables--color-1: #3B82F6;Paste into :root and reuse across a stylesheet
Tailwind configpalette: { 1: '#3B82F6' }Tailwind CSS projects, used as bg-palette-1 or text-palette-1

Each colour also gets the name of the closest standard web colour (for example "Cornflower Blue"), which is handy when you describe a palette to a client or a printer. For print, ask your printer to match the HEX codes to CMYK or Pantone values; screens can show some bright colours that ink cannot reproduce.

Color palette generator vs Coolors, Adobe Color and Canva

Several good palette tools exist, and each has a focus. Coolors popularised the press-Space-to-shuffle workflow and has a large library of community palettes. Adobe Color has a detailed colour wheel and links into Adobe apps. Canva can pull colours from a photo and keep brand colours in a brand kit next to your designs.

This generator covers the common jobs for free, with no account: harmonies with locks and Space-bar shuffling, extraction from your own photo, WCAG grades on every swatch, CSS and Tailwind export, a shareable 1200 x 630 PNG, and a live link-in-bio preview. It does not save palettes to an account or browse community palettes, so copy your codes or download the PNG before closing the tab.

Does it upload my photos?

No. Colour maths, image extraction and the PNG export all run in your browser with the canvas API. Photos you drop in are read locally and never sent to Biolinko.

Updated October 8, 2026

Questions

About this tool

The best one is the one that fits your job. This one stands out for extracting colours from a photo, grading WCAG contrast on every swatch, exporting Tailwind and CSS code, and previewing the palette on a real page, all free and in your browser.

Click Random palette or press the Space bar on the Generate tab. Each press picks a new random base colour and applies the harmony you selected. Lock the colours you like first.

It pairs a colour with the one directly opposite on the colour wheel, such as blue and orange or purple and yellow. The contrast is strong, so use one as the main colour and the other as an accent.

A HEX code is a six-character code like #3B82F6 that describes a colour as red, green and blue values in hexadecimal. Websites, Canva, Figma and most design apps accept HEX codes.

Yes. Copy the HEX list and paste each code into the colour field in Canva, Figma, Photoshop or any design app. In Canva you can save them as a brand kit.

Start from something fixed, such as the venue, the outfits or the flowers. Upload a photo of it to the From image tab, keep two or three soft tones and one deeper colour, and share the PNG with your vendors.

Screens mix light (RGB) while printers mix ink (CMYK), and very bright screen colours cannot be printed exactly. Ask your printer for a proof and expect slightly darker, softer results.

They are positions on the colour wheel. Analogous uses neighbours (calm), complementary uses the opposite colour (contrast), split-complementary and triadic spread three hues evenly, tetradic uses four, and monochromatic or shades keep one hue in different lightness.

Open the From image tab and drop in a photo. The tool shrinks it, ignores transparent pixels and groups similar colours with k-means clustering, then shows the 5 or 6 most dominant colours, biggest group first.

They are WCAG contrast grades for white and black text on that colour. AA needs 4.5:1 for normal text, AAA needs 7:1, and AA Large (3:1) is only fine for big headings. Use a passing pair for buttons and body text.

Most brands work with 3 to 5: one primary, one accent, a dark for text, a light for backgrounds and maybe one neutral. Lock the ones you are sure about and shuffle the rest.

No. The image is read with the canvas API inside your browser. Nothing is sent to a server.

The preview shows how the colours work as a background, buttons and text. In BioLinko, open Design and paste the HEX codes into a custom theme.

Put it in your bio

Now give it a home.

Add this link to a free Biolinko page with all your other links, payments and videos. Ready in 60 seconds.