Skip to content
Free tools Let's talk

Free tool

Color palette generator

Beautiful combinations. Built in seconds.

Generate harmonious palettes from a color, a photo or a harmony rule. Lock what you like, check the contrast and export everything your project needs.

SpaceGenerateClick a hex code to copy itDrag columns to reorderThe link in your address bar always holds this palette

Beyond the tool

A palette is a beginning. A brand is the whole story.

We design identities and digital experiences around a color system like this one: logo, type, rules and the website that carries them.

Get a brand proposalA fixed-price proposal within one working day

The guide

Color Palette Generator: the complete guide

Methodology and limitsUpdated 15 October 2026

Built and maintained by the designers and marketers at DEMARCA, an award-winning design studio in Portugal.

On this page
  1. How to make a color palette
  2. Which colors go well together?
  3. A palette for a brand or a website
  4. Ready-made palettes
  5. Methodology and limits

How to make a color palette

A color palette is the short list of colors a brand, website or project uses every time, each with a clear job. This generator builds one from wherever you are starting: a brand color you already have, a photo, or just a harmony rule. Everything runs in your browser, so no color, photo or file is sent to a server.

From one color

Type your hex code into the base color field (for example #C5A958) or pick it with the swatch. The generator reads its hue, saturation and lightness and builds the rest of the palette around it, following the harmony you chose. The base color always stays in the palette, unchanged, so the result works with the logo you already have. Press Generate, or the space bar, for more variations on the same base. Clear the field to go back to random palettes.

From a photo

From photo pulls the dominant colors out of an image: a product shot, a shop front, a campaign visual or a feed you admire. The image is scaled down and analyzed on your device with a median cut algorithm, which splits the pixels into groups until there is one group per color and returns the average of each. Photos with a few clear areas of color give the best results. A busy image gives muddier colors, because each group mixes different tones, and a small accent, like a red logo on a gray wall, can disappear into a bigger group.

By harmony

Harmonies are positions on the color wheel. Analogous uses neighbors, complementary uses opposites, triadic uses three hues 120 degrees apart, and monochromatic uses one hue at several lightness levels. Warm and cool keep to one side of the wheel; Any harmony mixes hues more freely. Lock the colors you like with the padlock and generate again: only the unlocked ones change. You can drag columns to reorder them, insert a color between two others, and remove the extras, from 2 to 10 colors. On a phone the palette is a strip you can swipe sideways, with the padlock, copy and remove buttons at the top of each color.

Share, export and check contrast

The page address changes with every palette and ends with the hex codes, so Share copies a link that shows anyone exactly the same colors. Export gives you CSS custom properties, SCSS variables, a theme.extend.colors block for Tailwind, JSON or a PNG image, with each color's name already in the variable name. Contrast opens a grid of every background and text pair with its ratio and WCAG level. For a single pair, with suggestions for the nearest color that passes, use the color contrast checker.

Which colors go well together?

There is no fixed list, but a few relationships work almost every time because they give the eye either a clear contrast or a predictable transition. The four below cover most brand and website palettes. In each one, the first decision is which color leads and which ones support it.

Three color harmonies on a 12 hue color wheel: complementary uses two opposite hues, analogous three neighboring hues, triadic three hues 120 degrees apart.ComplementaryAnalogousTriadic
The same 12 hue wheel, three relationships. The harmony menu starts from them (opposite hues, neighbors within 80 degrees, or three hues 120 degrees apart) and then varies saturation and lightness.

Complementary: strong contrast

Opposites on the wheel, such as blue and orange, green and red, or violet and yellow. Together they vibrate, so they work best when one dominates and the other appears in small doses: buttons, prices, highlights. Example: a deep teal #1F5F6B as the main color, with a terracotta #C4663F kept for calls to action.

Analogous: smooth transitions

Three to five neighboring hues, for example from green to blue. The result is calm and consistent, common for nature, health and wellness brands. The risk is weak contrast: because the hues are close, the difference has to come from lightness. Example: #0F3D3E, #2E8B7A and #9ED9C4, dark to light, with the darkest kept for text.

Triadic: balance with energy

Three hues spaced evenly around the wheel. Livelier than analogous and more balanced than complementary, but three saturated colors side by side tire the eye quickly. The usual fix is to tone two of them down, or to use one as the lead and the others sparingly. Example: #296A99, #B2387F and #739B3B.

Neutrals: what holds a palette together

White, black, grays, beige and light browns have little or no hue, so they sit well with almost anything and give strong colors room to breathe. In a brand palette they usually cover most of the surface: backgrounds, text and lines. A common rule of thumb in interiors and design is 60-30-10: about 60% for the dominant color (often a neutral), 30% for the secondary and 10% for the accent.

A palette for a brand or a website

A brand palette is not every color you like. It is a small system, with a job for each color, repeated the same way on the website, social media, stationery and signage.

How many colors

Three to five is enough for most brands: one primary, one or two supporting colors, and two neutrals for background and text. A three color palette (primary, dark neutral, light neutral) is plenty for a small business and easier to keep consistent. Past five, the extra colors tend to show up in one-off pieces and consistency slips. That is why this generator starts with five.

The job of each color

  • Primary: the brand color, used in the logo and the main elements.
  • Secondary: supports the primary in illustrations, sections and charts.
  • Accent: the color of buttons and calls to action, used sparingly so it stands out.
  • Neutrals: a dark one for text, a light one for backgrounds and, if needed, a mid gray for lines and secondary text.

Write those jobs down next to the hex codes, with the fonts and the logo rules, and the palette stops drifting from one designer to the next. The free brand guidelines template has a page for exactly that.

Text contrast and WCAG

The Web Content Accessibility Guidelines (WCAG) from the W3C ask, at level AA, for a contrast ratio of at least 4.5:1 between normal text and its background, and 3:1 for large text (24 px, or about 18.7 px bold). Level AAA raises that to 7:1 and 4.5:1. Input borders, icons and other interface parts need 3:1. In this generator each column shows the ratio of the text written on top of it, so you can see straight away which colors can carry text and which belong to surfaces and decoration. When a brand color lands just short, the contrast checker finds the nearest shade of it that passes.

Ready-made palettes

Eight combinations to start from. Each one opens in the generator, where you can lock the colors you want to keep and generate the rest.

Atlantic

Sea blues and pale sand, for travel, marine or professional services.

Open Atlantic in the generator

Terracotta and olive

Clay and olive oil tones, for food, ceramics or local products.

Open Terracotta and olive

Charcoal minimal

Warm neutrals, for architecture, law or consulting.

Open Charcoal minimal

Fresh mint

Analogous greens with a peach accent, for health and wellness.

Open Fresh mint

Dusty rose and wine

A monochromatic pink, for beauty, fashion or events.

Open Dusty rose and wine

Black and gold

Ink black, two golds and two light neutrals, for premium brands.

Open Black and gold

Citrus

Yellow and coral on midnight blue, for young brands and food.

Open Citrus

Lavender and gray

Grayed violets, for tech, therapy or stationery.

Open Lavender and gray

Methodology and limits

Harmony rules
Every color is built in HSL, with hue in degrees and lightness kept between 6% and 96%. The starting hue is your base color's, or a random one when there is no base. Monochromatic keeps one hue and spreads lightness evenly from 16% to 92%. Analogous spreads hues across 80 degrees centered on the base hue. Complementary alternates the base hue and its opposite (plus 180 degrees). Triadic cycles through the base hue, plus 120 and plus 240 degrees. Warm picks hues from red through orange to yellow, cool from cyan to blue violet, and Any harmony stays within 90 degrees either side of the base hue. Complementary and triadic hues get a small random shift (up to 12 and 8 degrees) so that Generate gives a new palette each time.
Base color
Your hex code is read as hue, saturation and lightness. Its hue anchors the harmony (Warm and Cool keep their own hue ranges), the other colors stay within 10 points of its saturation, and the base itself goes into the palette unchanged: in monochromatic, at the position closest to its own lightness; in analogous, in the middle; otherwise first. If that position is locked, it takes the first unlocked one. Locked colors are never regenerated.
Colors from a photo
The image is drawn on your device at 120 pixels on its longest side, and nothing is uploaded. Pixels that are mostly transparent are skipped. Median cut then splits the pixels again and again, each time cutting the group with the widest spread of red, green or blue at its median, until there is one group per color in the palette. Each color is the average of its group.
Color names
Each color gets the name of the nearest of 4,362 named colors from the open color-names list (MIT license), measured with CIEDE2000, the CIE formula for how different two colors look to the eye. The color picker from image uses the same list and formula, so a hex code gets the same name on both tools. The names are descriptive labels, not Pantone or paint references.
Contrast per column
Each column compares black and white text using the WCAG 2.2 contrast ratio, writes the hex code in whichever scores higher, and shows that ratio with its level: AAA from 7:1, AA from 4.5:1, AA large from 3:1, otherwise Fail. Ratios are truncated to two decimals, never rounded up. The Contrast grid measures every pair in the palette the same way.
Limits
Colors are sRGB hex codes for screens. There is no CMYK or Pantone conversion, so ask your printer for a proof before a print run. Palettes are random, so the only way to get one back is its link. A harmony rule is a starting point, not a guarantee of taste, and a palette that passes contrast still needs testing in a real layout.

FAQ

Questions people ask

Can I generate a color palette from an image for free?

Yes. Click From photo, choose an image and the generator pulls its dominant colors into the palette. The photo is read on your device and is never uploaded. You can then lock the colors you like and generate the rest.

Why don't the colors from my photo match what I see in it?

Each color is the average of a group of similar pixels, so a busy photo gives softer, muddier tones than the eye picks out. Small accents, like a red sign on a gray street, often vanish into a bigger group. Crop the photo to the area you care about, or lock the colors that worked, type the missing one as the base color and generate again.

How do I make a shade or a gradient between two colors?

Choose Monochromatic and type one of the colors as the base: the palette becomes a run of shades of that hue, from dark to light, and you can add up to 10 steps. Analogous gives a softer run that drifts between neighboring hues, which suits gradients that change color as well as lightness.

Are generated palettes accessible?

Not automatically. A good looking palette can still fail contrast rules. Each column shows the ratio of the text on it, the Contrast button shows every pair, and the color contrast checker suggests the nearest color that passes.

Are the color names official, like Pantone?

No. Each name comes from the nearest match in an open list of a few thousand descriptive color names, so it is a handy label for variables and conversations, not a reference you can order paint or ink by. For print, ask your printer to match the hex code and check a proof.

Can I use these colors for print?

You can start from them, but the codes are screen colors (sRGB hex). The generator does not convert to CMYK or Pantone, and bright screen colors, especially vivid greens, blues and oranges, often print duller. A designer or printer can pick the closest print values and show you a proof.

How many colors should a brand palette have?

Three to five covers most brands: one primary color, one or two supporting colors, and a dark and a light neutral for text and backgrounds. Bigger palettes are hard to keep consistent across a website, social media and print.

More free tools

See all 52 tools

Brand identity

Let's make something matter.

We design the full identity: logo, color system, type and the rules that keep it consistent on every screen and print run. Independent design and marketing studio in Portugal. Senior-led projects, transparent pricing and clearly defined deliverables for international clients.

  • A reply from a designer within one working day
  • A fixed-price proposal before any work starts
  • Senior-led work with clearly defined deliverables
  • Clients in Portugal, across Europe and further afield

Request a quote

Prefer email? hello@wearedemarca.com

Export the palette

Variable names use each color's name.


    

Contrast between the colors

AA needs 4.5:1 for normal text and 3:1 for large text, icons and borders. AAA needs 7:1.