How to Build an Ad Color Palette From Your Logo or Product Photo
Turn your logo or product photo into an ad color palette: extract colors, assign base, accent, text and CTA roles, check contrast, use hex codes in AI prompts.
To build an ad color palette from your logo or product photo, extract its dominant colors, then give each color one job: a base for backgrounds, a secondary for panels and supporting shapes, a text color, and a single accent reserved for the call to action. Balance them roughly 60-30-10, check that text and buttons pass a contrast check, and write the exact hex codes into every brief or AI prompt so each new ad comes out in the same colors. This guide walks through each step with a worked example, plus how to make dark and light versions of the same palette.

Why Ads Need a Palette, Not Just Brand Colors
Most small brands have "brand colors" in the loose sense: the logo is green, the website is mostly white. That is not enough to design ads with. An ad has distinct parts, and each part needs a decision: what goes behind the product, what color the headline is, what the button looks like, what a price badge looks like. Without those decisions written down, every ad gets designed from scratch, and the set slowly drifts until no two ads look related.
A palette with assigned roles fixes that. It turns "use our colors" into rules anyone, including an AI image generator, can follow. It also makes testing cleaner: when the palette stays constant, a change in results is more likely to come from the headline or image you changed rather than from a random color shift.
Step 1: Extract the Colors From Your Logo or Product Photo
Start with the source that best represents what people will recognize. For most brands that is the logo. For product-led brands, especially in e-commerce, the packaging or the product itself is often more recognizable than the logo, so extract from a clean product photo as well.
The free Color Palette Extractor does this in your browser: upload the image, choose how many colors to pull out, and it lists each color's hex value and how much of the image it covers. A few practical tips for getting a useful result:
- Logos: extract 5 or 6 colors and ignore the white or black canvas, so the background does not take a swatch. A transparent PNG works best.
- Product photos: extract more colors (8 to 10), because lighting creates many near-duplicate shades. You will merge them in the next step.
- Use the eyedropper for exact brand colors. Averaged colors from a photo are slightly muddier than the printed or official color. If you have official hex codes in a brand guide, those win.
- Extract from both if you can. A logo gives you the identity colors; a product photo tells you what colors the hero of the ad will bring with it.

The product photo above is a good example of why the product matters. The kraft bag, the orange sweet potato and the deep blue of the berries are part of the image whether you plan for them or not. A palette that ignores them (say, a bright purple background) would fight the product. A palette built from them looks intentional.
Step 2: Reduce to Four or Five Working Colors
Extraction usually gives you too many colors. Cut the list down to the handful you will actually use:
- Merge near-duplicates. Three slightly different greens from lighting become one green. Keep the cleanest, most saturated version, or the official one.
- Keep one dark neutral and one light neutral. Nearly every ad needs a near-black and a near-white (or a cream or warm grey). If your logo has neither, add them.
- Keep the one or two colors people associate with you. These are usually the logo's main color and, if there is one, its second color.
- Identify a candidate accent. This is the color that will mark the most important element. It may come from the logo, or you may need to add it (more on that below).
Step 3: Assign Each Color a Role
This is the step most people skip, and it is the one that makes the palette usable. Every color gets one job. Here is the role set that works for most ad formats:
| Role | Where it goes | What it needs |
|---|---|---|
| Base | Main background, large flat areas | Calm enough that the product and text sit on top of it without competing |
| Secondary | Panels, text bands, badges, supporting shapes | Related to the base but clearly different, often a brand color |
| Text | Headline and body copy | High contrast against the base and the secondary |
| Accent / CTA | Button, price, discount, one key word | Stands out from everything else in the ad, used sparingly |
| Neutral (optional) | Small print, dividers, outlines | Quiet; never the thing people notice |
The Color Palette Extractor suggests background, CTA, accent and text roles automatically from the colors it finds, with a live ad preview. Treat those as a starting point and adjust them to fit your brand.
A worked example
Say you sell loose-leaf tea and your logo is a deep forest green leaf on a cream label, with the brand name in near-black. Extraction gives you a handful of greens, a cream and a dark charcoal. After merging, a hypothetical role assignment might look like this:
| Role | Color | Hex (example) |
|---|---|---|
| Base | Warm cream | #F4EEE2 |
| Secondary | Forest green | #2F5D46 |
| Text | Charcoal | #1F2421 |
| Accent / CTA | Burnt orange | #E2703A |
| Neutral | Sage grey | #A7B3A6 |
Notice the accent is not in the logo. Green is the brand color, but green on a green-and-cream ad would not stand out. A warm orange sits on the far side of the color wheel from a cool forest green, so it pops against both the cream and the green without looking off-brand. That leads to the most important rule in the whole palette.
Step 4: Choose an Accent That Stands Out in the Feed
The accent has one purpose: to pull the eye to the single most important element, usually the button, the price or the offer. It only works if it is rare. If the accent shows up in the background, the headline and three icons, nothing stands out and the ad reads as noisy.
- Contrast with your own palette first. The accent should be clearly different in hue, brightness or saturation from the base and secondary. A complementary color (roughly opposite on the color wheel) is a reliable choice.
- Think about the feed, not just the ad. Your ad sits between friends' photos, news and other brands' ads. Look at the feed where it will run: if the surrounding content is mostly pale and muted, a saturated accent or a bold base color helps the ad register at a glance; if it is loud and busy, a calm base with one sharp accent can stand out instead.
- Use it in one or two places. Button plus price is a typical maximum.
- Do the squint test. Shrink the ad to thumbnail size or squint at it. The first thing you see should be the accent element. If it is something else, the accent is too weak or used too often.
Step 5: Balance the Palette With 60-30-10
The 60-30-10 rule is an old interior design guideline that translates well to ads: about 60% of the visual area in the base color, about 30% in the secondary, and about 10% in the accent. It is a proportion to aim for, not a measurement. What it prevents is the two most common palette failures: every color fighting at equal strength, or the accent spreading until it stops being an accent.
In the tea example, a feed ad might break down like this:
- 60% base (cream): the background and the empty space around the product.
- 30% secondary (forest green): a band behind the headline, the product label, a leaf illustration.
- 10% accent (burnt orange): the "Shop the Sampler" button and the price.
- Text (charcoal, or cream on the green band) and neutrals: sit on top of these areas and don't count toward the split.
Keep in mind that a product photo brings its own colors. If the product is large and colorful, it effectively takes part of the 30%, so you may want a quieter secondary color to compensate.
Step 6: Check Text and Button Contrast
A palette can look good as swatches and still produce unreadable ads. Check every text-on-background pair you plan to use: headline on base, headline on secondary, button label on accent. The free Text Contrast Checker gives you the contrast ratio for any two hex codes.
The WCAG accessibility guidelines are a useful yardstick: a ratio of at least 4.5:1 for normal text and 3:1 for large, bold text. Ad text is read quickly, small, and often on a phone in daylight, so aim higher than the minimum where you can.
Running the tea palette through the checker shows why this step matters. Charcoal on cream is about 13.6:1, an easy pass. But charcoal on the forest green band is only about 2:1, so the headline on that band has to be cream instead (about 6.5:1). Cream on the orange button is under 3:1, while charcoal on orange is about 5:1, so the button label is charcoal. The colors didn't change; only which color sits on which did.
Common fixes when a pair fails:
- Darken or lighten one color rather than replacing it. A slightly deeper green often keeps the brand feel and passes.
- Switch the text color to your dark or light neutral instead of a brand color.
- Put text on a solid band instead of directly on a photo. For text over images, the Ad Text Overlay Checker helps you see how much of the image text covers.
Step 7: Write Hex Codes Into Your AI Prompts
AI image generators interpret color words loosely. "Green" could be mint, olive or emerald, and two ads generated from the same prompt can land on noticeably different shades. Hex codes remove most of that ambiguity, and pairing each code with its role tells the model where each color belongs.
Vague prompt:
"Ad for our tea sampler in our brand colors, green and cream, with an orange button."
Palette-specific prompt:
"Square feed ad for a loose-leaf tea sampler. Background: warm cream #F4EEE2. A forest green #2F5D46 band behind the headline. Headline in cream #F4EEE2 on that band: 'Find Your Daily Cup'. Supporting text in charcoal #1F2421 on the cream background. Button in burnt orange #E2703A with charcoal #1F2421 text: 'Shop the Sampler'. Use the uploaded tin as the hero product and the uploaded logo small in the top left. Keep the orange only on the button."
A few habits make this work across a whole campaign:
- Name the role, then the hex. "Button: #E2703A" is clearer than a list of five codes with no instructions.
- Say what the accent should not be used for. "Keep the orange only on the button" stops it from spreading into the background.
- Reuse one palette block. Save the color lines as a snippet and paste them into every prompt unchanged, so only the scene, offer and headline vary.
- Combine with your real assets. Upload the logo and product photo as references, or paste your website URL, so the AI has both the exact codes and the visual context. Our guide to turning your website into ads covers the URL approach.
- Check the output, not the prompt. Generated colors can still shift slightly. Run a finished ad back through the palette extractor and compare it to your codes when exact color matters.
For more on structuring prompts, see how to write ad prompts, with examples.
Step 8: Make Dark and Light Variants
One palette rarely covers every situation. A light version suits product shots, clean e-commerce layouts and calm brands. A dark version suits evening offers, premium positioning, tech products and placements where you want to break up a bright feed. Building both from the same colors keeps them recognizably yours.
| Role | Light variant | Dark variant |
|---|---|---|
| Base | Warm cream #F4EEE2 | Deep green-black #14201A |
| Secondary | Forest green #2F5D46 | Forest green #2F5D46, with cream text on it |
| Text | Charcoal #1F2421 | Cream #F4EEE2 |
| Accent / CTA | Burnt orange #E2703A | Brighter orange #EB8044 |
How to build the second variant:
- Swap the base and text roles. Your light neutral becomes the text color, and a very dark color becomes the base. A dark tint of your brand color usually feels more on-brand than pure black.
- Adjust the secondary. A mid-tone brand color can look dull on a dark base. Lighten it a step if it loses presence.
- Brighten the accent slightly. Accents often need a little more lightness or saturation on dark backgrounds to keep the same punch. In the example, the button label also switches to the dark base color, which reads at about 6:1 on the brighter orange.
- Re-check every contrast pair. A combination that passed on light will not automatically pass on dark.
- Keep the logo legible. Have a light or single-color version of your logo ready for dark backgrounds.
Seasonal and Campaign Palettes
For holidays and campaigns, you don't have to abandon your palette. Keep the text color and your main brand color, and swap the base or accent for the season, for example a deep red accent for a winter promotion. People still recognize the ad as yours, and the seasonal color signals that the offer is new. Our holiday ad ideas show how far you can push this.
What to Avoid
- Choosing colors for what they supposedly "mean". Claims that a color reliably triggers a specific emotion or buying behavior don't hold up well, and meanings vary by culture and context. Choose colors for recognition, contrast and fit with your product instead.
- Too many accents. If the button, price, badge and headline are all different bright colors, none of them leads.
- Matching the background to the product. A green product on a green background disappears. The product should contrast with the base.
- Unofficial colors from a compressed logo. Extract from the highest-quality file you have, and prefer official codes when they exist.
- Changing the palette every campaign. Recognition builds through repetition. Change the offer and imagery often; change the palette rarely.
Ad Color Palette Checklist
- Colors extracted from the logo and, for product brands, a clean product photo.
- Reduced to four or five working colors, including a dark and a light neutral.
- Each color has one role: base, secondary, text, accent, neutral.
- The accent is used only on the CTA or price, roughly 10% of the ad.
- Every text and button pair passes a contrast check.
- Hex codes, with their roles, saved as a reusable prompt snippet.
- A dark and a light variant, each re-checked for contrast.
Frequently Asked Questions
How many colors should an ad palette have?
Four or five working colors is enough for almost any ad: a base, a secondary, a text color, an accent and optionally a quiet neutral. More than that tends to look busy at feed size.
What if my logo has only one color?
Use it as your secondary or base, add a dark and a light neutral, and choose an accent that contrasts with it, such as a complementary or much brighter color. A one-color logo actually gives you a lot of freedom.
Should the CTA button be my brand color?
Only if your brand color stands out against the rest of the ad. If most of the ad is already in the brand color, the button needs a different accent to be noticed.
Do AI image generators follow hex codes exactly?
They follow them more closely than color names, especially when each code is tied to a specific element, but small shifts can still happen. Check the finished ad against your palette when exact color matters.
Is there a best color for ads?
No single color wins everywhere. What reliably matters is contrast between the important element and everything around it, and consistency across your ads so people learn to recognize them. For broader layout advice, see our ad design tips, and if you manage several brands, our guide to agency ad creative at scale covers keeping each client's palette consistent.


