Free Random Color Generator

Free random color generator: create random colours or palettes (pastel, vivid, dark, analogous, monochrome), lock favourites and copy HEX, RGB, HSL or CSS.

  • No upload, 100% private
  • Instant, in your browser
  • 100% free, no signup
Loading tool…
Read the complete guideHow to Build a Colour Palette From Random Colours (Without Chaos) →

About the Random Color Generator tool

Designers, developers and artists often need a fresh colour to break a creative block, a test colour for a UI state or a quick palette to start a mood board. This random color generator produces colours with their HEX, RGB and HSL codes ready to copy, and can build whole palettes in a chosen style.

In “Any colour” mode every one of the 16.7 million sRGB colours is equally likely. The other styles work in HSL space to keep results usable: Pastel uses high lightness, Vivid uses strong saturation, Dark keeps lightness low, Analogous picks neighbouring hues around a random base colour, and Monochrome steps through light to dark versions of one hue. Choose from one to ten colours at a time.

Found a colour you love? Lock it, and it stays put while the others change on the next generate. Press the space bar to regenerate without reaching for the mouse, the same shortcut used by popular palette sites. Copy any single code, all HEX values, a JSON array or a ready-made :root block of CSS custom properties. Everything is generated locally with secure randomness.

How to use Random Color Generator

  1. Pick a “Style” such as Any colour, Pastel or Analogous palette.
  2. Set how many colours you want with the “Colours” slider.
  3. Click “Generate” or press the space bar.
  4. Click “Lock” under colours you want to keep, then generate again.
  5. Click a swatch to copy its HEX, or use the copy buttons for RGB, HSL, CSS variables or JSON.

Features

Six generation styles

Fully random, pastel, vivid, dark, analogous and monochrome palettes.

Lock colours

Keep favourites fixed while regenerating the rest of the palette.

HEX, RGB and HSL

Every swatch shows all three formats with one-click copy.

Export as CSS or JSON

Copy the palette as CSS custom properties or a JSON array.

Keyboard shortcut

Space bar regenerates when you are not typing in a field.

When to use it

  • Find a starting palette for a website, logo or presentation.
  • Pick random test colours for charts or UI component states.
  • Get inspiration for a painting, knitting or craft project.
  • Generate colour prompts for a design warm-up exercise.
  • Choose a random brand accent colour to try in a mock-up.

Frequently asked questions

How many colours can a random HEX code be?

A six-digit HEX code has 16,777,216 possible values (256 × 256 × 256). In Any colour mode each is equally likely.

What is the difference between HEX, RGB and HSL?

They describe the same colour differently. HEX and RGB give red, green and blue amounts; HSL gives hue (0–360°), saturation and lightness, which is easier to adjust by hand.

What makes a colour pastel?

Pastels have high lightness and moderate saturation. This tool keeps lightness around 78–90% in Pastel mode.

Are the palettes accessible?

Not automatically. Random colours may have poor contrast with text. Check text and background pairs in the Color Contrast Checker before using them.

Can I save a palette?

Copy it as CSS or JSON. The page does not store palettes after you close it.

Related tools