Skip to the tool
MyMidlist business directory logo
  1. Home
  2. Tools
  3. Color Palette Generator
FREE COLOR TOOL

Color Palette Generator HEX, RGB and Live Preview

Generate beautiful palettes instantly. Copy HEX and RGB values, lock colors, and preview your UI theme live.

Press Space to generate a new palette

Export

Live UI preview

BrandHomeAboutContact

Your palette in use

See how the colors look on a real page, with text, buttons and cards.

PrimaryAccent
Card title
Cards and panels use the surface color.
CheckRatioResult

Runs in your browser. Nothing is uploaded.

What is a color palette generator?

A color palette generator creates a set of colors that look good together. Enter a starting color as a HEX or RGB value, choose a harmony such as complementary or analogous, and the tool builds a five-color palette with the HEX, RGB and HSL value of each color. You can lock colors you like, press Space for a new palette, preview it on a sample page, and copy it as CSS. It is free and runs in your browser.

Choosing colors that work together is one of the hardest parts of design. Random colors often clash, and picking each one by eye takes time. This tool uses color theory to build palettes that are balanced from the start, so you can focus on your project.

It suits web designers, developers, marketers, students and business owners. If you run a business in the Middle East, you can also add it to MyMidlist for free and show your brand to customers.

How to generate a color palette

  1. Enter a starting color. Type a HEX code such as #7c3aed, an RGB value such as rgb(124, 58, 237), or a color name such as teal. You can also pick a color with the color picker.
  2. Choose a harmony. Pick Mixed for a surprise, or choose Analogous, Complementary, Triadic, Split complementary, Tetradic or Monochromatic.
  3. Press Generate palette. The tool builds five colors that work together and shows each one with its HEX, RGB and HSL values.
  4. Lock the colors you like. Press the padlock on any color to keep it. Press Random palette or the Space bar to replace only the unlocked colors.
  5. Copy or export. Click any value to copy it. You can also copy the whole palette as CSS variables, SCSS, JSON or Tailwind, download a PNG, or copy a link to share it.

On a computer, press the Space bar at any time to generate a new palette. Locked colors stay in place.

Color harmonies explained

HarmonyHow it worksMood and best use
AnalogousColors that sit next to each other on the color wheelCalm and unified. Good for backgrounds and soft brands
ComplementaryA color and the one opposite it on the wheelStrong contrast. Good for buttons and calls to action
TriadicThree colors spaced evenly around the wheelLively and balanced. Good for playful designs
Split complementaryA color and the two colors beside its oppositeHigh contrast but softer than complementary
TetradicFour colors in two opposite pairsRich and varied. Works best when one color leads
MonochromaticOne hue in different lightness levelsClean and elegant. Very safe

HEX, RGB and HSL color codes

A color can be written in several formats. All three below describe the same color.

FormatExampleWhat it means
HEX#7c3aedSix hexadecimal digits: two each for red, green and blue
RGBrgb(124, 58, 237)Red, green and blue amounts, each from 0 to 255
HSLhsl(262, 83%, 58%)Hue in degrees, then saturation and lightness as percentages

How to convert HEX to RGB by hand

  1. Remove the # sign: 7c3aed.
  2. Split it into three pairs: 7c, 3a, ed.
  3. Convert each pair from base 16 to a normal number: 7c is 124, 3a is 58 and ed is 237.
  4. Write the result: rgb(124, 58, 237).

You do not need to do this yourself. The tool shows the RGB and HSL value of every color, and you can type any of the three formats into the box.

How to use your palette in CSS

Choose CSS variables in the export box and copy the result. It looks like this:

:root {
  --color-1: #7C3AED;
  --color-2: #A78BFA;
  /* ... */
}

Then use the variables anywhere in your stylesheet, for example background: var(--color-1);. If you use SCSS, JSON or Tailwind, choose that format instead.

The 60-30-10 rule

A simple way to apply a palette is the 60-30-10 rule. Use a dominant color for about 60 percent of the design, usually a light background. Use a secondary color for about 30 percent, such as cards and headers. Use an accent color for about 10 percent, such as buttons and links. The live preview shows this idea on a sample page.

Check contrast for accessibility

Good colors are not enough if people cannot read the text. The preview checks the contrast ratio of your text and buttons.

RatioLevelMeaning
7 to 1 or moreAAAVery easy to read
4.5 to 1 or moreAAMeets the usual standard for normal text
3 to 1 or moreAA for large textOnly for large headings and interface parts
Below 3 to 1FailHard to read. Pick different colors

If a check fails, lock the colors you want to keep and press Random palette to change the others, or choose a darker or lighter color.

Who uses color palettes

Web designers and developers

Build a theme for a site or app and copy it straight into CSS or Tailwind.

Brand and logo designers

Explore color options for a new brand and share them with clients using a link or a PNG.

Social media and marketing teams

Keep posts, ads and presentations in the same colors.

Small business owners

Choose colors for a menu, a shopfront, a sign or a website without hiring a designer.

Students and teachers

Learn color theory by trying each harmony and seeing the result.

Tips for choosing good colors

  • Start with one main color. Pick the color that matches your brand or message and build around it.
  • Limit your colors. Five colors are plenty. More makes a design busy.
  • Include a light and a dark color. They give you a background and readable text.
  • Use the accent sparingly. It works best on one or two important elements.
  • Think about meaning. Colors carry different meanings in different cultures, so consider your audience in the Middle East and elsewhere.
  • Test on real screens. Colors look different on phones, monitors and paper.
  • Check contrast. Always test text and buttons before you publish.

Troubleshooting

ProblemTry this
The tool says my color is not validUse a HEX code such as #7c3aed, an RGB value such as rgb(124, 58, 237) or a common color name.
The Space bar does not workClick on an empty part of the page first. Space is ignored while you are typing in a box or have a button selected.
A locked color changedMake sure the padlock is closed. Locked colors stay when you press Random palette.
The copy button does nothingYour browser may block clipboard access. Select the text in the export box and copy it by hand.
The palette looks different when printedScreens and printers show color differently. Test a printed sample before ordering.

Privacy

Everything runs in your browser. The colors you enter and the palettes you generate are not sent to MyMidlist. The current palette is kept in the page address so you can bookmark or share it.

Glossary

TermMeaning
HueThe basic color, such as red or blue, given as a position on the color wheel from 0 to 360 degrees.
SaturationHow strong or grey a color is.
LightnessHow light or dark a color is.
Color wheelA circle that shows how colors relate to each other.
Contrast ratioA number that compares the brightness of two colors.
WCAGThe Web Content Accessibility Guidelines, a set of rules for accessible websites.
Accent colorA bold color used in small amounts to draw attention.
Tint and shadeA lighter version (tint) or darker version (shade) of a color.

Choosing brand colors for a local business

Your colors are often the first thing a customer notices. They appear on your sign, menu, website, packaging and social media, so they should be consistent.

  • Pick one main color that fits your business and stand out from nearby competitors.
  • Add a neutral for backgrounds and text so your main color has room.
  • Write the HEX codes down. Give them to your sign maker, printer and web designer so everything matches.
  • Use the same colors online. Match your website, social media and your MyMidlist profile.
  • Check readability. Make sure your text can be read on every background.

Frequently asked questions

What is a color palette generator?

A color palette generator is a tool that creates a set of colors that look good together. You give it a starting color, or let it pick one at random, and it builds matching colors using color theory rules such as complementary or analogous harmony.

How do I generate a color palette from one color?

Enter your color as a HEX, RGB or color name, choose a harmony, and press Generate palette. The tool keeps your color in the palette and builds four more around it.

How do I lock a color in the palette?

Press the padlock on a color. Locked colors stay in place when you press Random palette or the Space bar, so you can keep the colors you like and change the rest.

How many colors does the palette have?

Five. Five colors are enough for most designs: a main color, a supporting color, an accent, a light background and a dark text color.

How do I copy a HEX or RGB value?

Click the HEX, RGB or HSL text on any color and it is copied to your clipboard. You can also copy the whole palette from the export box.

What is the difference between HEX, RGB and HSL?

They are three ways of writing the same color. HEX is a six-digit code such as #7c3aed. RGB gives the amount of red, green and blue from 0 to 255, such as rgb(124, 58, 237). HSL gives hue, saturation and lightness, such as hsl(262, 83%, 58%).

How do I convert HEX to RGB?

Split the six-digit HEX code into three pairs and convert each pair from base 16 to a number. For #7c3aed, 7c is 124, 3a is 58 and ed is 237, so the RGB value is rgb(124, 58, 237). This tool shows the RGB value for every color automatically.

What are color harmonies?

Harmonies are rules for choosing colors by their position on the color wheel. Analogous colors sit next to each other, complementary colors sit opposite, and triadic colors are spaced evenly in three. Each gives a different mood.

Which harmony should I choose?

Use Analogous for calm, unified designs, Complementary for strong contrast, Triadic or Tetradic for lively and varied designs, and Monochromatic for a clean look with one hue. If you are not sure, use Mixed and press Space until you see something you like.

What does the live UI preview show?

It applies your palette to a small sample page with a navigation bar, a heading, text, a card and two buttons. It also checks the contrast of the text so you can see if the colors are readable.

What is color contrast and why does it matter?

Contrast is the difference in brightness between text and its background. The Web Content Accessibility Guidelines (WCAG) ask for a ratio of at least 4.5 to 1 for normal text and 3 to 1 for large text. Low contrast is hard to read, especially for people with low vision.

Can I use the colors commercially?

Yes. Colors themselves are not owned, so you can use a palette in logos, websites, apps, print and social media. Check any trademark rules if a palette closely matches a well-known brand.

Can I save or share my palette?

Yes. Press Copy link to get a web address that opens the same five colors. You can also download the palette as a PNG image or copy it as CSS, SCSS, JSON or Tailwind code.

Does the tool store my colors?

No. Everything runs in your browser and nothing is sent to MyMidlist. The colors are stored only in the web address, which you can share if you choose.

Is this tool free?

Yes. It is free to use with no signup and no limits.

Promote your business for free

Add your company to MyMidlist, the verified business directory covering the UAE, Saudi Arabia, Qatar, Oman, Bahrain, Kuwait, Jordan and Turkey.

Add your listing

More free tools