Color Scheme GeneratorOne Base Colour, Five Coherent Swatches
Choose the colour your brand cannot change, pick a harmony rule and get a website colour scheme you can hand to a developer. Every swatch carries HEX, RGB and HSL codes plus a contrast check, and the whole scheme copies out as CSS variables.
- Under 50 ms
- 100% client-side
- HEX, RGB & HSL
- Unlimited palettes
Live palette preview
Everything runs in this tab. No palette is uploaded, saved or limited.
Space to shuffle · 1–5 to lock
Need artwork for the palette? Resize an image, convert HEIC to JPG or check an aspect ratio — all local.
WCAG contrast checker
Test any text colour against any background. The ratio is calculated from relative luminance, exactly as WCAG defines it.
CSS custom properties
Five named variables, ready for a :root block. Copy the set and the palette moves into your stylesheet.
ToolGuest Color Scheme Generator turns one base colour into a complete website scheme of five harmonious swatches. It applies monochromatic, analogous, complementary, split-complementary or triadic rules, shows HEX, RGB and HSL codes with one-click copy, exports CSS variables, and checks WCAG AA and AAA contrast in under 50 ms without uploading anything.
Generate a color scheme online that survives contact with a real website
Most colour scheme tools hand you five colours and stop there. A website needs a scheme that assigns jobs: a surface, a card, a border, body text and one accent. This generator gives you the five colours and the contrast numbers, so the assignment takes minutes instead of a design review.
Pick the brand colour first. If the logo is blue, the base colour is that blue, and the harmony rule decides how far the other swatches may travel from it. Analogous keeps them close for a calm, corporate feel; complementary adds one opposite hue that becomes the button colour; triadic supplies three equally strong hues for a more expressive brand.
| Swatch role | Typical lightness | What it is used for |
|---|---|---|
| Surface | Lightest (85-97%) | Page background, empty states, large flat areas behind content. |
| Card / raised surface | Slightly darker than the surface | Panels, modals and table rows that need to separate from the page. |
| Border & divider | Mid grey, low saturation | Hairlines, input outlines and separators — the least saturated swatch. |
| Body text | Darkest (8-20%) | Paragraph copy and headings. Test it against the surface at 4.5:1 or better. |
| Accent / CTA | Most saturated | Primary buttons, links and focus rings. Use it sparingly so it stays meaningful. |
Choosing a harmony rule for a website color scheme generator
The harmony rule decides how much personality the site can carry. Analogous schemes are the safest choice for a product site: the hues sit within 30 to 60 degrees of each other, so a hero gradient, an illustration and a chart palette all look related without any extra work. Complementary schemes introduce a second hue roughly 180 degrees away, which is exactly what a call-to-action needs, provided that hue is confined to small elements.
Triadic schemes are the most expressive and the hardest to balance. Three equally weighted hues compete for attention, so assign one to the surface, one to text and one to accents, and resist using all three at full saturation in the same viewport. If a brand already ships two signature colours, split-complementary usually lands closer than triadic because it keeps one hue dominant.
Whatever the rule, finish the scheme with neutrals. A five-colour scheme of saturated hues is a mood board, not a design system. Two of the five slots belong to a near-white and a near-black; the accent gets the remaining attention.
Exporting a generated scheme as CSS, tokens or a shareable link
Press Copy CSS variables and the scheme arrives as a :root block with five named custom properties. Paste it into a stylesheet, reference the variables from components, and a later change to the brand colour becomes a one-line edit rather than a search and replace.
The address bar always reflects the current scheme, so a link is a complete handoff. Send it to a developer and they see the same five HEX values rather than a screenshot to eyedrop. If the palette needs to travel further, the individual HEX, RGB and HSL buttons copy one value at a time for a design tool that wants a specific format.
Then finish the assets with the rest of the media cluster: resize the hero image, convert a HEIC photo or check the crop ratio before the scheme goes live.
Website color scheme questions
How do I generate a color scheme for a website from one brand colour?
Enter the brand HEX value, then choose a harmony rule. The generator derives five swatches from that single colour, shows each one as HEX, RGB and HSL, and lets you lock the brand colour before shuffling the rest. Copy the result as CSS variables for the stylesheet.
Which harmony rule is best for a corporate website?
Analogous is usually the safest for a corporate site because the hues stay close and the result reads calm and consistent. Complementary works when you need one obvious accent colour for buttons, provided that accent stays small and is never used for body text.
How many colours should a website color scheme actually use?
Five is enough for most sites: a surface, a raised surface, a border grey, a body-text colour and one accent. Adding more usually means the scheme has no clear hierarchy. Extra tints can be derived later from the same base with opacity or lightness steps.
Can I keep my existing brand colour and still generate a scheme?
Yes. Set the brand colour as the base and lock the swatch that contains it, then shuffle the remaining swatches. The harmony rule still applies to the new colours, so the scheme stays coherent while the colour you cannot change stays exactly as it is.
Is this color scheme generator free to use for client work?
Yes. There is no account, no paid tier and no export limit, and colours generated by a mathematical rule are not licensed content. Use the schemes in client projects, commercial products and brand systems without attribution, and share the permalink with whoever needs it.
Every palette and contrast tool in the ToolGuest cluster
Seven palette pages share one engine, so a colour scheme, a HEX palette, an analogous or complementary set and a WCAG-checked accessible palette all generate the same way. The three media tools finish the job once the colours are chosen.