Random Color Generator

Need inspiration? Generate random colors with HEX and RGB codes, lock the ones you like and save palettes for later — right in your browser.

Saved palettes (stored only in this browser)

How to Generate Random Colors

  1. Choose how many colors you want (1 to 12).
  2. Click Generate to create new random colors.
  3. Click 🔓 to lock a color; locked colors stay when you generate again.
  4. Copy individual HEX or RGB codes, or Copy all.
  5. Click Save palette to keep the set in this browser.

Color Style Filters

Use the Style menu to control what kind of random colors you get. Each style keeps hue random but limits saturation and lightness (HSL) to a range:

StyleHueSaturationLightnessGood for
PastelAny45–85%80–90%Soft backgrounds, invitations
LightAny30–90%72–90%Tints and cards
DarkAny30–85%12–30%Dark themes, text colors
Bright / vividAny85–100%45–58%Accents, posters
MutedAny10–35%35–70%Calm, earthy designs
WarmReds to yellows (330°–60°)55–95%40–65%Energetic, inviting palettes
CoolGreens to violets (160°–280°)45–90%35–65%Calm, trustworthy palettes

Choose Any color for completely random RGB values. Tip: press the Space bar to generate new colors. Learn more about temperature in Warm vs Cool Colors and soft palettes in Best Pastel Color Combinations.

How Random Colors Are Created

Each color picks three random values from 0 to 255 for red, green and blue. That gives over 16.7 million possible colors (256 × 256 × 256), each shown as a HEX code and an RGB value.

About Saved Palettes

Saved palettes are stored using your browser’s local storage. They never leave your device, are not linked to any account and will disappear if you clear your browser data. Up to 20 palettes are kept.

Creative Uses

  • Break out of a creative rut by starting a design from an unexpected color.
  • Generate test data colors for charts, tags or avatars.
  • Play color-matching games with students or kids.

Tips

  • Lock one color you like, then generate to discover combinations around it.
  • For softer results, try a dedicated scheme in the Palette Generator.

Related Learning Guides

Frequently Asked Questions

Can I generate only pastel, dark, warm or cool colors?

Yes. Pick a style from the Style menu. The generator keeps the hue random but limits saturation and lightness so every color matches that style.

How random are the colors?

Each red, green and blue value is chosen independently using your browser’s random number generator, so every color in the 16.7 million color RGB space can appear.

Where are my saved palettes stored?

Only in your browser’s local storage on this device. Nothing is sent to our server.

Can I lock a color?

Yes. Click the lock icon on any color card to keep it when you generate again.

How many colors can I generate at once?

Up to 12 colors per generation.

Can I use random colors in commercial work?

Yes. Colors are free to use in any personal or commercial project.

Scroll to Top