DoraPDF / Blog

Color Palette Generator: Create Matching Color Schemes and Copy the Hex Codes

By the DoraPDF team ยท 4 min read ยท Updated 2026-11-23
Color Palette Generator: Create Matching Color Schemes and Copy the Hex Codes

Picking colors that work together is harder than it looks. Two shades you love on their own can clash on a slide, and a website built from random favourites rarely looks professional. A color palette generator gives you a set of colors that already relate to each other, so you can start from something coherent and adjust from there.

DoraPDF's Color Palette Generator creates five matching colors at a time. Press the space bar to shuffle, lock the colors you want to keep, and copy the hex codes with a click. It is free and runs entirely in your browser.

How the palettes are built

Each new palette starts from a random base hue and follows one of three color relationships:

Within each palette, the colors run from darker on the left to lighter on the right, with moderate to strong saturation. That built-in spread is useful in practice: you usually get a dark color for text or backgrounds, a couple of mid-tones for buttons and accents, and a light shade for panels.

How to generate a color palette

  1. Open the Color Palette Generator. A palette is ready as soon as the page loads.
  2. Press the space bar, or click Generate โœฆ (space), to get a new palette.
  3. Found a color you like? Click the ๐Ÿ”“ under it to lock it (it turns to ๐Ÿ”’). Locked colors stay put when you shuffle.
  4. Keep shuffling until the unlocked colors work with the ones you locked.
  5. Click a color swatch to copy its hex code, for example #3A6EA5.
  6. Press Copy all to copy all five codes, separated by commas, ready to paste into your notes, design tool or code.

Using your palette

For a brand. Pick one main color, one darker shade for text, one accent for calls to action and one or two light neutrals. Write the hex codes into a short style guide so everyone uses the same values.

For a website. Use the darkest color for headings, a mid-tone for links and buttons, and the lightest for section backgrounds. Make sure body text has strong contrast against its background; light grey text on white is hard to read.

For slides and documents. Limit yourself to two or three of the five colors per slide. Use the same color for the same meaning every time, such as one accent color for key numbers.

For social media posts. A consistent palette across posts makes your feed recognisable even before people read the name.

Practical tips

Common problems and fixes

The space bar scrolls the page instead of shuffling. Click somewhere on the page outside any text box first. Space does not shuffle while you are typing in an input field, so it does not interfere with typing.

I lost a color I liked. Shuffles replace every unlocked color. Lock colors before you press space, or copy their codes as you go.

I need more than five colors. Copy the palette, lock two of the colors, shuffle and copy again. You will get variations that still share a common base.

The pasted code is lowercase. Copy all gives lowercase hex codes, while clicking a single swatch copies uppercase. Both forms are valid in CSS and design tools.

Privacy

Palettes are generated in your browser and nothing is sent to a server. You can use the tool freely for client work.

FAQ

Is the color palette generator free? Yes, and there is no account, watermark or limit on palettes.

How do I copy a hex code? Click the color swatch. To copy all five at once, press Copy all.

Can I keep some colors and change others? Yes. Click the lock icon under each color you want to keep, then shuffle.

What format are the colors in? Hex codes such as #1F4E79. To convert them to RGB or HSL, use the Color Code Converter.

Can I use the colors commercially? Yes. Color combinations are not owned by anyone, so you can use them in any project.

Try the tools from this guide โ€” free

Keep reading

Guide

Find the Exact Color Code From Any Image (HEX, RGB, HSL and CMYK)

Pick the exact HEX or RGB color from a logo, photo or screenshot, convert it to CMYK for print, and build a matching palette. Free, in your browser.

Guide

How to Get a HEX Color Code From an Image (Free Online Color Picker)

Click any pixel in a photo, logo or screenshot to get its HEX, RGB and HSL code. Plus an instant palette of the image's main colours. Free, private.

Guide

Modern CSS Gradients, Shadows and Glass Effects: 10 Recipes You Can Copy

Ten modern CSS recipes: layered box shadows, gradient text, conic gradients, glassmorphism cards and mesh backgrounds. Build each visually, then copy the code.