Names use a to z, numbers and dashes. Accents are dropped (é becomes e) and other symbols are left out.
Color Palette Generator: Make a Color Scheme from One Color
What is a color palette?
A color palette is the short list of colors a website or app sticks to. Instead of picking a new shade every
time you style a button, you choose five or so colors up front and reuse them everywhere. That’s most of the
reason a site looks “designed” rather than thrown together.
This tool starts from one color you already have, usually your logo or brand color, and finds colors that go
with it using the color wheel. Here’s a five-color palette built around lime #84cc16:
Type it in the Base color box. Hex codes like #84cc16 work, and so do
rgb(132, 204, 22), hsl(84, 81%, 44%) and CSS names like tomato. You can
also click the color square to use your browser’s picker, or press Random if you’re starting
from nothing. A color you type is locked straight away, because you probably want to keep it.
Step 2 Choose a scheme and how many colors
Pick one of the seven schemes (they’re explained below) and a palette size from 3 to 8. Changing the size
keeps the colors you have and adds or drops one at a time, so you won’t lose a palette you like.
Step 3 Generate, lock and tweak
Press Generate or the Space bar for a new mix. Locked colors stay put.
The padlock under a color locks it. Lock the ones you like, then keep pressing Space.
The sliders button opens an editor with Hue, Saturation and Lightness. You can also type any color there,
or use Use as base to rebuild the palette around that color.
Drag the dotted handle to change the order. With a keyboard, focus the handle and use the arrow keys.
Made a mess? Undo (or Ctrl+Z) goes back one step at a time.
Step 4 Check it in use
Under each color you’ll see how readable white and black text are on it. The In use preview
paints a little coffee shop page with your colors, with a Light and a Dark version. It’s rough, but it shows
quickly when two colors fight each other.
Step 5 Copy the code
Pick CSS, Tailwind, SCSS or a plain HEX list,
rename the colors under Edit the names if you like, and press Copy code.
Download PNG saves a picture of the palette, and Copy link gives you a web
address that opens the same colors, handy for sending to a teammate.
The color schemes, with examples
Every scheme below starts from the same lime, #84cc16, so you can compare them. The degrees are
positions on the color wheel: red is at 0°, green at 120°, blue at 240°.
#f0fae0#bdef6f#84cc16#54820e#243706
Monochrome
One hue in different lightness steps, from a pale tint to a deep shade. It always looks tidy, and it’s the easiest place to start if you only have a logo color.
#ccb916#84cc16#29cc16
Analogous
The colors right next to yours on the wheel. Lime sits between #ccb916 (a mustard yellow) and #29cc16 (a grass green). Think autumn leaves or a sunset: calm, no clashes.
#84cc16#5e16cc
Complementary
Your color and the one straight across the wheel, 180° away. For lime #84cc16 that’s a purple, #5e16cc. Opposite colors stand out against each other, so this is the classic pick for a button that has to be noticed.
#84cc16#1629cc#b916cc
Split complementary
Instead of the exact opposite, you get the two colors on either side of it. You keep the contrast of complementary colors, but it’s a bit softer and easier to balance.
#84cc16#1684cc#cc1684
Triadic
Three colors evenly spaced, 120° apart, like a triangle on the wheel. Lively and playful. Let one of them lead and keep the other two for small details.
#84cc16#16cc5e#5e16cc#cc1684
Tetradic
Two pairs of opposites, a rectangle on the wheel. Four strong hues is a lot, so this one works best when most of the page stays neutral.
Random harmony is the odd one out. It steps around the wheel by a random angle between about 100° and
180°, centered on 137.5° (the golden angle, which sunflowers use to space their seeds), so the hues spread out
without lining up. Each press of Generate picks a
new step and new lightness values. Some results are great, some are ugly. That’s what Undo is for.
How many colors does a website need?
Fewer than most people pick. A common rule of thumb from interior design is 60-30-10: one color
covers about 60% of the page (usually a light background), a second takes about 30% (cards, sections, the top
bar), and an accent gets the last 10% (buttons, links, the badge you want people to notice).
Today’s roastEthiopia Guji, fruity and light.Add to order
Treat it as a starting point. Plenty of good sites ignore it. What matters more: pick one accent color for the
things people should click, and add a near-white and a near-black for backgrounds and text. Five colors covers
most sites. Eight is already a lot to keep consistent.
Check the contrast before you ship
A pretty palette doesn’t help if nobody can read the text. The WCAG accessibility guidelines ask for a contrast
ratio of at least 4.5:1 for normal text and 3:1 for large headings. That’s what
the AA and Fail labels under each swatch check.
White on #84cc161.97:1, fails
Black on #84cc1610.62:1, passes
White on #54820e4.58:1, passes
Bright colors like lime almost always need dark text. If you want white text on a button, use one of the darker
shades instead. To test any two colors against each other (say your text color on your card color), use the
Color Contrast Checker. It can also suggest the closest color that passes.
Using your palette in CSS
CSS variables (custom properties) are the simplest way to use a palette. Put them in :root once, then
use var() wherever you need a color:
With Tailwind CSS v4, the Tailwind tab gives you an @theme block. A color called
primary becomes classes like bg-primary and text-primary:
<button class="bg-primary text-white rounded-lg px-4 py-2">
Order now
</button>
What this tool can’t do
It doesn’t pull colors out of a photo. If you have an image, grab a color from it with the eyedropper in the
HTML Color Picker (Chrome and Edge) and paste that in as the base.
It doesn’t simulate color blindness. A quick safety net: never use color alone to show meaning (add an icon or a
word next to a red error).
HSL isn’t perfectly even to the eye, so a yellow and a blue with the same lightness number won’t look equally
light. Trust your eyes and nudge the sliders.
Colors look different on every screen, and printed colors (CMYK) can come out duller than on screen.
More color tools
HTML Color Picker: pick one color and get its HEX, RGB, HSL and CMYK codes, plus
all 148 CSS color names.
Type or pick your color in the Base color box, for example your logo color, then choose a scheme such as Complementary or Analogous. The tool builds the other colors around it on the color wheel. Your base color is locked when you type it, so pressing Generate only changes the colors around it.
What does locking a color do?
A locked color stays exactly where it is when you press Generate or change the scheme. Everything that isn’t locked gets replaced. Lock the two colors you already like and press Space a few times to find the rest. Colors you edit by hand are locked for you, so you don’t lose them by accident.
Which color scheme should I pick?
For a calm site, start with Monochrome or Analogous: they’re hard to get wrong. Complementary gives you one strong accent, which is great for buttons. Triadic and Tetradic are louder, so use one of their colors a lot and the others only in small spots. If none of that clicks, try Random harmony and keep pressing Generate.
How many colors should a website have?
Fewer than you think. Most sites get by with one or two brand colors plus a near-white and a near-black for backgrounds and text. Five colors is a good default here. The 60-30-10 rule (a main color for most of the page, a second for about a third, an accent for the last bit) is a handy rule of thumb, not a law.
What do the AA and Fail labels under each color mean?
They show whether white text and black text are readable on that color, using the WCAG 2 contrast ratio. AA means the ratio is at least 4.5:1, the minimum for normal body text. Fail means it’s lower. Big headings only need 3:1. For any other pair of colors, paste them into the Color Contrast Checker.
How do I use the palette in my CSS?
Copy the CSS variables, paste the :root block at the top of your stylesheet, then use the colors with var(), for example .button { background: var(--primary); }. Open Edit the names first if you want names like primary and accent instead of color-1 and color-2. There are also SCSS variables and a plain list of hex codes.
Does it work with Tailwind CSS?
Yes. Pick the Tailwind tab. For Tailwind v4 you get an @theme block for your main CSS file, and for v3 you get the colors part of tailwind.config.js. With a color named primary, you can then write classes like bg-primary and text-primary. Colors you haven’t named are called brand-1, brand-2 and so on there, so you get bg-brand-1 rather than bg-color-1.
Can I save or share a palette?
Your last palette is kept in this browser, so it’s still there next time. Copy link gives you a web address with the colors in it, like ?colors=84cc16-5e16cc-…, that opens the same colors in the same order for anyone. Names and locks aren’t in the link, so set those again after opening it. Download PNG saves a picture of the swatches with their hex codes. Nothing is uploaded: the palette is made in your browser.
Why do some generated colors look brighter than others?
The tool works in HSL, where yellow and lime look much lighter than blue or purple at the same lightness number. That’s how screens and eyes work, not a bug. If one color jumps out too much, click the sliders button under it and move the Lightness or Saturation slider a little.